org.apache.cocoon.sax.xpointer
Class XPointerFrameworkParser

java.lang.Object
  extended by org.apache.cocoon.sax.xpointer.XPointerFrameworkParser
All Implemented Interfaces:
XPointerFrameworkParserConstants

public class XPointerFrameworkParser
extends Object
implements XPointerFrameworkParserConstants

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

token_source

public XPointerFrameworkParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

XPointerFrameworkParser

public XPointerFrameworkParser(InputStream stream)
Constructor with InputStream.


XPointerFrameworkParser

public XPointerFrameworkParser(InputStream stream,
                               String encoding)
Constructor with InputStream and supplied encoding


XPointerFrameworkParser

public XPointerFrameworkParser(Reader stream)
Constructor.


XPointerFrameworkParser

public XPointerFrameworkParser(XPointerFrameworkParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

parse

public static XPointer parse(String xpointer)
                      throws ParseException
Throws:
ParseException

getXPointer

public XPointer getXPointer()

pointer

public final void pointer()
                   throws ParseException
Throws:
ParseException

shortHand

public final void shortHand()
                     throws ParseException
Throws:
ParseException

schemeBased

public final void schemeBased()
                       throws ParseException
Throws:
ParseException

pointerPart

public final void pointerPart()
                       throws ParseException
Throws:
ParseException

schemeData

public final String schemeData()
                        throws ParseException
Throws:
ParseException

escapedData

public final String escapedData()
                         throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)
Reinitialise.


ReInit

public void ReInit(InputStream stream,
                   String encoding)
Reinitialise.


ReInit

public void ReInit(Reader stream)
Reinitialise.


ReInit

public void ReInit(XPointerFrameworkParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.



Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.