Qizx/open API

net.axyana.qizxopen.dm
Class DataModel

java.lang.Object
  extended bynet.axyana.qizxopen.dm.DataModel
Direct Known Subclasses:
CoreDataModel, FONIDataModel

public abstract class DataModel
extends java.lang.Object

Abstract XQuery / XPath2 / XSLT2 Data Model.


Constructor Summary
DataModel()
           
 
Method Summary
static void exportDocument(FONIDocument document, XMLEventReceiver handler)
          Convenience method: exports a remote document, using a generic SAX-like handler.
static void exportNode(Node node, XMLEventReceiver handler)
          Exports a node belonging to a remote or local document, using a generic SAX-like handler (convenience method).
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataModel

public DataModel()
Method Detail

exportNode

public static void exportNode(Node node,
                              XMLEventReceiver handler)
                       throws DataModelException,
                              java.io.IOException
Exports a node belonging to a remote or local document, using a generic SAX-like handler (convenience method).

The method can be used to convert the node to another representation, using the appropriate handler.

Parameters:
node - a remote or local node
handler - generally a XMLSerializer or a SAX event handler (SAXEventReceiver), but it can be any application-provided object implementing the XMLEventReceiver interface.
Throws:
DataModelException
java.io.IOException

exportDocument

public static void exportDocument(FONIDocument document,
                                  XMLEventReceiver handler)
                           throws DataModelException,
                                  java.io.IOException
Convenience method: exports a remote document, using a generic SAX-like handler.

The method can be used to convert the document to another representation, using the appropriate handler. It works also if the document is not remote.

Parameters:
handler - generally a XMLSerializer or a SAX event handler (SAXEventReceiver), but it can be any application-provided object implementing the XMLEventReceiver interface.
Throws:
DataModelException
java.io.IOException

© 2005 Axyana Software