Class FullFilePositioner
- java.lang.Object
-
- com.github.oowekyala.ooxml.messages.PartialFilePositioner
-
- com.github.oowekyala.ooxml.messages.FullFilePositioner
-
- All Implemented Interfaces:
XmlPositioner
class FullFilePositioner extends PartialFilePositioner implements XmlPositioner
Scanner with known document context.
-
-
Field Summary
Fields Modifier and Type Field Description private NewOffsetScannerscanner-
Fields inherited from class com.github.oowekyala.ooxml.messages.PartialFilePositioner
textDoc
-
-
Constructor Summary
Constructors Constructor Description FullFilePositioner(java.lang.String fullFileText, java.lang.String systemId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XmlPositionstartPositionOf(org.w3c.dom.Node node)Returns an object describing the position in the file of the given XML node.-
Methods inherited from class com.github.oowekyala.ooxml.messages.PartialFilePositioner
getLinesAround
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.github.oowekyala.ooxml.messages.XmlPositioner
getLinesAround
-
-
-
-
Field Detail
-
scanner
private final NewOffsetScanner scanner
-
-
Method Detail
-
startPositionOf
public XmlPosition startPositionOf(org.w3c.dom.Node node)
Description copied from interface:XmlPositionerReturns an object describing the position in the file of the given XML node. If no position is available, or if the parameter is null, returns an undefined position.- Specified by:
startPositionOfin interfaceXmlPositioner- Overrides:
startPositionOfin classPartialFilePositioner- Parameters:
node- XML node- Returns:
- A position
-
-