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

pack-priv final Class ShortHandPointer

extends Object
implements XPointerPart
Class Inheritance
All Implemented Interfaces
com.sun.org.apache.xerces.internal.xpointer.XPointerPart
Imports
com.sun.org.apache.xerces.internal.impl.Constants, com.sun.org.apache.xerces.internal.impl.dv.XSSimpleType, com.sun.org.apache.xerces.internal.util.SymbolTable, com.sun.org.apache.xerces.internal.xni.Augmentations, .QName, .XMLAttributes, .XNIException, com.sun.org.apache.xerces.internal.xs.AttributePSVI, .XSTypeDefinition

Implements the XPointerPart interface and handles processing of ShortHand Pointers. It identifies at most one element in the resource's information set; specifically, the first one (if any) in document order that has a matching NCName as an identifier.

Field Summary

Modifier and TypeField and Description
private boolean
pack-priv int
fMatchingChildCount

Resolves the XPointer ShortHand pointer based on the rules defined in Section 3.2 of the XPointer Framework Recommendation.

private String
private SymbolTable

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

String - We return null since we currenly do not supprt this.
getChildrenSchemaDeterminedID
(XMLAttributes attributes, int index)

Not quite sure how this can be correctly implemented.

public String

Returns:

String
getDTDDeterminedID
(XMLAttributes attributes, int index)

Rerturns the DTD determine-ID

public String

Returns:

A String containing the schema-determined ID.
getSchemaDeterminedID
(XMLAttributes attributes, int index)

Returns the schema-determined-ID.

public String
getSchemeData()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.getSchemeData.

Returns a String containing the scheme data of the PointerPart.

public String
getSchemeName()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.getSchemeName.

Returns the name of the ShortHand pointer

private boolean
hasMatchingIdentifier(QName element, XMLAttributes attributes, Augmentations augs, int event)

public boolean
isChildFragmentResolved()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.isChildFragmentResolved.

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

public boolean
isFragmentResolved()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.isFragmentResolved.

Returns true if the XPointer expression resolves to a resource fragment specified as input else returns false.

public void
parseXPointer(String part)

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

The XPointerProcessor takes care of this.

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

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.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
setSchemeData(String schemeData)

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.setSchemeData.

Sets the scheme data of the PointerPart.

public void
setSchemeName(String schemeName)

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.setSchemeName.

Sets the scheme name of the PointerPart or the ShortHand Pointer name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fIsFragmentResolvedback to summary
private boolean fIsFragmentResolved
fMatchingChildCountback to summary
pack-priv int fMatchingChildCount

Resolves the XPointer ShortHand pointer based on the rules defined in Section 3.2 of the XPointer Framework Recommendation. Note that in the current implementation only supports DTD determined ID's.

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#resolveXPointer(com.sun.org.apache.xerces.internal.xni.QName, com.sun.org.apache.xerces.internal.xni.XMLAttributes, com.sun.org.apache.xerces.internal.xni.Augmentations, int event)
fShortHandPointerback to summary
private String fShortHandPointer
fSymbolTableback to summary
private SymbolTable fSymbolTable

Constructor Detail

ShortHandPointerback to summary
public ShortHandPointer()
ShortHandPointerback to summary
public ShortHandPointer(SymbolTable symbolTable)

Method Detail

getChildrenSchemaDeterminedIDback to summary
public String getChildrenSchemaDeterminedID(XMLAttributes attributes, int index) throws XNIException

Not quite sure how this can be correctly implemented.

Returns:String

String - We return null since we currenly do not supprt this.

getDTDDeterminedIDback to summary
public String getDTDDeterminedID(XMLAttributes attributes, int index) throws XNIException

Rerturns the DTD determine-ID

Returns:String

String

getSchemaDeterminedIDback to summary
public String getSchemaDeterminedID(XMLAttributes attributes, int index) throws XNIException

Returns the schema-determined-ID.

Returns:String

A String containing the schema-determined ID.

getSchemeDataback to summary
public String getSchemeData()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.getSchemeData.

Doc from com.sun.org.apache.xerces.internal.xpointer.XPointerPart.getSchemeData.

Returns a String containing the scheme data of the PointerPart.

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#getSchemeData()
getSchemeNameback to summary
public String getSchemeName()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.getSchemeName.

Returns the name of the ShortHand pointer

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#getSchemeName()
hasMatchingIdentifierback to summary
private boolean hasMatchingIdentifier(QName element, XMLAttributes attributes, Augmentations augs, int event) throws XNIException
isChildFragmentResolvedback to summary
public boolean isChildFragmentResolved()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.isChildFragmentResolved.

Doc from com.sun.org.apache.xerces.internal.xpointer.XPointerPart.isChildFragmentResolved.

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

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#isChildFragmentResolved()
isFragmentResolvedback to summary
public boolean isFragmentResolved()

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.isFragmentResolved.

Doc from com.sun.org.apache.xerces.internal.xpointer.XPointerPart.isFragmentResolved.

Returns true if the XPointer expression resolves to a resource fragment specified as input else returns false.

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#isFragmentResolved()
parseXPointerback to summary
public void parseXPointer(String part) throws XNIException

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

The XPointerProcessor takes care of this. Simply set the ShortHand Pointer here.

Exceptions
XNIException:

Doc from com.sun.org.apache.xerces.internal.xpointer.XPointerPart.parseXPointer.

Thrown if the PointerPart string does not conform to the syntax defined by its scheme.

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#parseXPointer(java.lang.String)
resolveXPointerback to summary
public boolean resolveXPointer(QName element, XMLAttributes attributes, Augmentations augs, int event) throws XNIException

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

Doc from com.sun.org.apache.xerces.internal.xpointer.XPointerPart.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.

Exceptions
XNIException:
Thrown to signal an error
setSchemeDataback to summary
public void setSchemeData(String schemeData)

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.setSchemeData.

Doc from com.sun.org.apache.xerces.internal.xpointer.XPointerPart.setSchemeData.

Sets the scheme data of the PointerPart.

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#setSchemeData(java.lang.String)
setSchemeNameback to summary
public void setSchemeName(String schemeName)

Implements com.sun.org.apache.xerces.internal.xpointer.XPointerPart.setSchemeName.

Doc from com.sun.org.apache.xerces.internal.xpointer.XPointerPart.setSchemeName.

Sets the scheme name of the PointerPart or the ShortHand Pointer name.

See Also
com.sun.org.apache.xerces.internal.xpointer.XPointerPart#setSchemeName(java.lang.String)