Package org.apache.cxf.aegis.type.xml
Class SourceType
- java.lang.Object
-
- org.apache.cxf.aegis.type.AegisType
-
- org.apache.cxf.aegis.type.xml.SourceType
-
public class SourceType extends AegisType
Reads and writesjavax.xml.transform.Sourcetypes.The XML stream is converted DOMSource and sent off.
- See Also:
javanet.staxutils.StAXSource,XMLInputFactory,org.apache.cxf.aegis.util.STAXUtils
-
-
Constructor Summary
Constructors Constructor Description SourceType()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XMLReadercreateXMLReader()ObjectreadObject(MessageReader mreader, Context context)Read in the XML fragment and create an object.protected voidwrite(Source object, XMLStreamWriter writer)voidwriteObject(Object object, MessageWriter writer, Context context)Writes the object to the MessageWriter.-
Methods inherited from class org.apache.cxf.aegis.type.AegisType
addToSchemaElement, equals, getDependencies, getMaxOccurs, getMinOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isComplex, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, usesXmime, writeSchema
-
-
-
-
Method Detail
-
readObject
public Object readObject(MessageReader mreader, Context context) throws DatabindingException
Description copied from class:AegisTypeRead in the XML fragment and create an object.- Specified by:
readObjectin classAegisType- Returns:
- Throws:
DatabindingException
-
writeObject
public void writeObject(Object object, MessageWriter writer, Context context) throws DatabindingException
Description copied from class:AegisTypeWrites the object to the MessageWriter.- Specified by:
writeObjectin classAegisType- Throws:
DatabindingException
-
write
protected void write(Source object, XMLStreamWriter writer) throws FactoryConfigurationError, XMLStreamException, DatabindingException
-
createXMLReader
protected XMLReader createXMLReader() throws SAXException
- Throws:
SAXException
-
-