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.
| Modifier and Type | Field 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 |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: String - We return null since we currenly do not supprt this.Not quite sure how this can be correctly implemented. |
| public String | |
| public String | Returns: A String containing the schema-determined ID.Returns the schema-determined-ID. |
| public String | getSchemeData()
Implements com. Returns a String containing the scheme data of the PointerPart. |
| public String | getSchemeName()
Implements com. Returns the name of the ShortHand pointer |
| private boolean | |
| public boolean | isChildFragmentResolved()
Implements com. 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 XPointer expression resolves to a resource fragment specified as input else returns false. |
| public void | parseXPointer(String part)
Implements com. The XPointerProcessor takes care of this. |
| 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 | setSchemeData(String schemeData)
Implements com. Sets the scheme data of the PointerPart. |
| public void | setSchemeName(String schemeName)
Implements com. Sets the scheme name of the PointerPart or the ShortHand Pointer name. |
| fIsFragmentResolved | back to summary |
|---|---|
| private boolean fIsFragmentResolved | |
| fMatchingChildCount | back 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. | |
| fShortHandPointer | back to summary |
|---|---|
| private String fShortHandPointer | |
| fSymbolTable | back to summary |
|---|---|
| private SymbolTable fSymbolTable | |
| ShortHandPointer | back to summary |
|---|---|
| public ShortHandPointer() | |
| ShortHandPointer | back to summary |
|---|---|
| public ShortHandPointer(SymbolTable symbolTable) | |
| getChildrenSchemaDeterminedID | back to summary |
|---|---|
| public String getChildrenSchemaDeterminedID(XMLAttributes attributes, int index) throws XNIException Not quite sure how this can be correctly implemented.
| |
| getDTDDeterminedID | back to summary |
|---|---|
| public String getDTDDeterminedID(XMLAttributes attributes, int index) throws XNIException Rerturns the DTD determine-ID
| |
| getSchemaDeterminedID | back to summary |
|---|---|
| public String getSchemaDeterminedID(XMLAttributes attributes, int index) throws XNIException Returns the schema-determined-ID.
| |
| getSchemeData | back to summary |
|---|---|
| public String getSchemeData() Implements com. Doc from com. Returns a String containing the scheme data of the PointerPart. | |
| getSchemeName | back to summary |
|---|---|
| public String getSchemeName() Implements com. Returns the name of the ShortHand pointer | |
| hasMatchingIdentifier | back to summary |
|---|---|
| private boolean hasMatchingIdentifier(QName element, XMLAttributes attributes, Augmentations augs, int event) throws XNIException | |
| isChildFragmentResolved | back to summary |
|---|---|
| public boolean isChildFragmentResolved() Implements com. Doc from com. Returns true if the XPointer expression resolves to a non-element child of the current resource fragment. | |
| isFragmentResolved | back to summary |
|---|---|
| public boolean isFragmentResolved() Implements com. Doc from com. Returns true if the XPointer expression resolves to a resource fragment specified as input else returns false. | |
| parseXPointer | back to summary |
|---|---|
| public void parseXPointer(String part) throws XNIException Implements com. The XPointerProcessor takes care of this. Simply set the ShortHand Pointer here.
| |
| resolveXPointer | back to summary |
|---|---|
| public boolean resolveXPointer(QName element, XMLAttributes attributes, Augmentations augs, int event) throws XNIException Implements com. Doc from 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.
| |
| setSchemeData | back to summary |
|---|---|
| public void setSchemeData(String schemeData) Implements com. Doc from com. Sets the scheme data of the PointerPart. | |
| setSchemeName | back to summary |
|---|---|
| public void setSchemeName(String schemeName) Implements com. Doc from com. Sets the scheme name of the PointerPart or the ShortHand Pointer name. | |