Contents | Package | Class | Tree | Deprecated | Index | Help XML for Java 1.0.4
PREV | NEXT SHOW LISTS | HIDE LISTS

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

Constructor Summary
 XPointerParser()
 
 

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, toString, wait, wait, wait
 

Constructor Detail

XPointerParser

public XPointerParser()
Method Detail

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.

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