org.apache.cxf.aegis.type.basic
Class BeanType

java.lang.Object
  extended by org.apache.cxf.aegis.type.Type
      extended by org.apache.cxf.aegis.type.basic.BeanType

public class BeanType
extends Type

Serializes JavaBeans.

Author:
Dan Diephouse, Jack Hong

Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.Type
typeClass
 
Constructor Summary
BeanType()
           
BeanType(BeanTypeInfo info)
           
 
Method Summary
protected  java.lang.Object createFromFault(Context context)
          If the class is an exception, this will try and instantiate it with information from the XFireFault (if it exists).
 BeanTypeInfo createTypeInfo()
           
 java.util.Set<Type> getDependencies()
          Return a set of Type dependencies.
 BeanTypeInfo getTypeInfo()
           
 boolean isComplex()
          We need to write a complex type schema for Beans, so return true.
 java.lang.Object readObject(MessageReader reader, Context context)
          Read in the XML fragment and create an object.
protected  java.lang.Object readProperty(java.lang.Object object, javax.xml.namespace.QName name)
           
 void setTypeClass(java.lang.Class typeClass)
           
 java.lang.String toString()
           
 void writeObject(java.lang.Object object, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
protected  void writeProperty(javax.xml.namespace.QName name, java.lang.Object object, java.lang.Object property, java.lang.Class impl, BeanTypeInfo inf)
          Write the specified property to a field.
 void writeSchema(org.jdom.Element root)
           
 
Methods inherited from class org.apache.cxf.aegis.type.Type
equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeMapping, setWriteOuter
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BeanType

public BeanType()

BeanType

public BeanType(BeanTypeInfo info)
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

createFromFault

protected java.lang.Object createFromFault(Context context)
                                    throws java.lang.SecurityException,
                                           java.lang.InstantiationException,
                                           java.lang.IllegalAccessException,
                                           java.lang.IllegalArgumentException,
                                           java.lang.reflect.InvocationTargetException
If the class is an exception, this will try and instantiate it with information from the XFireFault (if it exists).

Throws:
java.lang.SecurityException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.IllegalArgumentException
java.lang.reflect.InvocationTargetException

writeProperty

protected void writeProperty(javax.xml.namespace.QName name,
                             java.lang.Object object,
                             java.lang.Object property,
                             java.lang.Class impl,
                             BeanTypeInfo inf)
                      throws DatabindingException
Write the specified property to a field.

Throws:
DatabindingException

writeObject

public void writeObject(java.lang.Object object,
                        MessageWriter writer,
                        Context context)
                 throws DatabindingException
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type
Throws:
DatabindingException

readProperty

protected java.lang.Object readProperty(java.lang.Object object,
                                        javax.xml.namespace.QName name)

writeSchema

public void writeSchema(org.jdom.Element root)
Overrides:
writeSchema in class Type
See Also:
Type.writeSchema(org.jdom.Element)

setTypeClass

public void setTypeClass(java.lang.Class typeClass)
Overrides:
setTypeClass in class Type
Parameters:
typeClass - The typeClass to set.

isComplex

public boolean isComplex()
We need to write a complex type schema for Beans, so return true.

Overrides:
isComplex in class Type
Returns:
True if a complex type schema must be written.
See Also:
Type.isComplex()

getDependencies

public java.util.Set<Type> getDependencies()
Description copied from class: Type
Return a set of Type dependencies. Returns null if this type has no dependencies.

Overrides:
getDependencies in class Type
Returns:
Set of Type dependencies

getTypeInfo

public BeanTypeInfo getTypeInfo()

createTypeInfo

public BeanTypeInfo createTypeInfo()

toString

public java.lang.String toString()
Overrides:
toString in class Type


Apache CXF