Groovy Documentation

src.java.org.grails.xfire.aegis.type
Class AbstractTypeCreator

java.lang.Object
  src.java.org.grails.xfire.aegis.type.AbstractTypeCreator
All Implemented Interfaces:
TypeCreator

class AbstractTypeCreator

author:
Hani Suleiman Date: Jun 14, 2005 Time: 11:59:57 PM


Nested Class Summary
class AbstractTypeCreator.TypeClassInfo

 
Field Summary
protected AbstractTypeCreator nextCreator

private TypeCreator parent

protected TypeMapping tm

private Configuration typeConfiguration

 
Constructor Summary
AbstractTypeCreator()

 
Method Summary
protected Type createArrayType(TypeClassInfo info)

TypeClassInfo createBasicClassInfo(java.lang.Class typeClass)

protected TypeClassInfo createClassInfo(Field f)

TypeClassInfo createClassInfo(PropertyDescriptor pd)

TypeClassInfo createClassInfo(Method m, int index)

protected QName createCollectionQName(TypeClassInfo info, Type type)

Type createCollectionType(TypeClassInfo info)

protected Type createCollectionTypeFromGeneric(TypeClassInfo info)

Type createDefaultType(TypeClassInfo info)

Type createEnumType(TypeClassInfo info)

protected Type createHolderType(TypeClassInfo info)

protected QName createMapQName(TypeClassInfo info, Type keyType, Type valueType)

protected Type createMapType(TypeClassInfo info, Type keyType, Type valueType)

protected Type createMapType(TypeClassInfo info)

private Type createObjectType()

protected QName createQName(java.lang.Class javaType)

Type createType(Method m, int index)

Create a Type for a Method parameter.

Type createType(PropertyDescriptor pd)

Create type information for a PropertyDescriptor.

Type createType(Field f)

Create type information for a Field.

Type createType(java.lang.Class clazz)

Type createTypeForClass(TypeClassInfo info)

protected Type createUserType(TypeClassInfo info)

Configuration getConfiguration()

QName getElementName(Method m, int index)

protected Type getOrCreateGenericType(TypeClassInfo info)

protected Type getOrCreateMapKeyType(TypeClassInfo info)

protected Type getOrCreateMapValueType(TypeClassInfo info)

TypeCreator getParent()

TypeCreator getTopCreator()

TypeMapping getTypeMapping()

protected boolean isArray(java.lang.Class javaType)

protected boolean isCollection(java.lang.Class javaType)

protected boolean isEnum(java.lang.Class javaType)

protected boolean isHolder(java.lang.Class javaType)

protected boolean isMap(java.lang.Class javaType)

void setConfiguration(Configuration typeConfiguration)

void setNextCreator(AbstractTypeCreator creator)

void setParent(TypeCreator parent)

void setTypeMapping(TypeMapping typeMapping)

 
Methods inherited from class java.lang.Object
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll
 

Field Detail

nextCreator

protected AbstractTypeCreator nextCreator


parent

private TypeCreator parent


tm

protected TypeMapping tm


typeConfiguration

private Configuration typeConfiguration


 
Constructor Detail

AbstractTypeCreator

AbstractTypeCreator()


 
Method Detail

createArrayType

protected Type createArrayType(TypeClassInfo info)


createBasicClassInfo

public TypeClassInfo createBasicClassInfo(java.lang.Class typeClass)


createClassInfo

protected TypeClassInfo createClassInfo(Field f)


createClassInfo

public TypeClassInfo createClassInfo(PropertyDescriptor pd)


createClassInfo

public TypeClassInfo createClassInfo(Method m, int index)


createCollectionQName

protected QName createCollectionQName(TypeClassInfo info, Type type)


createCollectionType

public Type createCollectionType(TypeClassInfo info)


createCollectionTypeFromGeneric

protected Type createCollectionTypeFromGeneric(TypeClassInfo info)


createDefaultType

public Type createDefaultType(TypeClassInfo info)


createEnumType

public Type createEnumType(TypeClassInfo info)


createHolderType

protected Type createHolderType(TypeClassInfo info)


createMapQName

protected QName createMapQName(TypeClassInfo info, Type keyType, Type valueType)


createMapType

protected Type createMapType(TypeClassInfo info, Type keyType, Type valueType)


createMapType

protected Type createMapType(TypeClassInfo info)


createObjectType

private Type createObjectType()


createQName

protected QName createQName(java.lang.Class javaType)


createType

public Type createType(Method m, int index)
Create a Type for a Method parameter.
param:
m the method to create a type for
param:
index The parameter index. If the index is less than zero, the return type is used.


createType

public Type createType(PropertyDescriptor pd)
Create type information for a PropertyDescriptor.
param:
pd the propertydescriptor


createType

public Type createType(Field f)
Create type information for a Field.
param:
f the field to create a type from


createType

public Type createType(java.lang.Class clazz)


createTypeForClass

public Type createTypeForClass(TypeClassInfo info)


createUserType

protected Type createUserType(TypeClassInfo info)


getConfiguration

public Configuration getConfiguration()


getElementName

public QName getElementName(Method m, int index)


getOrCreateGenericType

protected Type getOrCreateGenericType(TypeClassInfo info)


getOrCreateMapKeyType

protected Type getOrCreateMapKeyType(TypeClassInfo info)


getOrCreateMapValueType

protected Type getOrCreateMapValueType(TypeClassInfo info)


getParent

public TypeCreator getParent()


getTopCreator

public TypeCreator getTopCreator()


getTypeMapping

public TypeMapping getTypeMapping()


isArray

protected boolean isArray(java.lang.Class javaType)


isCollection

protected boolean isCollection(java.lang.Class javaType)


isEnum

protected boolean isEnum(java.lang.Class javaType)


isHolder

protected boolean isHolder(java.lang.Class javaType)


isMap

protected boolean isMap(java.lang.Class javaType)


setConfiguration

public void setConfiguration(Configuration typeConfiguration)


setNextCreator

public void setNextCreator(AbstractTypeCreator creator)


setParent

public void setParent(TypeCreator parent)


setTypeMapping

public void setTypeMapping(TypeMapping typeMapping)


 

Groovy Documentation