com.ibm.xml.xpointer
Class Pointed.Item
java.lang.Object
|
+--com.ibm.xml.xpointer.Pointed.Item
- public static class Pointed.Item
- extends java.lang.Object
Item provides support for an individual string or Node being pointed to by an XPointer.
- Version:
- 1.1
Field Summary |
Node |
node
The node being pointed to. |
java.lang.String |
string
The string being pointed to. |
int |
type
Type of node pointed to. |
Constructor Summary |
Pointed.Item(Node node,
java.lang.String string,
int offset,
int length)
Constructor. |
Method Summary |
boolean |
equals(java.lang.Object object)
Returns whether object indicates the same location as this item. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
type
public int type
- Type of node pointed to. One of T_NODE, T_STRINGINNODE, or T_STRING
node
public Node node
- The node being pointed to.
string
public java.lang.String string
- The string being pointed to. Only valid when type=T_STRINGINNODE or T_STRING
Pointed.Item
public Pointed.Item(Node node,
java.lang.String string,
int offset,
int length)
- Constructor.
- Parameters:
node
- Node being pointed to. Specify null when type=T_STRING
.string
- String being pointed to. Specify null when type=T_NODE
.offset
- 0-based offset into string being pointed to. Specify 0 when type!=T_STRINGINNODE
.length
- Length of string being pointed to. Specify 0 when type!=T_STRINGINNODE
.
equals
public boolean equals(java.lang.Object object)
- Returns whether object indicates the same location as this item.
- Returns:
=true
if object is an item that points
to the same location as this item; otherwise, =false
.- Overrides:
- equals in class java.lang.Object