Contents | Package | Class | Tree | Deprecated | Index | Help XML for Java 1.0.4
PREV | NEXT SHOW LISTS | HIDE LISTS

Class com.ibm.xml.xpointer.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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

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.
Method Detail

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

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS