Package atessera.json
Class PublicationContent.Section
java.lang.Object
atessera.json.PublicationContent.Section
- Enclosing class:
PublicationContent
Represents a single content section within a publication.
Each section has a PublicationContent.SectionType that determines how its
source text is interpreted, and may carry additional metadata such
as an identifier, a LaTeX label, a caption, and a language hint
(for listings). The alternativeSource field provides a
fallback representation for environments that cannot process the
primary source type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanAlternative (fallback) representation of the section content.Caption text displayed alongside the section (e.g. figure caption, table caption).getId()Unique identifier for this section (used for cross-referencing).getLabel()LaTeX label for referencing this section (e.g. for\\labeland\\refcommands).Programming language hint for source code listings (e.g.Primary source text of the section.getType()The type of content in this section.inthashCode()voidsetAlternativeSource(List<String> alternativeSource) Alternative (fallback) representation of the section content.voidsetCaption(List<String> caption) Caption text displayed alongside the section (e.g. figure caption, table caption).voidUnique identifier for this section (used for cross-referencing).voidLaTeX label for referencing this section (e.g. for\\labeland\\refcommands).voidsetListingLang(String listingLang) Programming language hint for source code listings (e.g.voidPrimary source text of the section.voidThe type of content in this section.toString()
-
Constructor Details
-
Section
public Section() -
Section
-
-
Method Details
-
getType
The type of content in this section. Determines which processing pipeline is used. -
getId
Unique identifier for this section (used for cross-referencing). -
getLabel
LaTeX label for referencing this section (e.g. for\\labeland\\refcommands). -
getListingLang
Programming language hint for source code listings (e.g."java","python"). Used for syntax highlighting. -
getSource
Primary source text of the section. Interpreted according to the section'stype. -
getAlternativeSource
Alternative (fallback) representation of the section content. Used when the target output format does not support the primary source type. For example, a Markdown section may carry a plain text fallback. -
getCaption
Caption text displayed alongside the section (e.g. figure caption, table caption). -
setType
The type of content in this section. Determines which processing pipeline is used. -
setId
Unique identifier for this section (used for cross-referencing). -
setLabel
LaTeX label for referencing this section (e.g. for\\labeland\\refcommands). -
setListingLang
Programming language hint for source code listings (e.g."java","python"). Used for syntax highlighting. -
setSource
Primary source text of the section. Interpreted according to the section'stype. -
setAlternativeSource
Alternative (fallback) representation of the section content. Used when the target output format does not support the primary source type. For example, a Markdown section may carry a plain text fallback. -
setCaption
Caption text displayed alongside the section (e.g. figure caption, table caption). -
equals
-
hashCode
public int hashCode() -
toString
-