Package atessera.json

Class PublicationContent.Section

java.lang.Object
atessera.json.PublicationContent.Section
Enclosing class:
PublicationContent

public static final class PublicationContent.Section extends Object
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 Details

  • Method Details

    • getType

      The type of content in this section. Determines which processing pipeline is used.
    • getId

      public String getId()
      Unique identifier for this section (used for cross-referencing).
    • getLabel

      public String getLabel()
      LaTeX label for referencing this section (e.g. for \\label and \\ref commands).
    • getListingLang

      public String getListingLang()
      Programming language hint for source code listings (e.g. "java", "python"). Used for syntax highlighting.
    • getSource

      public List<String> getSource()
      Primary source text of the section. Interpreted according to the section's type.
    • getAlternativeSource

      public List<String> 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

      public List<String> getCaption()
      Caption text displayed alongside the section (e.g. figure caption, table caption).
    • setType

      public void setType(PublicationContent.SectionType type)
      The type of content in this section. Determines which processing pipeline is used.
    • setId

      public void setId(String id)
      Unique identifier for this section (used for cross-referencing).
    • setLabel

      public void setLabel(String label)
      LaTeX label for referencing this section (e.g. for \\label and \\ref commands).
    • setListingLang

      public void setListingLang(String listingLang)
      Programming language hint for source code listings (e.g. "java", "python"). Used for syntax highlighting.
    • setSource

      public void setSource(List<String> source)
      Primary source text of the section. Interpreted according to the section's type.
    • setAlternativeSource

      public void setAlternativeSource(List<String> alternativeSource)
      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

      public void setCaption(List<String> caption)
      Caption text displayed alongside the section (e.g. figure caption, table caption).
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object