XML for Java Compatibility API 2.0.15

com.ibm.xml.xpointer
Class Pointed

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--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: 18 1.5 src/com/ibm/xml/xpointer/Pointed.java, parser, xml4j2, xml4j2_0_15
See Also:
Serialized Form

Inner Class Summary
static class 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
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Pointed()
           
 
Method Summary
 boolean add(org.w3c.dom.Node node)
          Add that a Node is being pointed to by an XPointer.
 boolean add(org.w3c.dom.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(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
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, 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(org.w3c.dom.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(org.w3c.dom.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.

XML for Java Compatibility API 2.0.15