Class DefaultContext

    • Method Detail

      • getCurrentVolume

        public Integer getCurrentVolume()
        Description copied from interface: Context
        Gets the current volume number (one based) or null if not known.
        Specified by:
        getCurrentVolume in interface Context
        Returns:
        returns the current volume number
      • getVolumeCount

        public Integer getVolumeCount()
        Description copied from interface: Context
        Gets the volume count or null if not known.
        Specified by:
        getVolumeCount in interface Context
        Returns:
        returns the volume count
      • getCurrentPage

        public Integer getCurrentPage()
        Description copied from interface: Context
        Gets the current page number (one based) or null if not known.
        Specified by:
        getCurrentPage in interface Context
        Returns:
        returns the current page number
      • getMetaVolume

        public Integer getMetaVolume()
        Description copied from interface: Context
        Gets the volume number (one based) of the context described in the current context, or null if not available.

        For example, an entry in a table of contents or an end note are examples where this method can be used to retrieve the original context.

        Specified by:
        getMetaVolume in interface Context
        Returns:
        returns the meta volume number
      • getMetaPage

        public Integer getMetaPage()
        Description copied from interface: Context
        Gets the page number (one based) of the context described in the current context, or null if not available.

        For example,

        • In the context of an entry in a table of contents, if it is a standard entry (toc-entry in OBFL), this method can be used to retrieve the page number of the block the entry is connected with. If it is a resumed entry (toc-entry-on-resumed in OBFL), this method would be used to retrieve the number of the first content page after the volume break that corresponds with this entry.
        • In the context of an end note (item in OBFL) this method can be used to retrieve the page number of the anchor that the item is connected with.
        • In the context of a group of end notes that are referenced from the same page (on-page-start and on-page-end in OBFL), this method can be used to retrieve the number of that page.
        Specified by:
        getMetaPage in interface Context
        Returns:
        returns the meta page number
      • getPagesInVolume

        public Integer getPagesInVolume()
        Description copied from interface: Context
        Gets the total number of pages contained in the current volume, or null if not known. This should include the volume's pre- and post-content.
        Specified by:
        getPagesInVolume in interface Context
        Returns:
        returns the number of pages in the current volume, or null if not known.
      • getPagesInDocument

        public Integer getPagesInDocument()
        Description copied from interface: Context
        Gets the total number of pages contained in the document, or null if not known.
        Specified by:
        getPagesInDocument in interface Context
        Returns:
        returns the number of pages in the document, or null if not known.
      • getSheetsInVolume

        public Integer getSheetsInVolume()
        Description copied from interface: Context
        Gets the total number of sheets contained in the current volume, or null if not known. This should include the volume's pre- and post-content.
        Specified by:
        getSheetsInVolume in interface Context
        Returns:
        returns the number of sheets in the current volume, or null if not known.
      • getSheetsInDocument

        public Integer getSheetsInDocument()
        Description copied from interface: Context
        Gets the total number of sheets contained in the document, or null if not known.
        Specified by:
        getSheetsInDocument in interface Context
        Returns:
        returns the number of sheets in the document, or null if not known.
      • getSpace

        public Space getSpace()
      • getCurrentPageId

        public PageId getCurrentPageId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object