org.codehaus.xfire.castor
Class CastorType
java.lang.Object
org.codehaus.xfire.aegis.type.Type
org.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(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. |
Methods inherited from class org.codehaus.xfire.aegis.type.Type |
equals, getDependencies, getTypeClass, getTypeMapping, hashCode, isAbstract, isNillable, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, writeSchema |
CastorType
public CastorType(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:
class
- The Class of the castor type.mapping
- The Castor mapping file used for de/marshalling which
presently needs to be in the classpath.
getSchemaType
public QName getSchemaType()
- Specified by:
getSchemaType
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
getSchemaType
in class org.codehaus.xfire.aegis.type.Type
- See Also:
SchemaType.getSchemaType()
readObject
public Object readObject(org.codehaus.xfire.aegis.MessageReader reader,
org.codehaus.xfire.MessageContext context)
throws org.codehaus.xfire.fault.XFireFault
- Specified by:
readObject
in class org.codehaus.xfire.aegis.type.Type
- Throws:
org.codehaus.xfire.fault.XFireFault
- See Also:
Type.readObject(org.codehaus.xfire.aegis.MessageReader,
org.codehaus.xfire.MessageContext)
writeObject
public void writeObject(Object object,
org.codehaus.xfire.aegis.MessageWriter writer,
org.codehaus.xfire.MessageContext context)
throws org.codehaus.xfire.fault.XFireFault
- Specified by:
writeObject
in class org.codehaus.xfire.aegis.type.Type
- Throws:
org.codehaus.xfire.fault.XFireFault
- See Also:
Type.writeObject(java.lang.Object,
org.codehaus.xfire.aegis.MessageWriter,
org.codehaus.xfire.MessageContext)
isComplex
public boolean isComplex()
- Specified by:
isComplex
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
isComplex
in class org.codehaus.xfire.aegis.type.Type
isWriteOuter
public boolean isWriteOuter()
- Specified by:
isWriteOuter
in interface org.codehaus.xfire.wsdl.SchemaType
- Overrides:
isWriteOuter
in class org.codehaus.xfire.aegis.type.Type
initType
public void initType()
Copyright © 2004-2013. All Rights Reserved.