org.codehaus.xfire.castor
Class CastorTypeCreator
java.lang.Object
org.codehaus.xfire.castor.CastorTypeCreator
- All Implemented Interfaces:
- TypeCreator
public class CastorTypeCreator
- extends java.lang.Object
- implements TypeCreator
TypeCreator factory class for creating CastorType classes.
- Author:
- Adam Kramer, Paul Saxman
- See Also:
TypeCreator
Constructor Summary |
CastorTypeCreator(TypeCreator typeCreator,
java.lang.String mappingFile)
Constructor that instantiates the Castor mapping file to use for
de/marshalling. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastorTypeCreator
public CastorTypeCreator(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)
- Description copied from interface:
TypeCreator
- Get the mapped name of a method parameter.
- Specified by:
getElementName
in interface TypeCreator
- Returns:
createType
public Type createType(java.lang.reflect.Method method,
int index)
- Specified by:
createType
in interface TypeCreator
createType
public Type createType(java.beans.PropertyDescriptor propDesc)
- Specified by:
createType
in interface TypeCreator
createType
public Type createType(java.lang.reflect.Field field)
- Specified by:
createType
in interface TypeCreator
createType
public Type createType(java.lang.Class clazz)
- Specified by:
createType
in interface TypeCreator
setTypeMapping
public void setTypeMapping(TypeMapping typeMapping)
- Specified by:
setTypeMapping
in interface TypeCreator
getParent
public TypeCreator getParent()
- Specified by:
getParent
in interface TypeCreator
setParent
public void setParent(TypeCreator creator)
- Specified by:
setParent
in interface TypeCreator
Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.