org.codehaus.xfire.type.basic
Class BeanType

java.lang.Object
  extended by org.codehaus.xfire.type.Type
      extended by org.codehaus.xfire.type.basic.BeanType
All Implemented Interfaces:
SchemaType

public class BeanType
extends Type

Serializes JavaBeans.

Author:
Dan Diephouse

Constructor Summary
BeanType()
           
BeanType(TypeInfo info)
           
 
Method Summary
 TypeInfo createTypeInfo()
           
 java.util.Set getDependencies()
          Return a set of Type dependencies.
protected  Type getType(javax.xml.namespace.QName name)
          Get the type class for the field with the specified QName.
 TypeInfo getTypeInfo()
           
 boolean isComplex()
          We need to write a complex type schema for Beans, so return true.
 java.lang.Object readObject(MessageReader reader, MessageContext context)
           
protected  java.lang.Object readProperty(java.lang.Object object, javax.xml.namespace.QName name)
           
 void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)
           
protected  void writeProperty(javax.xml.namespace.QName name, java.lang.Object object, java.lang.Object property)
          Write the specified property to a field.
 void writeSchema(org.codehaus.yom.Element root)
          Write the type schema (if complex) to the element.
 
Methods inherited from class org.codehaus.xfire.type.Type
equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, setAbstract, setSchemaType, setTypeClass, setTypeMapping
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanType

public BeanType()

BeanType

public BeanType(TypeInfo info)
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader,
                                   MessageContext context)
                            throws XFireFault
Specified by:
readObject in class Type
Throws:
XFireFault

writeProperty

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

Throws:
XFireFault

getType

protected Type getType(javax.xml.namespace.QName name)
Get the type class for the field with the specified QName.

Parameters:
object -
name -
namespace -
Returns:
Throws:
XFireFault

writeObject

public void writeObject(java.lang.Object object,
                        MessageWriter writer,
                        MessageContext context)
                 throws XFireFault
Specified by:
writeObject in class Type
Throws:
XFireFault
See Also:
org.codehaus.xfire.type.Type#writeObject(java.lang.Object)

readProperty

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

writeSchema

public void writeSchema(org.codehaus.yom.Element root)
Description copied from interface: SchemaType
Write the type schema (if complex) to the element.

Specified by:
writeSchema in interface SchemaType
Overrides:
writeSchema in class Type
See Also:
org.codehaus.xfire.type.Type#writeSchema()

isComplex

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

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

getDependencies

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

Specified by:
getDependencies in interface SchemaType
Overrides:
getDependencies in class Type
Returns:

getTypeInfo

public TypeInfo getTypeInfo()

createTypeInfo

public TypeInfo createTypeInfo()