org.codehaus.xfire.castor
Class CastorTypeCreator

java.lang.Object
  extended by org.codehaus.xfire.castor.CastorTypeCreator
All Implemented Interfaces:
org.codehaus.xfire.aegis.type.TypeCreator

public class CastorTypeCreator
extends 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, String mappingFile)
          Constructor that instantiates the Castor mapping file to use for de/marshalling.
 
Method Summary
 org.codehaus.xfire.aegis.type.Type createType(Class clazz)
           
 org.codehaus.xfire.aegis.type.Type createType(Field field)
           
 org.codehaus.xfire.aegis.type.Type createType(Method method, int index)
           
 org.codehaus.xfire.aegis.type.Type createType(PropertyDescriptor propDesc)
           
 QName getElementName(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
 

Constructor Detail

CastorTypeCreator

public CastorTypeCreator(org.codehaus.xfire.aegis.type.TypeCreator typeCreator,
                         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.
Method Detail

getElementName

public QName getElementName(Method m,
                            int index)
Specified by:
getElementName in interface org.codehaus.xfire.aegis.type.TypeCreator

createType

public org.codehaus.xfire.aegis.type.Type createType(Method method,
                                                     int index)
Specified by:
createType in interface org.codehaus.xfire.aegis.type.TypeCreator

createType

public org.codehaus.xfire.aegis.type.Type createType(PropertyDescriptor propDesc)
Specified by:
createType in interface org.codehaus.xfire.aegis.type.TypeCreator

createType

public org.codehaus.xfire.aegis.type.Type createType(Field field)
Specified by:
createType in interface org.codehaus.xfire.aegis.type.TypeCreator

createType

public org.codehaus.xfire.aegis.type.Type createType(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-2013. All Rights Reserved.