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.Scanner
The XPointer expression scanner. |
| private class | XPointerHandler.Tokens
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 org. Implements org. |
| public void | comment(XMLString
The text in the comment. text, Augmentations Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| 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 org. Implements org. |
| public void | endCDATA(Augmentations
Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| public void | endElement(QName
The name of the element. element, Augmentations Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| 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 org. Implements org. |
| 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 org. |
| public boolean | isXPointerResolved()
Implements org. |
| public void | parseXPointer(String
A String representing the xpointer expression. xpointer)Implements org. |
| 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 org. Implements org. |
| private void | |
| private void | |
| public boolean | resolveXPointer(QName
- The name of the element. element, XMLAttributes - The element attributes. attributes, Augmentations - Additional information that may include infoset augmentations augs, int - An integer indicating
0 - The start of an element
1 - The end of an element
2 - An empty element call event)Implements org. |
| public void | setDocumentHandler(XMLDocumentHandler handler)
Overrides org. Implements org. |
| public void | setProperty(String
The property identifier. propertyId, Object The value of the property. value)Overrides org. Implements org. Sets the value of a property. |
| public void | startCDATA(Augmentations
Additional information that may include infoset augmentations augs)Overrides org. Implements org. |
| 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 org. Implements org. |