|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.legstar.coxb.transform.AbstractXmlTransformers
public abstract class AbstractXmlTransformers
A generic class that provides transformer capabilities for a given structure.
A structure maps to an XSD and a COBOL structure. This class does not implement the transformers, it acts as a container. Classes derived from this one will typically implement a constructor that creates the directional transformers, XML to host and host to XML.
| Constructor Summary | |
|---|---|
AbstractXmlTransformers()
No arg constructor. |
|
AbstractXmlTransformers(IXmlToHostTransformer xmlToHost,
IHostToXmlTransformer hostToXml)
Creates a provider with its directional transformers. |
|
| Method Summary | |
|---|---|
IHostToXmlTransformer |
getHostToXml()
|
IXmlToHostTransformer |
getXmlToHost()
|
void |
setHostToXml(IHostToXmlTransformer hostToXml)
|
void |
setXmlToHost(IXmlToHostTransformer xmlToHost)
|
byte[] |
toHost(Source source)
Transforms XML to host data. |
byte[] |
toHost(Source source,
HostTransformStatus status)
Transforms XML source to host data. |
byte[] |
toHost(Source source,
String hostCharset)
Transforms XML to host data with a specific host character set. |
byte[] |
toHost(Source source,
String hostCharset,
HostTransformStatus status)
Transforms XML source to host data with a specific host character set. |
void |
toXml(byte[] hostData,
Writer writer)
Transforms host data to XML. |
void |
toXml(byte[] hostData,
Writer writer,
HostTransformStatus status)
Transforms host data to XML. |
void |
toXml(byte[] hostData,
Writer writer,
String hostCharset)
Transforms host data to XML with a specific host character set. |
void |
toXml(byte[] hostData,
Writer writer,
String hostCharset,
HostTransformStatus status)
Transforms host data to XML using a specific host character set. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractXmlTransformers()
public AbstractXmlTransformers(IXmlToHostTransformer xmlToHost,
IHostToXmlTransformer hostToXml)
xmlToHost - XML to host transformerhostToXml - host to XML transformer| Method Detail |
|---|
public IXmlToHostTransformer getXmlToHost()
public void setXmlToHost(IXmlToHostTransformer xmlToHost)
xmlToHost - the transformer that turns an XML into host data to setpublic IHostToXmlTransformer getHostToXml()
public void setHostToXml(IHostToXmlTransformer hostToXml)
hostToXml - the transformer that turns host data into an XML to set
public byte[] toHost(Source source,
String hostCharset)
throws HostTransformException
toHost in interface IHostXmlTransformerssource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)hostCharset - the host character set
HostTransformException - if transformation fails
public byte[] toHost(Source source)
throws HostTransformException
toHost in interface IHostXmlTransformerssource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)
HostTransformException - if transformation fails
public void toXml(byte[] hostData,
Writer writer,
String hostCharset)
throws HostTransformException
toXml in interface IHostXmlTransformershostData - a byte array containing host datawriter - XML will be sent to this writer.hostCharset - the host character set
HostTransformException - if transformation fails
public void toXml(byte[] hostData,
Writer writer)
throws HostTransformException
toXml in interface IHostXmlTransformershostData - a byte array containing host datawriter - XML will be sent to this writer.
HostTransformException - if transformation fails
public byte[] toHost(Source source,
String hostCharset,
HostTransformStatus status)
throws HostTransformException
toHost in interface IHostXmlTransformerssource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)hostCharset - the host character setstatus - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public byte[] toHost(Source source,
HostTransformStatus status)
throws HostTransformException
toHost in interface IHostXmlTransformerssource - the XML Source to unmarshal XML data from (such as
SAXSource, DOMSource, and StreamSource)status - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public void toXml(byte[] hostData,
Writer writer,
String hostCharset,
HostTransformStatus status)
throws HostTransformException
toXml in interface IHostXmlTransformershostData - a byte array containing host datawriter - XML will be sent to this writer.hostCharset - the host character setstatus - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
public void toXml(byte[] hostData,
Writer writer,
HostTransformStatus status)
throws HostTransformException
toXml in interface IHostXmlTransformershostData - a byte array containing host datawriter - XML will be sent to this writer.status - will contain information on the transformation after it is
executed
HostTransformException - if transformation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||