org.apache.cxf.aegis.type.xml
Class SourceType
java.lang.Object
org.apache.cxf.aegis.type.Type
org.apache.cxf.aegis.type.xml.SourceType
public class SourceType
- extends Type
Reads and writes javax.xml.transform.Source
types.
The XML stream is converted DOMSource and sent off.
- Author:
- Dan Diephouse
- See Also:
javanet.staxutils.StAXSource
,
XMLInputFactory
,
org.apache.cxf.aegis.util.STAXUtils
Fields inherited from class org.apache.cxf.aegis.type.Type |
typeClass |
Methods inherited from class org.apache.cxf.aegis.type.Type |
equals, getDependencies, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, isComplex, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, writeSchema |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
SourceType
public SourceType()
readObject
public java.lang.Object readObject(MessageReader mreader,
Context context)
throws DatabindingException
- Description copied from class:
Type
- Read in the XML fragment and create an object.
- Specified by:
readObject
in class Type
- Returns:
-
- Throws:
DatabindingException
writeObject
public void writeObject(java.lang.Object object,
MessageWriter writer,
Context context)
throws DatabindingException
- Description copied from class:
Type
- Writes the object to the MessageWriter.
- Specified by:
writeObject
in class Type
- Throws:
DatabindingException
write
protected void write(javax.xml.transform.Source object,
javax.xml.stream.XMLStreamWriter writer)
throws javax.xml.stream.FactoryConfigurationError,
javax.xml.stream.XMLStreamException,
DatabindingException
- Throws:
javax.xml.stream.FactoryConfigurationError
javax.xml.stream.XMLStreamException
DatabindingException
createXMLReader
protected org.xml.sax.XMLReader createXMLReader()
throws org.xml.sax.SAXException
- Throws:
org.xml.sax.SAXException
Apache CXF