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(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 |
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, isAbstract, isNillable, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, writeSchema |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
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:
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 javax.xml.namespace.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 java.lang.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(java.lang.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-2008. All Rights Reserved.