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

java.lang.Object
    |
    +----java.util.Vector
            |
            +----com.ibm.xml.xpointer.Pointed

public class Pointed
extends java.util.Vector
Pointed provides support for strings or Nodes being pointed to by an XPointer.

Version:
Revision: 76 1.4 src/com/ibm/xml/xpointer/Pointed.java, xml4jsrc, xml4j-jtcsv, xml4j_1_0_4

Inner Class Summary
static   Pointed.Item
Item provides support for an individual string or Node being pointed to by an XPointer.
 

Field Summary
static int  T_NODE
 
static int  T_STRING
 
static int  T_STRINGINNODE
 
 
Fields inherited from class java.util.Vector
 capacityIncrement, elementCount, elementData
 

Constructor Summary
 Pointed()
 
 

Method Summary
boolean  add(Node node, java.lang.String string, int offset, int length)
Add that a string in a Node is being pointed to by an XPointer.
boolean  add(Node node)
Add that a Node is being pointed to by an XPointer.
boolean  add(java.lang.String string)
Add that a string is being pointed to by an XPointer.
Pointed.Item  item(int index)
Returns an individual string or Node being pointed to by an XPointer.
 
Methods inherited from class java.util.Vector
 addElement, capacity, clone, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, removeAllElements, removeElement, removeElementAt, setElementAt, setSize, size, toString, trimToSize
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

T_NODE

public static final int T_NODE

T_STRINGINNODE

public static final int T_STRINGINNODE

T_STRING

public static final int T_STRING
Constructor Detail

Pointed

public Pointed()
Method Detail

add

public boolean add(Node node,
                   java.lang.String string,
                   int offset,
                   int length)
Add that a string in a Node is being pointed to by an XPointer.
Parameters:
node - Node being pointed to.
string - String being pointed to.
offset - 0-based offset into string being pointed to.
length - Length of string being pointed to.
Returns:
=true if pointer added; =false if pointer already exists.

add

public boolean add(Node node)
Add that a Node is being pointed to by an XPointer.
Parameters:
node - Node being pointed to.
Returns:
=true if pointer added; =false if pointer already exists.

add

public boolean add(java.lang.String string)
Add that a string is being pointed to by an XPointer.
Parameters:
string - String being pointed to.
Returns:
=true if pointer added; =false if pointer already exists.

item

public Pointed.Item item(int index) throws java.lang.ArrayIndexOutOfBoundsException
Returns an individual string or Node being pointed to by an XPointer.
Parameters:
index - Index into the Vector of pointers to strings and Nodes.
Returns:
The pointer to the string or Node at the specified index.
Throws:
java.lang.ArrayIndexOutOfBoundsException - Thrown if an invalid index was given.

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