com.jxml.quick.ocm
Class OCMtemplate

java.lang.Object
  |
  +--com.jxml.quick.ocm.OCMpeerSupportLite
        |
        +--com.jxml.quick.ocm.OCMrootPeerSupportLite
              |
              +--com.jxml.quick.ocm.OCMtemplate
All Implemented Interfaces:
OCMpeer, OCMrootPeer
Direct Known Subclasses:
QCAttributes, QCcfg, QCChildElement, QCChildSelection, QCChildSequence, QCCoin, QCCoin, QCElementDefinition, QCElements, QCInstruction, QCItem, QCnvItem, QCNVT, QCProperty, QCQIML, QCRequiredItem, QCSelection, QCSequence, QCTargetEditor

public abstract class OCMtemplate
extends OCMrootPeerSupportLite


Fields inherited from class com.jxml.quick.ocm.OCMpeerSupportLite
context, dataModel, paramMap, parent
 
Constructor Summary
OCMtemplate()
           
 
Method Summary
 void cvt(Object param)
          Perform the conversion.
 void expand(String templateName)
           
 void expandString(String template, String templateName)
           
 String express(boolean expressDefaults)
          Generate an XML document (or other text).
 void express(PrintWriter pw, boolean expressDefaults)
          Generate an XML document (or other text).
abstract  String process(String templateName, String arg)
           
 
Methods inherited from class com.jxml.quick.ocm.OCMrootPeerSupportLite
convert, convert, getOutputRoot
 
Methods inherited from class com.jxml.quick.ocm.OCMpeerSupportLite
doCvt, doCvt, doCvt, init, peer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.jxml.quick.ocm.OCMpeer
init
 

Constructor Detail

OCMtemplate

public OCMtemplate()
Method Detail

cvt

public void cvt(Object param)
         throws SAXException,
                IOException
Description copied from interface: OCMpeer
Perform the conversion.
Overrides:
cvt in class OCMpeerSupportLite

expand

public void expand(String templateName)
            throws SAXException,
                   IOException

expandString

public void expandString(String template,
                         String templateName)
                  throws SAXException,
                         IOException

process

public abstract String process(String templateName,
                               String arg)
                        throws SAXException,
                               IOException

express

public String express(boolean expressDefaults)
               throws SAXException,
                      IOException
Description copied from interface: OCMrootPeer
Generate an XML document (or other text).
Overrides:
express in class OCMrootPeerSupportLite
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).
Overrides:
express in class OCMrootPeerSupportLite
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.