com.jxml.quick.ocm
Class OCMrootPeerSupportLite
java.lang.Object
|
+--com.jxml.quick.ocm.OCMpeerSupportLite
|
+--com.jxml.quick.ocm.OCMrootPeerSupportLite
- All Implemented Interfaces:
- OCMpeer, OCMrootPeer
- Direct Known Subclasses:
- OCMtemplate, QCAttributes, QCElements, QCExtends, QCField, QCField, QCImplements, QCItem, QCMQJMLError, QCQJML, QCQJML, QCQJML, QCQJML, QCSelection, QCSequence, QVQDML
- public abstract class OCMrootPeerSupportLite
- extends OCMpeerSupportLite
- implements OCMrootPeer
Support class for ocm applications which do not perform conversion.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OCMrootPeerSupportLite
public OCMrootPeerSupportLite()
getOutputRoot
public Object getOutputRoot()
throws SAXException,
IOException
- Returns the root of the output data model.
(Defaults to this.)
convert
public QDoc convert()
throws SAXException,
IOException
- Description copied from interface:
OCMrootPeer
- Convert one QDoc into another.
- Specified by:
convert
in interface OCMrootPeer
- Following copied from interface:
com.jxml.quick.ocm.OCMrootPeer
- Returns:
- The new document.
convert
public QDoc convert(String url)
throws SAXException,
IOException
- Description copied from interface:
OCMrootPeer
- Convert one QDoc into another.
- Specified by:
convert
in interface OCMrootPeer
- Following copied from interface:
com.jxml.quick.ocm.OCMrootPeer
- Parameters:
url
- The name of the output document.- Returns:
- The new (unique) document.
express
public String express(boolean expressDefaults)
throws SAXException,
IOException
- Description copied from interface:
OCMrootPeer
- Generate an XML document (or other text).
- Specified by:
express
in interface OCMrootPeer
- Following copied from interface:
com.jxml.quick.ocm.OCMrootPeer
- Parameters:
doc
- The QDoc object holding the object tree to be expressed in XML.expressDefaults
- Turns on the expression of default values.- Returns:
- The XML representation
express
public void express(PrintWriter pw,
boolean expressDefaults)
throws SAXException,
IOException
- Description copied from interface:
OCMrootPeer
- Generate an XML document (or other text).
- Specified by:
express
in interface OCMrootPeer
- Following copied from interface:
com.jxml.quick.ocm.OCMrootPeer
- Parameters:
doc
- The QDoc object holding the object tree to be expressed in XML.PW
- PrintWriter where the XML document is to be written.expressDefaults
- Turns on the expression of default values.