Class PublicationTemplate.Section

java.lang.Object
atessera.templ.PublicationTemplate.Section
Enclosing class:
PublicationTemplate

public static final class PublicationTemplate.Section extends Object
Represents a section within a publication.

Each section has a type (TEXT, IMAGE, EQUATION, or LISTING) and associated content such as text, an image name, a label, a caption, and a language hint (for listings).

  • Constructor Details

    • Section

      public Section(PublicationTemplate.Section.Type type, String text, String imageName, String label, String caption, String lang)
      Constructs a fully specified section.
      Parameters:
      type - the section type; must not be null
      text - the section text (may be null)
      imageName - the image file name (may be null)
      label - the LaTeX label; will be escaped (may be null)
      caption - the section caption (may be null)
      lang - the language for listings; will be escaped (may be null)
    • Section

      public Section(PublicationTemplate.Section.Type type, String text, String imageName)
      Constructs a section with only type, text, and image name.
      Parameters:
      type - the section type; must not be null
      text - the section text (may be null)
      imageName - the image file name (may be null)
  • Method Details

    • getType

      public String getType()
    • getText

      public String getText()
    • getImageName

      public String getImageName()
    • getLabel

      public String getLabel()
    • getCaption

      public String getCaption()
    • getLang

      public String getLang()
    • 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