|
Qizx/open API | |||||||||
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 or any kind of tree construction or transformation, in particular "push" style evaluation of XQuery constructors.
All event methods begin with "ev" to avoid clashes with SAX.
Method Summary | |
void |
abort()
Signals an error in the event flow. |
void |
definePrefixHints(NSPrefixMapping prefixes)
Optional: defines a preferred prefix/namespace mapping for serialization. |
void |
evAtom(java.lang.Object value)
A special atom with any value (serializable). |
void |
evAtomText(java.lang.String value)
Text of an atom. |
void |
evAttribute(QName name,
java.lang.String value)
Adds an attribute on the current element. |
void |
evComment(java.lang.String value)
A comment node. |
void |
evDocumentEnd()
Ends a document. |
void |
evDocumentStart()
Starts a document. |
void |
evDTD(java.lang.String name,
java.lang.String publicID,
java.lang.String systemID)
DTD definition. |
void |
evElementEnd(QName name)
Ends an element. |
void |
evElementStart(QName name)
Starts an element. |
void |
evNamespace(java.lang.String prefix,
java.lang.String uri)
Adds a namespace node on the current element. |
void |
evPI(java.lang.String target,
java.lang.String value)
A processing-instruction node. |
void |
evText(java.lang.String value)
Text chunk inside an element. |
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 |
terminate()
Terminates a document or simple subtree. |
void |
traverse(FONIDocument document,
int nodeId)
Convenience method: traverses and generates a FONI document using this receiver. |
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 abort() throws DataModelException
DataModelException
public void evDocumentStart() throws DataModelException
It is not called in the case only a fragment is generated.
DataModelException
public void evDTD(java.lang.String name, java.lang.String publicID, java.lang.String systemID) throws DataModelException
DataModelException
public void evDocumentEnd() throws DataModelException
DataModelException
public void evElementStart(QName name) throws DataModelException
DataModelException
public void evNamespace(java.lang.String prefix, java.lang.String uri) throws DataModelException
DataModelException
public void evAttribute(QName name, java.lang.String value) throws DataModelException
DataModelException
public void evElementEnd(QName name) throws DataModelException
DataModelException
public void evText(java.lang.String value) throws DataModelException
DataModelException
public void evAtomText(java.lang.String value) throws DataModelException
DataModelException
public void evPI(java.lang.String target, java.lang.String value) throws DataModelException
DataModelException
public void evComment(java.lang.String value) throws DataModelException
DataModelException
public void evAtom(java.lang.Object 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 on the node itself). A false value is generally used.
DataModelException
public void traverse(FONIDocument document, int nodeId) throws DataModelException
DataModelException
public java.lang.String resolvePrefix(java.lang.String prefix)
public void definePrefixHints(NSPrefixMapping prefixes)
|
© 2005 Axyana Software | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |