|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.sax.xpointer.XPointerFrameworkParser
public class XPointerFrameworkParser
Parser for the XPointer Framework Syntax, see the specification at: http://www.w3.org/TR/2003/REC-xptr-framework-20030325/ Some of the token definitions (for recognizing NCName's) were copied from the JXPath parser from Apache Commons (to save some typing), written by Ingo Macherius, Gerald Huck <{macherius, huck}@gmd.de> and Dmitri Plotnikov. $Id: XPointerFrameworkParser.html 1343757 2012-05-29 14:45:42Z ilgrosso $
Field Summary | |
---|---|
Token |
jj_nt
Next token. |
Token |
token
Current token. |
XPointerFrameworkParserTokenManager |
token_source
Generated Token Manager. |
Fields inherited from interface org.apache.cocoon.sax.xpointer.XPointerFrameworkParserConstants |
---|
BaseChar, CIRC_LBRACE, CIRC_RBRACE, CombiningChar, DEFAULT, DOUBLE_CIRC, EOF, Extender, Ideographic, IN_SCHEME, LBRACE, Letter, NCName, NormalChar, QName, RBRACE, tokenImage, UnicodeDigit, WS |
Constructor Summary | |
---|---|
XPointerFrameworkParser(InputStream stream)
Constructor with InputStream. |
|
XPointerFrameworkParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding |
|
XPointerFrameworkParser(Reader stream)
Constructor. |
|
XPointerFrameworkParser(XPointerFrameworkParserTokenManager tm)
Constructor with generated Token Manager. |
Method Summary | |
---|---|
void |
disable_tracing()
Disable tracing. |
void |
enable_tracing()
Enable tracing. |
String |
escapedData()
|
ParseException |
generateParseException()
Generate ParseException. |
Token |
getNextToken()
Get the next Token. |
Token |
getToken(int index)
Get the specific Token. |
XPointer |
getXPointer()
|
static XPointer |
parse(String xpointer)
|
void |
pointer()
|
void |
pointerPart()
|
void |
ReInit(InputStream stream)
Reinitialise. |
void |
ReInit(InputStream stream,
String encoding)
Reinitialise. |
void |
ReInit(Reader stream)
Reinitialise. |
void |
ReInit(XPointerFrameworkParserTokenManager tm)
Reinitialise. |
void |
schemeBased()
|
String |
schemeData()
|
void |
shortHand()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public XPointerFrameworkParserTokenManager token_source
public Token token
public Token jj_nt
Constructor Detail |
---|
public XPointerFrameworkParser(InputStream stream)
public XPointerFrameworkParser(InputStream stream, String encoding)
public XPointerFrameworkParser(Reader stream)
public XPointerFrameworkParser(XPointerFrameworkParserTokenManager tm)
Method Detail |
---|
public static XPointer parse(String xpointer) throws ParseException
ParseException
public XPointer getXPointer()
public final void pointer() throws ParseException
ParseException
public final void shortHand() throws ParseException
ParseException
public final void schemeBased() throws ParseException
ParseException
public final void pointerPart() throws ParseException
ParseException
public final String schemeData() throws ParseException
ParseException
public final String escapedData() throws ParseException
ParseException
public void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(XPointerFrameworkParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |