| java.lang.Object org.apache.xerces.xinclude.XIncludeHandler org.apache.xerces.xpointer.XPointerHandler
XPointerHandler | final public class XPointerHandler extends XIncludeHandler implements XPointerProcessor(Code) | |
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.
version: $Id: XPointerHandler.java 447248 2006-09-18 05:25:21Z mrglavas $ |
Method Summary | |
public void | characters(XMLString text, Augmentations augs) Character content. | public void | comment(XMLString text, Augmentations augs) If the comment is a child of a matched element, then pass else return. | public void | emptyElement(QName element, XMLAttributes attributes, Augmentations augs) An empty element. | public void | endCDATA(Augmentations augs) The end of a CDATA section. | public void | endElement(QName element, Augmentations augs) The end of an element. | public Vector | getPointerParts() | public XPointerPart | getXPointerPart() Returns the pointer part used to resolve the document fragment. | public void | ignorableWhitespace(XMLString text, Augmentations augs) Ignorable whitespace. | protected void | init() | protected void | initErrorReporter() | public boolean | isChildFragmentResolved() Returns true if the XPointer expression resolves to a non-element child
of the current resource fragment. | public boolean | isFragmentResolved() Returns true if the Node fragment is resolved. | public boolean | isXPointerResolved() Returns true if the XPointer successfully found a sub-resource . | public void | parseXPointer(String xpointer) Parses the XPointer framework expression and delegates scheme specific parsing. | public void | processingInstruction(String target, XMLString data, Augmentations augs) A processing instruction. | public boolean | resolveXPointer(QName element, XMLAttributes attributes, Augmentations augs, int event) | public void | setDocumentHandler(XMLDocumentHandler handler) | public void | setProperty(String propertyId, Object value)
Sets the value of a property. | public void | startCDATA(Augmentations augs) The start of a CDATA section. | public void | startElement(QName element, XMLAttributes attributes, Augmentations augs) The start of an element. |
fFixupBase | protected boolean fFixupBase(Code) | | |
fFixupLang | protected boolean fFixupLang(Code) | | |
fFoundMatchingPtrPart | protected boolean fFoundMatchingPtrPart(Code) | | |
fIsXPointerResolved | protected boolean fIsXPointerResolved(Code) | | |
XPointerHandler | public XPointerHandler()(Code) | | |
characters | public void characters(XMLString text, Augmentations augs) throws XNIException(Code) | | Character content.
Parameters: text - The content. Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
comment | public void comment(XMLString text, Augmentations augs) throws XNIException(Code) | | If the comment is a child of a matched element, then pass else return.
Parameters: text - The text in the comment. Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by application to signal an error. |
emptyElement | public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code) | | An empty element.
Parameters: element - The name of the element. Parameters: attributes - The element attributes. Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
endCDATA | public void endCDATA(Augmentations augs) throws XNIException(Code) | | The end of a CDATA section.
Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
endElement | public void endElement(QName element, Augmentations augs) throws XNIException(Code) | | The end of an element.
Parameters: element - The name of the element. Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
getPointerParts | public Vector getPointerParts()(Code) | | Returns a Vector of XPointerPart objects
A Vector of XPointerPart objects. |
getXPointerPart | public XPointerPart getXPointerPart()(Code) | | Returns the pointer part used to resolve the document fragment.
String - The pointer part used to resolve the document fragment. |
ignorableWhitespace | public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code) | | Ignorable whitespace. For this method to be called, the document
source must have some way of determining that the text containing
only whitespace characters should be considered ignorable. For
example, the validator can determine if a length of whitespace
characters in the document are ignorable based on the element
content model.
Parameters: text - The ignorable whitespace. Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
init | protected void init()(Code) | | Initializes the XPointer Processor;
|
initErrorReporter | protected void initErrorReporter()(Code) | | Initializes error handling objects
|
processingInstruction | public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code) | | A processing instruction. Processing instructions consist of a
target name and, optionally, text data. The data is only meaningful
to the application.
Typically, a processing instruction's data will contain a series
of pseudo-attributes. These pseudo-attributes follow the form of
element attributes but are not parsed or presented
to the application as anything other than text. The application is
responsible for parsing the data.
Parameters: target - The target. Parameters: data - The data or null if none specified. Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
resolveXPointer | public boolean resolveXPointer(QName element, XMLAttributes attributes, Augmentations augs, int event) throws XNIException(Code) | | See Also: org.apache.xerces.xpointer.XPointerProcessor#resolveXPointer(org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, org.apache.xerces.xni.Augmentations, int event) |
setProperty | public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code) | |
Sets the value of a property. This method is called by the component
manager any time after reset when a property changes value.
Note: Components should silently ignore properties
that do not affect the operation of the component.
Parameters: propertyId - The property identifier. Parameters: value - The value of the property. throws: XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error. |
startCDATA | public void startCDATA(Augmentations augs) throws XNIException(Code) | | The start of a CDATA section.
Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
startElement | public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code) | | The start of an element.
Parameters: element - The name of the element. Parameters: attributes - The element attributes. Parameters: augs - Additional information that may include infoset augmentations exception: XNIException - Thrown by handler to signal an error. |
Methods inherited from org.apache.xerces.xinclude.XIncludeHandler | protected void addNotation(String name, XMLResourceIdentifier identifier, Augmentations augmentations)(Code)(Java Doc) protected void addUnparsedEntity(String name, XMLResourceIdentifier identifier, String notation, Augmentations augmentations)(Code)(Java Doc) public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void characters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) protected void checkAndSendNotation(Notation not)(Code)(Java Doc) protected void checkAndSendUnparsedEntity(UnparsedEntity ent)(Code)(Java Doc) protected void checkNotation(String notName)(Code)(Java Doc) protected void checkUnparsedEntity(String entName)(Code)(Java Doc) public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) protected void copyFeatures(XMLComponentManager from, ParserConfigurationSettings to)(Code)(Java Doc) protected void copyFeatures(XMLComponentManager from, XMLParserConfiguration to)(Code)(Java Doc) public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException(Code)(Java Doc) public void elementDecl(String name, String contentModel, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void endAttlist(Augmentations augmentations) throws XNIException(Code)(Java Doc) public void endCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void endConditional(Augmentations augmentations) throws XNIException(Code)(Java Doc) public void endDTD(Augmentations augmentations) throws XNIException(Code)(Java Doc) public void endDocument(Augmentations augs) throws XNIException(Code)(Java Doc) public void endElement(QName element, Augmentations augs) throws XNIException(Code)(Java Doc) public void endExternalSubset(Augmentations augmentations) throws XNIException(Code)(Java Doc) public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc) public void endParameterEntity(String name, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException(Code)(Java Doc) public String getBaseURI(int depth)(Code)(Java Doc) public XMLDTDHandler getDTDHandler()(Code)(Java Doc) public XMLDTDSource getDTDSource()(Code)(Java Doc) public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc) public XMLDocumentSource getDocumentSource()(Code)(Java Doc) public Boolean getFeatureDefault(String featureId)(Code)(Java Doc) public String getLanguage(int depth)(Code)(Java Doc) public Object getPropertyDefault(String propertyId)(Code)(Java Doc) public String[] getRecognizedFeatures()(Code)(Java Doc) public String[] getRecognizedProperties()(Code)(Java Doc) protected String getRelativeBaseURI() throws MalformedURIException(Code)(Java Doc) public String getRelativeURI(int depth) throws MalformedURIException(Code)(Java Doc) protected boolean getSawFallback(int depth)(Code)(Java Doc) protected boolean getSawInclude(int depth)(Code)(Java Doc) protected int getState(int depth)(Code)(Java Doc) protected int getState()(Code)(Java Doc) protected void handleFallbackElement()(Code)(Java Doc) protected boolean handleIncludeElement(XMLAttributes attributes) throws XNIException(Code)(Java Doc) protected boolean hasXIncludeNamespace(QName element)(Code)(Java Doc) public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc) public void ignoredCharacters(XMLString text, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augmentations) throws XNIException(Code)(Java Doc) protected boolean isFallbackElement(QName element)(Code)(Java Doc) protected boolean isIncludeElement(QName element)(Code)(Java Doc) protected boolean isRootDocument()(Code)(Java Doc) protected boolean isTopLevelIncludedItem()(Code)(Java Doc) protected boolean isTopLevelIncludedItemViaFallback()(Code)(Java Doc) protected boolean isTopLevelIncludedItemViaInclude()(Code)(Java Doc) protected Augmentations modifyAugmentations(Augmentations augs)(Code)(Java Doc) protected Augmentations modifyAugmentations(Augmentations augs, boolean force)(Code)(Java Doc) public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException(Code)(Java Doc) protected XMLAttributes processAttributes(XMLAttributes attributes)(Code)(Java Doc) protected void processXMLBaseAttributes(XMLAttributes attributes)(Code)(Java Doc) protected void processXMLLangAttributes(XMLAttributes attributes)(Code)(Java Doc) public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc) protected void reportFatalError(String key)(Code)(Java Doc) protected void reportFatalError(String key, Object[] args)(Code)(Java Doc) protected void reportResourceError(String key)(Code)(Java Doc) protected void reportResourceError(String key, Object[] args)(Code)(Java Doc) public void reset(XMLComponentManager componentManager) throws XNIException(Code)(Java Doc) protected void restoreBaseURI()(Code)(Java Doc) public String restoreLanguage()(Code)(Java Doc) protected boolean sameBaseURIAsIncludeParent()(Code)(Java Doc) protected boolean sameLanguageAsIncludeParent()(Code)(Java Doc) protected void saveBaseURI()(Code)(Java Doc) protected void saveLanguage(String language)(Code)(Java Doc) protected boolean searchForRecursiveIncludes(String includedSysId)(Code)(Java Doc) public void setDTDHandler(XMLDTDHandler handler)(Code)(Java Doc) public void setDTDSource(XMLDTDSource source)(Code)(Java Doc) public void setDocumentHandler(XMLDocumentHandler handler)(Code)(Java Doc) public void setDocumentSource(XMLDocumentSource source)(Code)(Java Doc) public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc) protected void setHref(String href)(Code)(Java Doc) protected void setParent(XIncludeHandler parent)(Code)(Java Doc) public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc) protected void setSawFallback(int depth, boolean val)(Code)(Java Doc) protected void setSawInclude(int depth, boolean val)(Code)(Java Doc) protected void setState(int state)(Code)(Java Doc) protected void setXIncludeLocator(XMLLocatorWrapper locator)(Code)(Java Doc) protected void setupCurrentBaseURI(XMLLocator locator)(Code)(Java Doc) public void startAttlist(String elementName, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void startCDATA(Augmentations augs) throws XNIException(Code)(Java Doc) public void startConditional(short type, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void startDTD(XMLLocator locator, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException(Code)(Java Doc) public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc) public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void startGeneralEntity(String name, XMLResourceIdentifier resId, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc) public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augmentations) throws XNIException(Code)(Java Doc) public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)(Java Doc)
|
|
|