public static final class ElementXPointer.ContextImpl extends Object implements ElementXPointer.Context
ElementXPointer.Context
.Modifier and Type | Field and Description |
---|---|
DocumentType |
documentType
The type of the documents to be searched.
|
Constructor and Description |
---|
ContextImpl(DocumentType docType)
Constructs a context object for documents having specified type.
|
Modifier and Type | Method and Description |
---|---|
Element |
findElementById(Document doc,
String id)
Find in specified document the element having specified ID.
|
public final DocumentType documentType
public ContextImpl(DocumentType docType)
docType
- the type of the documents to be searched using
this context. May be null
.public Element findElementById(Document doc, String id)
ElementXPointer.Context
findElementById
in interface ElementXPointer.Context
doc
- document to be searchedid
- searched IDnull