org.apache.cxf.aegis.type.mtom
Class AbstractXOPType

java.lang.Object
  extended by org.apache.cxf.aegis.type.Type
      extended by org.apache.cxf.aegis.type.mtom.AbstractXOPType
Direct Known Subclasses:
ByteArrayType, DataHandlerType, DataSourceType

public abstract class AbstractXOPType
extends Type

Author:
Dan Diephouse

Field Summary
static java.lang.String XML_MIME_NS
           
static javax.xml.namespace.QName XML_MIME_TYPE
           
static javax.xml.namespace.QName XOP_HREF
           
static javax.xml.namespace.QName XOP_INCLUDE
           
static java.lang.String XOP_NS
           
 
Fields inherited from class org.apache.cxf.aegis.type.Type
typeClass
 
Constructor Summary
AbstractXOPType()
           
 
Method Summary
protected abstract  Attachment createAttachment(java.lang.Object object, java.lang.String id)
           
protected abstract  java.lang.String getContentType(java.lang.Object object, Context context)
           
protected abstract  java.lang.Object readAttachment(Attachment att, Context context)
           
 java.lang.Object readInclude(java.lang.String type, MessageReader reader, Context context)
           
 java.lang.Object readObject(MessageReader reader, Context context)
          Read in the XML fragment and create an object.
 void writeObject(java.lang.Object object, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
 
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
 

Field Detail

XOP_NS

public static final java.lang.String XOP_NS
See Also:
Constant Field Values

XML_MIME_NS

public static final java.lang.String XML_MIME_NS
See Also:
Constant Field Values

XOP_INCLUDE

public static final javax.xml.namespace.QName XOP_INCLUDE

XOP_HREF

public static final javax.xml.namespace.QName XOP_HREF

XML_MIME_TYPE

public static final javax.xml.namespace.QName XML_MIME_TYPE
Constructor Detail

AbstractXOPType

public AbstractXOPType()
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader,
                                   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

readInclude

public java.lang.Object readInclude(java.lang.String type,
                                    MessageReader reader,
                                    Context context)
                             throws DatabindingException
Throws:
DatabindingException

readAttachment

protected abstract java.lang.Object readAttachment(Attachment att,
                                                   Context context)
                                            throws java.io.IOException
Throws:
java.io.IOException

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

createAttachment

protected abstract Attachment createAttachment(java.lang.Object object,
                                               java.lang.String id)

getContentType

protected abstract java.lang.String getContentType(java.lang.Object object,
                                                   Context context)


Apache CXF