Class ContentEntryImpl

  • All Implemented Interfaces:
    ContentEntry

    public class ContentEntryImpl
    extends java.lang.Object
    implements ContentEntry
    • Constructor Summary

      Constructors 
      Constructor Description
      ContentEntryImpl​(java.lang.String sTitle, int nLevel, OutputFile file, java.lang.String sTarget)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      OutputFile getFile()
      Get the file associated with the entry
      int getLevel()
      Get the outline level of this ContentEntry.
      java.lang.String getTarget()
      Get the name of a target within the file, if any
      java.lang.String getTitle()
      Get the title for this entry
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ContentEntryImpl

        public ContentEntryImpl​(java.lang.String sTitle,
                                int nLevel,
                                OutputFile file,
                                java.lang.String sTarget)
    • Method Detail

      • getTitle

        public java.lang.String getTitle()
        Description copied from interface: ContentEntry
        Get the title for this entry
        Specified by:
        getTitle in interface ContentEntry
        Returns:
        the title
      • getLevel

        public int getLevel()
        Description copied from interface: ContentEntry
        Get the outline level of this ContentEntry. The top level is 1 (entries corresponding to indexes are considered top level). Note that intermediate levels may be missing (e.g. a heading of level 3 may follow immediately after a heading of level 1).
        Specified by:
        getLevel in interface ContentEntry
        Returns:
        the outline level
      • getTarget

        public java.lang.String getTarget()
        Description copied from interface: ContentEntry
        Get the name of a target within the file, if any
        Specified by:
        getTarget in interface ContentEntry
        Returns:
        the target name, or null if no target is needed