org.codehaus.xfire.castor
Class CastorType

java.lang.Object
  extended by Type
      extended by org.codehaus.xfire.castor.CastorType

public class CastorType
extends Type

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

Author:
Adam Kramer, Paul Saxman

Constructor Summary
CastorType(java.lang.Class clazz, 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(MessageReader reader, MessageContext context)
           
 void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CastorType

public CastorType(java.lang.Class clazz,
                  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.
Method Detail

getSchemaType

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

readObject

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

writeObject

public void writeObject(java.lang.Object object,
                        MessageWriter writer,
                        MessageContext context)
                 throws XFireFault
Throws:
XFireFault
See Also:
org.codehaus.xfire.aegis.type.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 Envoi Solutions LLC. All Rights Reserved.