public interface Context
Modifier and Type | Method and Description |
---|---|
default Integer |
getCurrentPage()
Gets the current page number (one based) or null if not known.
|
default Integer |
getCurrentVolume()
Gets the current volume number (one based) or null if not known.
|
default Integer |
getMetaPage()
Gets the page number (one based) of the context described in the current
context, or null if not available.
|
default Integer |
getMetaVolume()
Gets the volume number (one based) of the context described in the current context,
or null if not available.
|
default Integer |
getPagesInDocument()
Gets the total number of pages contained in the document, or null if not known.
|
default Integer |
getPagesInVolume()
Gets the total number of pages contained in the current volume, or null if not
known.
|
default Integer |
getSheetsInDocument()
Gets the total number of sheets contained in the document, or null if not known.
|
default Integer |
getSheetsInVolume()
Gets the total number of sheets contained in the current volume, or null if not
known.
|
default Integer |
getVolumeCount()
Gets the volume count or null if not known.
|
default Integer getCurrentVolume()
default Integer getVolumeCount()
default Integer getCurrentPage()
default Integer getMetaVolume()
default Integer getMetaPage()
For example,
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.item
in OBFL) this
method can be used to retrieve the page number of the anchor that the
item is connected with.on-page-start
and on-page-end
in
OBFL), this method can be used to retrieve the number of that
page.default Integer getPagesInVolume()
default Integer getPagesInDocument()
default Integer getSheetsInVolume()
default Integer getSheetsInDocument()