APIdia Launch Partner
Top Description Inners Fields Constructors Methods
com.sun.org.apache.xerces.internal.xpointer

public final Class XPointerHandler

extends XIncludeHandler
implements XPointerProcessor
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xpointer.XPointerProcessor
Imports
java.util.ArrayList, .HashMap, com.sun.org.apache.xerces.internal.impl.Constants, .XMLErrorReporter, com.sun.org.apache.xerces.internal.util.SymbolTable, .XMLChar, .XMLSymbols, com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler, .XIncludeNamespaceSupport, com.sun.org.apache.xerces.internal.xni.Augmentations, .QName, .XMLAttributes, .XMLDocumentHandler, .XMLString, .XNIException, com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException, .XMLErrorHandler

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.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class
XPointerHandler.Scanner

The XPointer expression scanner.

private class
XPointerHandler.Tokens

List of XPointer Framework tokens.

Field Summary

Modifier and TypeField and Description
private final String
protected XMLErrorHandler
protected boolean
protected boolean
protected boolean
protected boolean
protected SymbolTable
protected XMLErrorReporter
protected XPointerPart
protected ArrayList<XPointerPart>
Inherited from com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler:
ALLOW_UE_AND_NOTATION_EVENTSBUFFER_SIZECURRENT_BASE_URIDYNAMIC_VALIDATIONENTITY_RESOLVERERROR_REPORTERfBaseURIfBaseURIScopefBufferSizefChildConfigfCurrentBaseURIfCurrentLanguagefDocLocationfDocumentHandlerfDocumentSourcefDTDHandlerfDTDSourcefEntityResolverfErrorReporterfExpandedSystemIDfHrefFromParentfLanguageScopefLanguageStackfLiteralSystemIDfNamespaceContextfParentRelativeURIfParentXIncludeHandlerfSecurityManagerfSecurityPropertyMgrfSettingsfXInclude10TextReaderfXInclude11TextReaderfXIncludeChildConfigfXIncludeLocatorfXIncludeMessageFormatterfXPointerChildConfigfXPtrProcessorHTTP_ACCEPTHTTP_ACCEPT_LANGUAGEJAXP_SCHEMA_LANGUAGEPARSER_SETTINGSSCHEMA_VALIDATIONSECURITY_MANAGERSYMBOL_TABLEVALIDATIONXINCLUDE_ATTR_ACCEPTXINCLUDE_ATTR_ACCEPT_LANGUAGEXINCLUDE_ATTR_ENCODINGXINCLUDE_ATTR_HREFXINCLUDE_ATTR_PARSEXINCLUDE_FALLBACKXINCLUDE_FIXUP_BASE_URISXINCLUDE_FIXUP_LANGUAGEXINCLUDE_INCLUDEXINCLUDE_INCLUDEDXINCLUDE_NS_URIXINCLUDE_PARSE_TEXTXINCLUDE_PARSE_XMLXML_SECURITY_PROPERTY_MANAGERXPOINTER

Constructor Summary

AccessConstructor and Description
public
public
XPointerHandler(SymbolTable symbolTable, XMLErrorHandler errorHandler, XMLErrorReporter errorReporter)

Method Summary

Modifier and TypeMethod and Description
public void
characters(XMLString
The content.
text
,
Augmentations
Additional information that may include infoset augmentations
augs
)

Overrides com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.characters.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.characters.

Character content.

public void
comment(XMLString
The text in the comment.
text
,
Augmentations
Additional information that may include infoset augmentations
augs
)

Overrides com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.comment.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.comment, com.sun.org.apache.xerces.internal.xni.XMLDTDHandler.comment.

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.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.emptyElement.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.emptyElement.

An empty element.

public void
endCDATA(Augmentations
Additional information that may include infoset augmentations
augs
)

Overrides com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endCDATA.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.endCDATA.

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.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.endElement.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.endElement.

The end of an element.

public ArrayList<XPointerPart>

Returns:

An ArrayList of XPointerPart objects.
getPointerParts
()

Returns an ArrayList of XPointerPart objects

public XPointerPart

Returns:

String - The pointer part used to resolve the document fragment.
getXPointerPart
()

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.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.ignorableWhitespace.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.ignorableWhitespace.

Ignorable whitespace.

protected void
init()

Initializes the XPointer Processor;

protected void
initErrorReporter()

Initializes error handling objects

public boolean
isChildFragmentResolved()

Returns true if the XPointer expression resolves to a non-element child of the current resource fragment.

public boolean
public boolean
isXPointerResolved()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerProcessor.isXPointerResolved.

Returns true if the XPointer successfully found a sub-resource .

public void
parseXPointer(String xpointer)

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerProcessor.parseXPointer.

Parses the XPointer framework expression and delegates scheme specific parsing.

public void
private void
reportError(String key, Object[] arguments)

Reports XPointer Errors

private void
reportWarning(String key, Object[] arguments)

Reports XPointer Warnings

public boolean
resolveXPointer(QName element, XMLAttributes attributes, Augmentations augs, int event)

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerProcessor.resolveXPointer.

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
public void
setProperty(String
The property identifier.
propertyId
,
Object
The value of the property.
value
)

Overrides com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.setProperty.

Implements com.sun.org.apache.xerces.internal.xni.parser.XMLComponent.setProperty.

Sets the value of a property.

public void
startCDATA(Augmentations
Additional information that may include infoset augmentations
augs
)

Overrides com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startCDATA.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.startCDATA.

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.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startElement.

Implements com.sun.org.apache.xerces.internal.xni.XMLDocumentHandler.startElement.

The start of an element.

Inherited from com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler:
addNotationaddUnparsedEntityattributeDeclcheckAndSendNotationcheckAndSendUnparsedEntitycheckNotationcheckUnparsedEntitycopyFeaturescopyFeaturesdoctypeDeclelementDeclendAttlistendConditionalendDocumentendDTDendExternalSubsetendGeneralEntityendParameterEntityexternalEntityDeclgetBaseURIgetDocumentHandlergetDocumentSourcegetDTDHandlergetDTDSourcegetFeatureDefaultgetLanguagegetPropertyDefaultgetRecognizedFeaturesgetRecognizedPropertiesgetRelativeBaseURIgetRelativeURIgetSawFallbackgetSawIncludegetStategetStatehandleFallbackElementhandleIncludeElementhasXIncludeNamespaceignoredCharactersinternalEntityDeclisFallbackElementisIncludeElementisRootDocumentisTopLevelIncludedItemisTopLevelIncludedItemViaFallbackisTopLevelIncludedItemViaIncludemodifyAugmentationsmodifyAugmentationsnotationDeclprocessAttributesprocessXMLBaseAttributesprocessXMLLangAttributesreportFatalErrorreportFatalErrorreportFatalErrorreportResourceErrorreportResourceErrorreportResourceErrorresetrestoreBaseURIrestoreLanguagesameBaseURIAsIncludeParentsameLanguageAsIncludeParentsaveBaseURIsaveLanguagesearchForRecursiveIncludessetDocumentSourcesetDTDHandlersetDTDSourcesetFeaturesetHrefsetParentsetSawFallbacksetSawIncludesetStatesetXIncludeLocatorstartAttliststartConditionalstartDocumentstartDTDstartExternalSubsetstartGeneralEntitystartParameterEntitytextDeclunparsedEntityDeclxmlDecl