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 org. |
| public String | getSchemeName()
Implements org. |
| private boolean | |
| public boolean | isChildFragmentResolved()
Implements org. |
| public boolean | isFragmentResolved()
Implements org. |
| public void | parseXPointer(String
A String representing the PointerPart or ShortHandPointer. part)Implements org. |
| 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 | setSchemeData(String
A String containing the scheme data of the PointerPart. schemeData)Implements org. |
| public void | setSchemeName(String
A String containing the scheme name of the PointerPart. schemeName)Implements org. |
| 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 org. Doc from org. Returns a String containing the scheme data of the PointerPart.
| |
| getSchemeName | back to summary |
|---|---|
| public String getSchemeName() Implements org. 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 org. Doc from org. 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 org. Doc from org. 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 org. 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 org. Doc from org. 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 org. Doc from org. Sets the scheme data of the PointerPart.
| |
| setSchemeName | back to summary |
|---|---|
| public void setSchemeName(String schemeName) Implements org. Doc from org. Sets the scheme name of the PointerPart or the ShortHand Pointer name.
| |