org.codehaus.xfire.java.type
Class BeanType

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

public class BeanType
extends Type

Serializes JavaBeans.

Author:
Dan Diephouse

Constructor Summary
BeanType()
           
 
Method Summary
protected  java.beans.PropertyDescriptor findPropertyDescriptor(java.lang.String name, java.beans.PropertyDescriptor[] pd)
           
 boolean isComplex()
          We need to write a complex type schema for Beans, so return true.
 java.lang.Object readObject(MessageReader reader)
           
 void writeObject(java.lang.Object object, MessageWriter writer)
           
 void writeSchema(org.dom4j.Element root)
           
 
Methods inherited from class org.codehaus.xfire.java.type.Type
equals, getDependencies, getSchemaType, getTypeClass, getTypeMapping, hashCode, setSchemaType, setTypeClass, setTypeMapping
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeanType

public BeanType()
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader)
                            throws org.codehaus.xfire.XFireRuntimeException
Specified by:
readObject in class Type
Throws:
org.codehaus.xfire.XFireRuntimeException

findPropertyDescriptor

protected java.beans.PropertyDescriptor findPropertyDescriptor(java.lang.String name,
                                                               java.beans.PropertyDescriptor[] pd)

writeObject

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

writeSchema

public void writeSchema(org.dom4j.Element root)
Specified by:
writeSchema in interface org.codehaus.xfire.wsdl.WSDLType
Overrides:
writeSchema in class Type
See Also:
org.codehaus.xfire.java.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 org.codehaus.xfire.wsdl.WSDLType
Overrides:
isComplex in class Type
Returns:
True if a complex type schema must be written.
See Also:
Type.isComplex()


Copyright © 2004 Codehaus. All Rights Reserved.