org.codehaus.xfire.aegis.type.basic
Class BeanType

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

public class BeanType
extends Type

Serializes JavaBeans.

Author:
Dan Diephouse, Jack Hong

Constructor Summary
BeanType()
           
BeanType(BeanTypeInfo info)
           
 
Method Summary
protected  Object createFromFault(org.codehaus.xfire.MessageContext context)
          If the class is an exception, this will try and instantiate it with information from the XFireFault (if it exists).
 BeanTypeInfo createTypeInfo()
           
 Set getDependencies()
          Return a set of Type dependencies.
 BeanTypeInfo getTypeInfo()
           
 boolean isComplex()
          We need to write a complex type schema for Beans, so return true.
 Object readObject(MessageReader reader, org.codehaus.xfire.MessageContext context)
          Read in the XML fragment and create an object.
protected  Object readProperty(Object object, QName name)
           
 void setTypeClass(Class typeClass)
           
 String toString()
           
 void writeObject(Object object, MessageWriter writer, org.codehaus.xfire.MessageContext context)
          Writes the object to the MessageWriter.
protected  void writeProperty(QName name, Object object, Object property, Class impl, BeanTypeInfo info)
          Write the specified property to a field.
 void writeSchema(org.jdom.Element root)
           
 
Methods inherited from class org.codehaus.xfire.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 Object readObject(MessageReader reader,
                         org.codehaus.xfire.MessageContext context)
                  throws org.codehaus.xfire.fault.XFireFault
Description copied from class: Type
Read in the XML fragment and create an object.

Specified by:
readObject in class Type
Returns:
Throws:
org.codehaus.xfire.fault.XFireFault

createFromFault

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

Throws:
SecurityException
InstantiationException
IllegalAccessException
IllegalArgumentException
InvocationTargetException

writeProperty

protected void writeProperty(QName name,
                             Object object,
                             Object property,
                             Class impl,
                             BeanTypeInfo info)
                      throws org.codehaus.xfire.fault.XFireFault
Write the specified property to a field.

Throws:
org.codehaus.xfire.fault.XFireFault

writeObject

public void writeObject(Object object,
                        MessageWriter writer,
                        org.codehaus.xfire.MessageContext context)
                 throws org.codehaus.xfire.fault.XFireFault
Description copied from class: Type
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type
Throws:
org.codehaus.xfire.fault.XFireFault
See Also:
Type.writeObject(Object, org.codehaus.xfire.aegis.MessageWriter, org.codehaus.xfire.MessageContext)

readProperty

protected Object readProperty(Object object,
                              QName name)

writeSchema

public void writeSchema(org.jdom.Element root)
Specified by:
writeSchema in interface org.codehaus.xfire.wsdl.SchemaType
Overrides:
writeSchema in class Type
See Also:
Type.writeSchema(org.jdom.Element)

setTypeClass

public void setTypeClass(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.

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

getDependencies

public 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 org.codehaus.xfire.wsdl.SchemaType
Overrides:
getDependencies in class Type
Returns:
Set of Type dependencies

getTypeInfo

public BeanTypeInfo getTypeInfo()

createTypeInfo

public BeanTypeInfo createTypeInfo()

toString

public String toString()
Overrides:
toString in class Type


Copyright © 2004-2013. All Rights Reserved.