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.
|
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 |
T_NODE
public static final int T_NODE
T_STRINGINNODE
public static final int T_STRINGINNODE
T_STRING
public static final int T_STRING
Pointed
public Pointed()
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.