|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The docProcI interface provides access to low-level information in an XML (or other markup, since this processing works below even the well-formedness processing in an XML parser. All information is passed as StringBuffer objects and returned as (possibly changed) StringBuffer objects. The context object provides the element/attribute context as well as the current namespace declaration stack.
One issue in particular is worth noting. Namespace declarations may not appear until after the first use of an element in that namespace. This is an unfortunate side-effect of the attribute-based syntax used by Namespaces in XML. A look-ahead strategy and two context trees (one reflecting the initial document, one reflecting the result) may correct this in the future.
Method Summary | |
java.lang.StringBuffer |
attEndQuote(java.lang.StringBuffer content)
Reports the end quote type of an attribute described by the current tag. |
java.lang.StringBuffer |
attEquals(java.lang.StringBuffer content)
Reports when the equals sign in an attribute name/value pair is encountered. |
java.lang.StringBuffer |
attName(java.lang.StringBuffer content)
Reports the name of an attribute described by the current tag. |
java.lang.StringBuffer |
attStartQuote(java.lang.StringBuffer content)
Reports the start quote type of an attribute described by the current tag. |
java.lang.StringBuffer |
CDATAEnd(java.lang.StringBuffer content)
Reports that a CDATA section has ended. |
java.lang.StringBuffer |
CDATAStart(java.lang.StringBuffer content)
Reports that a CDATA section has started. |
java.lang.StringBuffer |
chars(java.lang.StringBuffer content)
Reports raw textual content contained by elements or attributes. |
java.lang.StringBuffer |
commentContent(java.lang.StringBuffer content)
Reports comment contents. |
java.lang.StringBuffer |
commentEnd(java.lang.StringBuffer content)
Reports comments. |
java.lang.StringBuffer |
commentStart(java.lang.StringBuffer content)
Reports the beginning of comments. |
java.lang.StringBuffer |
decCharRef(java.lang.StringBuffer content)
Reports decimal character references. |
java.lang.StringBuffer |
DOCTYPE(java.lang.StringBuffer content)
Reports the DOCTYPE declaration, if one is present.. |
java.lang.StringBuffer |
elementName(java.lang.StringBuffer content)
Reports the name of the element described by the current tag. |
java.lang.StringBuffer |
endElementCTag(java.lang.StringBuffer content)
Indicates that the parser has ended reading a closing tag. |
java.lang.StringBuffer |
endElementETag(java.lang.StringBuffer content)
Indicates that the parser has ended reading an empty tag. |
java.lang.StringBuffer |
endElementOTag(java.lang.StringBuffer content)
Indicates that the parser has ended reading an open tag. |
java.lang.StringBuffer |
entRef(java.lang.StringBuffer content)
Reports entity references. |
GorilleException |
error(GorilleException e)
A conduit for error messages |
GorilleException |
fatalError(GorilleException e)
A conduit for fatal error messages |
DocProcI |
getChainListener()
getChainListener() lets you find out which object is getting events from this processor. |
ContextI |
getContext()
getContext() is useful if you need to chain one processor to another and connect the contexts. |
java.lang.StringBuffer |
hexCharRef(java.lang.StringBuffer content)
Reports hexadecimal character references. |
java.lang.StringBuffer |
PIData(java.lang.StringBuffer content)
Reports the data in a processing instruction. |
java.lang.StringBuffer |
PIEnd(java.lang.StringBuffer content)
Reports that a processing instruction has ended. |
java.lang.StringBuffer |
PISpace(java.lang.StringBuffer content)
Reports the whitespace between a processing instruction's target and its data. |
java.lang.StringBuffer |
PIStart(java.lang.StringBuffer content)
Reports that a processing instruction has started. |
java.lang.StringBuffer |
PITarget(java.lang.StringBuffer content)
Reports a processing instruction target. |
void |
setChainListener(DocProcI listener)
setChainListener() lets you set a processor which will receive the events from this processor before the information is returned to the original filter. |
void |
setContext(ContextI context)
setContext() connects this processor to a particular context object coming from the parser. |
java.lang.StringBuffer |
startElementCTag(java.lang.StringBuffer content)
Indicates that the parser has begun reading a closing tag. |
java.lang.StringBuffer |
startElementOTag(java.lang.StringBuffer content)
Indicates that the parser has begun reading an open or empty tag. |
java.lang.StringBuffer |
tagSpace(java.lang.StringBuffer content)
Reports whitespace inside of start, end, and empty tags, except whitespace contained in attribute values. |
GorilleException |
warning(GorilleException e)
A conduit for warning messages |
java.lang.StringBuffer |
XMLdecl(java.lang.StringBuffer content)
Reports the XML declaration, if one is present. |
Method Detail |
public void setContext(ContextI context)
public ContextI getContext()
public void setChainListener(DocProcI listener)
public DocProcI getChainListener()
public java.lang.StringBuffer XMLdecl(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer DOCTYPE(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer startElementOTag(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer startElementCTag(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer elementName(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer tagSpace(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer attName(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer attEquals(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer attStartQuote(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer attEndQuote(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer endElementOTag(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer endElementETag(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer endElementCTag(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer chars(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer decCharRef(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer hexCharRef(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer entRef(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer commentStart(java.lang.StringBuffer content) throws GorilleException
public java.lang.StringBuffer commentContent(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer commentEnd(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer PIStart(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer PITarget(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer PISpace(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer PIData(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer PIEnd(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer CDATAStart(java.lang.StringBuffer content) throws GorilleException
GorilleException
public java.lang.StringBuffer CDATAEnd(java.lang.StringBuffer content) throws GorilleException
GorilleException
public GorilleException warning(GorilleException e) throws GorilleException
GorilleException
public GorilleException error(GorilleException e) throws GorilleException
GorilleException
public GorilleException fatalError(GorilleException e) throws GorilleException
GorilleException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |