Creates a new instance.
An existing IEpubCfiRootNode to use, otherwise a new empty root node is created.
Creates a new IEpubCfiLocalPathNode with all steps necessary to select the specified element from its owner document.
Appends a terminal local path to the specified container node and offset. If the container node is an Element, the offset specifies the child node within that element. If the container node is a Text node, the offset specified the character offset.
Appends a terminal range to the EPUB CFI model.
Creates a clone of this instance including all state.
Collapses the range epubcfi to its end position. If the epubcfi does not define a range, nothing is done.
Collapses the range epubcfi to its start position. If the epubcfi does not define a range, nothing is done.
Get the IEpubCfiRootNode containing all paths and steps appended with this builder.
Serializes the current state of the EPUB CFI model as a selector fragment string.
Generated using TypeDoc
Used for programmatically building EPUB CFI model objects from XML-based documents. This class is used internally by the framework and is not intended to be used by framework users.