Class com.ibm.xml.xpointer.XPointerParser
java.lang.Object
|
+----com.ibm.xml.xpointer.XPointerParser
- public class XPointerParser
- extends java.lang.Object
XPointerParser examines Strings and generates an XPointer object. Refer to XPointer
for details on XPointer syntax.
- Version:
- Revision: 85 1.4 src/com/ibm/xml/xpointer/XPointerParser.java, xml4jsrc, xml4j-jtcsv, xml4j_1_0_4
- See Also:
- XPointer
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPointerParser
public XPointerParser()
parse
public XPointer parse(java.lang.String string) throws XPointerParseException
- Parse the specified string into an XPointer.
- Parameters:
string
- String to parse into an XPointer.
- Returns:
- The parsed XPointer.
- Throws:
- XPointerParseException - Thrown if string has errors and could
not be parsed into an XPointer.
parse
public XPointer parse(java.lang.String string,
int offset) throws XPointerParseException
- Parse the specified string from the specified offset into an XPointer.
- Parameters:
string
- String to parse into an XPointer.
offset
- 0-based offset into string.
- Returns:
- The parsed XPointer.
- Throws:
- XPointerParseException - Thrown if string has errors and could
not be parsed into an XPointer.
toString
public java.lang.String toString()
- Returns a String representation of this XPointer instance.
- Returns:
- A string represention of this XPointer.
- Overrides:
- toString in class java.lang.Object
- See Also:
- toString
main
public static void main(java.lang.String[] argv)
- Test program for
XPointerParser
.
- Parameters:
argv
- Argument array: argv[0] is String to parse into an XPointer.