org.codehaus.xfire.castor
Class CastorTypeCreator
java.lang.Object
org.codehaus.xfire.castor.CastorTypeCreator
- All Implemented Interfaces:
- org.codehaus.xfire.aegis.type.TypeCreator
public class CastorTypeCreator
- extends java.lang.Object
- implements org.codehaus.xfire.aegis.type.TypeCreator
TypeCreator factory class for creating CastorType classes.
- Author:
- Adam Kramer, Paul Saxman
- See Also:
TypeCreator
Constructor Summary |
CastorTypeCreator(org.codehaus.xfire.aegis.type.TypeCreator typeCreator,
java.lang.String mappingFile)
Constructor that instantiates the Castor mapping file to use for
de/marshalling. |
Method Summary |
org.codehaus.xfire.aegis.type.Type |
createType(java.lang.Class clazz)
|
org.codehaus.xfire.aegis.type.Type |
createType(java.lang.reflect.Field field)
|
org.codehaus.xfire.aegis.type.Type |
createType(java.lang.reflect.Method method,
int index)
|
org.codehaus.xfire.aegis.type.Type |
createType(java.beans.PropertyDescriptor propDesc)
|
javax.xml.namespace.QName |
getElementName(java.lang.reflect.Method m,
int index)
|
org.codehaus.xfire.aegis.type.TypeCreator |
getParent()
|
void |
setParent(org.codehaus.xfire.aegis.type.TypeCreator creator)
|
void |
setTypeMapping(org.codehaus.xfire.aegis.type.TypeMapping typeMapping)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastorTypeCreator
public CastorTypeCreator(org.codehaus.xfire.aegis.type.TypeCreator typeCreator,
java.lang.String mappingFile)
- Constructor that instantiates the Castor mapping file to use for
de/marshalling.
- Parameters:
typeCreator
- Default type creator used next in case castor not configured
to map a certain type.mappingFile
- The name of the Castor mapping file used for de/marshalling
which presently needs to be in the classpath.
getElementName
public javax.xml.namespace.QName getElementName(java.lang.reflect.Method m,
int index)
- Specified by:
getElementName
in interface org.codehaus.xfire.aegis.type.TypeCreator
createType
public org.codehaus.xfire.aegis.type.Type createType(java.lang.reflect.Method method,
int index)
- Specified by:
createType
in interface org.codehaus.xfire.aegis.type.TypeCreator
createType
public org.codehaus.xfire.aegis.type.Type createType(java.beans.PropertyDescriptor propDesc)
- Specified by:
createType
in interface org.codehaus.xfire.aegis.type.TypeCreator
createType
public org.codehaus.xfire.aegis.type.Type createType(java.lang.reflect.Field field)
- Specified by:
createType
in interface org.codehaus.xfire.aegis.type.TypeCreator
createType
public org.codehaus.xfire.aegis.type.Type createType(java.lang.Class clazz)
- Specified by:
createType
in interface org.codehaus.xfire.aegis.type.TypeCreator
setTypeMapping
public void setTypeMapping(org.codehaus.xfire.aegis.type.TypeMapping typeMapping)
- Specified by:
setTypeMapping
in interface org.codehaus.xfire.aegis.type.TypeCreator
getParent
public org.codehaus.xfire.aegis.type.TypeCreator getParent()
- Specified by:
getParent
in interface org.codehaus.xfire.aegis.type.TypeCreator
setParent
public void setParent(org.codehaus.xfire.aegis.type.TypeCreator creator)
- Specified by:
setParent
in interface org.codehaus.xfire.aegis.type.TypeCreator
Copyright © 2004-2008. All Rights Reserved.