This is a pipeline component which extends the XIncludeHandler to perform XPointer specific processing specified in the W3C XPointerFramework and element() Scheme Recommendations.
This component analyzes each event in the pipeline, looking for an element that matches a PointerPart in the parent XInclude element's xpointer attribute value. If the match succeeds, all children are passed by this component.
See the XPointer Framework Recommendation for more information on the XPointer Framework and ShortHand Pointers. See the XPointer element() Scheme Recommendation for more information on the XPointer element() Scheme.
| Modifier and Type | Class and Description |
|---|---|
| private class | XPointerHandler.
The XPointer expression scanner. |
| private class | XPointerHandler.
List of XPointer Framework tokens. |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| protected XMLErrorHandler | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected boolean | |
| protected SymbolTable | |
| protected XMLErrorReporter | |
| protected XPointerPart | |
| protected ArrayList |
| Access | Constructor and Description |
|---|---|
| public | |
| public | XPointerHandler(SymbolTable symbolTable, XMLErrorHandler errorHandler, XMLErrorReporter errorReporter)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | characters(XMLString
The content. text, Augmentations Additional information that may include infoset augmentations augs)Overrides com. Implements com. Character content. |
| public void | comment(XMLString
The text in the comment. text, Augmentations Additional information that may include infoset augmentations augs)Overrides com. Implements com. If the comment is a child of a matched element, then pass else return. |
| public void | emptyElement(QName
The name of the element. element, XMLAttributes The element attributes. attributes, Augmentations Additional information that may include infoset augmentations augs)Overrides com. Implements com. An empty element. |
| public void | endCDATA(Augmentations
Additional information that may include infoset augmentations augs)Overrides com. Implements com. The end of a CDATA section. |
| public void | endElement(QName
The name of the element. element, Augmentations Additional information that may include infoset augmentations augs)Overrides com. Implements com. The end of an element. |
| public ArrayList | Returns: An ArrayList of XPointerPart objects.Returns an ArrayList of XPointerPart objects |
| public XPointerPart | Returns: String - The pointer part used to resolve the document fragment.Returns the pointer part used to resolve the document fragment. |
| public void | ignorableWhitespace(XMLString
The ignorable whitespace. text, Augmentations Additional information that may include infoset augmentations augs)Overrides com. Implements com. Ignorable whitespace. |
| protected void | |
| protected void | |
| public boolean | isChildFragmentResolved()
Returns true if the XPointer expression resolves to a non-element child of the current resource fragment. |
| public boolean | isFragmentResolved()
Implements com. Returns true if the Node fragment is resolved. |
| public boolean | isXPointerResolved()
Implements com. Returns true if the XPointer successfully found a sub-resource . |
| public void | parseXPointer(String xpointer)
Implements com. Parses the XPointer framework expression and delegates scheme specific parsing. |
| public void | processingInstruction(String
The target. target, XMLString The data or null if none specified. data, Augmentations Additional information that may include infoset augmentations augs)Overrides com. Implements com. A processing instruction. |
| private void | |
| private void | |
| public boolean | resolveXPointer(QName element, XMLAttributes attributes, Augmentations augs, int event)
Implements com. Evaluates an XML resource with respect to an XPointer expressions by checking if it's element and attributes parameters match the criteria specified in the xpointer expression. |
| public void | setDocumentHandler(XMLDocumentHandler handler)
Overrides com. Implements com. Sets the document handler. |
| public void | setProperty(String
The property identifier. propertyId, Object The value of the property. value)Overrides com. Implements com. Sets the value of a property. |
| public void | startCDATA(Augmentations
Additional information that may include infoset augmentations augs)Overrides com. Implements com. The start of a CDATA section. |
| public void | startElement(QName
The name of the element. element, XMLAttributes The element attributes. attributes, Augmentations Additional information that may include infoset augmentations augs)Overrides com. Implements com. The start of an element. |