com.ibm.xml.xpointer
Class 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: 25 1.4 src/com/ibm/xml/xpointer/XPointerParser.java, parser, xml4j2, xml4j2_0_15
- See Also:
XPointer
Method Summary |
static void |
main(java.lang.String[] argv)
Test program for XPointerParser . |
XPointer |
parse(java.lang.String string)
Parse the specified string into an XPointer. |
XPointer |
parse(java.lang.String string,
int offset)
Parse the specified string from the specified offset into an XPointer. |
java.lang.String |
toString()
Returns a String representation of this XPointer instance. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
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:
XPointer.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.