public abstract class AbstractTypeCreator extends Object implements TypeCreator
Modifier and Type | Field and Description |
---|---|
static String |
HTTP_CXF_APACHE_ORG_ARRAYS |
protected AbstractTypeCreator |
nextCreator |
protected TypeMapping |
tm |
Constructor and Description |
---|
AbstractTypeCreator() |
public static final String HTTP_CXF_APACHE_ORG_ARRAYS
protected TypeMapping tm
protected AbstractTypeCreator nextCreator
public TypeMapping getTypeMapping()
public TypeCreator getTopCreator()
public TypeCreator getParent()
getParent
in interface TypeCreator
public void setParent(TypeCreator parent)
setParent
in interface TypeCreator
public void setTypeMapping(TypeMapping typeMapping)
setTypeMapping
in interface TypeCreator
public void setNextCreator(AbstractTypeCreator creator)
public TypeClassInfo createClassInfo(Field f)
public TypeClassInfo createBasicClassInfo(Type type)
TypeCreator
createBasicClassInfo
in interface TypeCreator
public AegisType createTypeForClass(TypeClassInfo info)
TypeCreator
createTypeForClass
in interface TypeCreator
protected boolean isHolder(Class<?> javaType)
protected AegisType createHolderType(TypeClassInfo info)
protected boolean isArray(Class<?> javaType)
protected AegisType createUserType(TypeClassInfo info)
protected AegisType createArrayType(TypeClassInfo info)
protected boolean isCollection(Class<?> javaType)
protected AegisType createCollectionTypeFromGeneric(TypeClassInfo info)
protected AegisType getOrCreateGenericType(TypeClassInfo info)
protected AegisType getOrCreateMapKeyType(TypeClassInfo info)
protected AegisType createObjectType()
protected AegisType getOrCreateMapValueType(TypeClassInfo info)
protected AegisType createMapType(TypeClassInfo info, AegisType keyType, AegisType valueType)
protected AegisType createMapType(TypeClassInfo info)
protected QName createMapQName(TypeClassInfo info, AegisType keyType, AegisType valueType)
protected boolean isMap(Class<?> javaType)
public abstract TypeClassInfo createClassInfo(PropertyDescriptor pd)
protected boolean isEnum(Class<?> javaType)
public AegisType createEnumType(TypeClassInfo info)
public abstract AegisType createCollectionType(TypeClassInfo info)
public abstract AegisType createDefaultType(TypeClassInfo info)
protected QName createCollectionQName(TypeClassInfo info, AegisType type)
public abstract TypeClassInfo createClassInfo(Method m, int index)
TypeCreator
createClassInfo
in interface TypeCreator
m
- Method objectindex
- index in the parameter listpublic AegisType createType(Method m, int index)
createType
in interface TypeCreator
m
- the method to create a type forindex
- The parameter index. If the index is less than zero, the
return type is used.public QName getElementName(Method m, int index)
TypeCreator
getElementName
in interface TypeCreator
public AegisType createType(PropertyDescriptor pd)
createType
in interface TypeCreator
pd
- the propertydescriptorpublic AegisType createType(Field f)
Field
.createType
in interface TypeCreator
f
- the field to create a type frompublic AegisType createType(Type t)
createType
in interface TypeCreator
t
- the reflected type.public TypeCreationOptions getConfiguration()
public void setConfiguration(TypeCreationOptions tpConfiguration)
Apache CXF