org.codehaus.xfire.castor
Class CastorType

java.lang.Object
  extended byorg.codehaus.xfire.aegis.type.Type
      extended byorg.codehaus.xfire.castor.CastorType
All Implemented Interfaces:
org.codehaus.xfire.wsdl.SchemaType

public class CastorType
extends org.codehaus.xfire.aegis.type.Type

XFire Type class for marshalling beans and demarshalling XML using Castor.

Author:
Adam Kramer, Paul Saxman

Constructor Summary
CastorType(java.lang.Class clazz, org.exolab.castor.mapping.Mapping mapping)
          Constructor that sets the Castor mapping to use for de/marshalling and sets the schema type for the castor type.
 
Method Summary
 javax.xml.namespace.QName getSchemaType()
           
 void initType()
           
 boolean isAbstract()
           
 boolean isComplex()
           
 boolean isWriteOuter()
           
 java.lang.Object readObject(org.codehaus.xfire.aegis.MessageReader reader, org.codehaus.xfire.MessageContext context)
           
 void writeObject(java.lang.Object object, org.codehaus.xfire.aegis.MessageWriter writer, org.codehaus.xfire.MessageContext context)
           
 
Methods inherited from class org.codehaus.xfire.aegis.type.Type
equals, getDependencies, getTypeClass, getTypeMapping, hashCode, isNillable, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, writeSchema
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CastorType

public CastorType(java.lang.Class clazz,
                  org.exolab.castor.mapping.Mapping mapping)
Constructor that sets the Castor mapping to use for de/marshalling and sets the schema type for the castor type.

Parameters:
mapping - The Castor mapping file used for de/marshalling which presently needs to be in the classpath.
Method Detail

getSchemaType

public javax.xml.namespace.QName getSchemaType()
See Also:
SchemaType.getSchemaType()

readObject

public java.lang.Object readObject(org.codehaus.xfire.aegis.MessageReader reader,
                                   org.codehaus.xfire.MessageContext context)
                            throws org.codehaus.xfire.fault.XFireFault
Throws:
org.codehaus.xfire.fault.XFireFault
See Also:
Type.readObject(org.codehaus.xfire.aegis.MessageReader, org.codehaus.xfire.MessageContext)

writeObject

public void writeObject(java.lang.Object object,
                        org.codehaus.xfire.aegis.MessageWriter writer,
                        org.codehaus.xfire.MessageContext context)
                 throws org.codehaus.xfire.fault.XFireFault
Throws:
org.codehaus.xfire.fault.XFireFault
See Also:
Type.writeObject(java.lang.Object, org.codehaus.xfire.aegis.MessageWriter, org.codehaus.xfire.MessageContext)

isAbstract

public boolean isAbstract()

isComplex

public boolean isComplex()

isWriteOuter

public boolean isWriteOuter()

initType

public void initType()


Copyright © 2004-2006 null. All Rights Reserved.