|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.aegis.type.Type
org.codehaus.xfire.castor.CastorType
public class CastorType
XFire Type class for marshalling beans and demarshalling XML using Castor.
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()
The schema type that this SchemaType represents. |
void |
initType()
|
boolean |
isComplex()
Whether or not this a complex type. |
boolean |
isWriteOuter()
|
java.lang.Object |
readObject(MessageReader reader,
MessageContext context)
Read in the XML fragment and create an object. |
void |
writeObject(java.lang.Object object,
MessageWriter writer,
MessageContext context)
Writes the object to the MessageWriter. |
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 |
Constructor Detail |
---|
public CastorType(java.lang.Class clazz, Mapping mapping)
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 |
---|
public javax.xml.namespace.QName getSchemaType()
SchemaType
getSchemaType
in interface SchemaType
getSchemaType
in class Type
SchemaType.getSchemaType()
public java.lang.Object readObject(MessageReader reader, MessageContext context) throws XFireFault
Type
readObject
in class Type
XFireFault
Type.readObject(org.codehaus.xfire.aegis.MessageReader,
org.codehaus.xfire.MessageContext)
public void writeObject(java.lang.Object object, MessageWriter writer, MessageContext context) throws XFireFault
Type
writeObject
in class Type
XFireFault
Type.writeObject(java.lang.Object,
org.codehaus.xfire.aegis.MessageWriter,
org.codehaus.xfire.MessageContext)
public boolean isComplex()
SchemaType
isComplex
in interface SchemaType
isComplex
in class Type
public boolean isWriteOuter()
isWriteOuter
in interface SchemaType
isWriteOuter
in class Type
public void initType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |