|
Qizx/Open v0.4p2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A SAX-like abstract event handler.
Used for serialization and "push" style evaluation of XQuery constructors.
Method Summary | |
void |
atom(java.lang.String value)
Text of an atom. |
void |
attribute(QName name,
java.lang.String value)
Adds an attribute on the current element. |
void |
comment(java.lang.String value)
A comment node. |
void |
definePrefixHints(NSPrefixMapping prefixes)
Optional: defines a preferred prefix/namespace mapping for serialization. |
void |
endDocument()
Ends a document. |
void |
endElement(QName name)
Ends an element. |
void |
namespace(java.lang.String prefix,
java.lang.String uri)
Adds a namespace node on the current element. |
void |
pi(java.lang.String target,
java.lang.String value)
A processing-instruction node. |
void |
reset()
Resets the state prior to use startDocument() or startElement(). |
java.lang.String |
resolvePrefix(java.lang.String prefix)
Resolves a prefix to an URI in the context of the current node. |
void |
startDocument()
Starts a document. |
void |
startElement(QName name)
Starts an element. |
void |
terminate()
Terminates a document or simple subtree. |
void |
text(java.lang.String value)
Text chunk inside an element. |
void |
traverse(Node node,
boolean inScopeNS)
Convenience method: traverses and generates a subtree into this receiver. |
Method Detail |
public void reset()
public void terminate() throws DataModelException
DataModelException
public void startDocument() throws DataModelException
It is not called in the case only a fragment is generated.
DataModelException
public void endDocument() throws DataModelException
DataModelException
public void startElement(QName name) throws DataModelException
DataModelException
public void namespace(java.lang.String prefix, java.lang.String uri) throws DataModelException
DataModelException
public void attribute(QName name, java.lang.String value) throws DataModelException
DataModelException
public void endElement(QName name) throws DataModelException
DataModelException
public void text(java.lang.String value) throws DataModelException
DataModelException
public void atom(java.lang.String value) throws DataModelException
DataModelException
public void pi(java.lang.String target, java.lang.String value) throws DataModelException
DataModelException
public void comment(java.lang.String value) throws DataModelException
DataModelException
public void traverse(Node node, boolean inScopeNS) throws DataModelException
inScopeNS
- if true, copy all in-scope namespace nodes (not only those
defined in the node itself).
DataModelException
public java.lang.String resolvePrefix(java.lang.String prefix)
public void definePrefixHints(NSPrefixMapping prefixes)
|
Copyright Xavier FRANC 2003-2004 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |