Package org.apache.cxf.aegis.type
Class AbstractTypeCreator
java.lang.Object
org.apache.cxf.aegis.type.AbstractTypeCreator
- All Implemented Interfaces:
TypeCreator
- Direct Known Subclasses:
DefaultTypeCreator,Java5TypeCreator,XMLTypeCreator
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected AbstractTypeCreatorprotected TypeMapping -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AegisTypecreateArrayType(TypeClassInfo info) createBasicClassInfo(Type type) Create class info for a Type.abstract TypeClassInfoabstract TypeClassInfocreateClassInfo(Method m, int index) Retrieve the classInfo for a method.protected QNamecreateCollectionQName(TypeClassInfo info, AegisType type) abstract AegisTypeprotected AegisTypeabstract AegisTypecreateEnumType(TypeClassInfo info) protected AegisTypeprotected QNamecreateMapQName(TypeClassInfo info, AegisType keyType, AegisType valueType) protected AegisTypecreateMapType(TypeClassInfo info) protected AegisTypecreateMapType(TypeClassInfo info, AegisType keyType, AegisType valueType) protected AegisTypeprotected QNamecreateQName(Class<?> javaType) Create type information for a PropertyDescriptor.createType(Class<?> clazz) createType(Field f) Create type information for aField.createType(Method m, int index) Create a AegisType for a Method parameter.createType(Type t) Create an Aegis type from a reflected type description.Turn a TypeClassInfo into a type.protected AegisTypecreateUserType(TypeClassInfo info) getElementName(Method m, int index) Get the mapped name of a method parameter.protected AegisTypeprotected AegisTypeprotected AegisTypeprotected booleanprotected booleanisCollection(Class<?> javaType) protected booleanprotected booleanprotected booleanvoidsetConfiguration(TypeCreationOptions tpConfiguration) voidsetNextCreator(AbstractTypeCreator creator) voidsetParent(TypeCreator parent) voidsetTypeMapping(TypeMapping typeMapping)
-
Field Details
-
HTTP_CXF_APACHE_ORG_ARRAYS
- See Also:
-
tm
-
nextCreator
-
-
Constructor Details
-
AbstractTypeCreator
public AbstractTypeCreator()
-
-
Method Details
-
getTypeMapping
-
getTopCreator
-
getParent
- Specified by:
getParentin interfaceTypeCreator
-
setParent
- Specified by:
setParentin interfaceTypeCreator
-
setTypeMapping
- Specified by:
setTypeMappingin interfaceTypeCreator
-
setNextCreator
-
createClassInfo
-
createBasicClassInfo
Description copied from interface:TypeCreatorCreate class info for a Type.- Specified by:
createBasicClassInfoin interfaceTypeCreator- Returns:
- info
-
createTypeForClass
Description copied from interface:TypeCreatorTurn a TypeClassInfo into a type.- Specified by:
createTypeForClassin interfaceTypeCreator- Returns:
-
isHolder
-
createHolderType
-
isArray
-
createUserType
-
createArrayType
-
createQName
-
isCollection
-
createCollectionTypeFromGeneric
-
getOrCreateGenericType
-
getOrCreateMapKeyType
-
createObjectType
-
getOrCreateMapValueType
-
createMapType
-
createMapType
-
createMapQName
-
isMap
-
createClassInfo
-
isEnum
-
createEnumType
-
createCollectionType
-
createDefaultType
-
createCollectionQName
-
createClassInfo
Description copied from interface:TypeCreatorRetrieve the classInfo for a method. Needed to get parameters right.- Specified by:
createClassInfoin interfaceTypeCreator- Parameters:
m- Method objectindex- index in the parameter list- Returns:
- info
-
createType
Create a AegisType for a Method parameter.- Specified by:
createTypein interfaceTypeCreator- Parameters:
m- the method to create a type forindex- The parameter index. If the index is less than zero, the return type is used.
-
getElementName
Description copied from interface:TypeCreatorGet the mapped name of a method parameter.- Specified by:
getElementNamein interfaceTypeCreator- Returns:
-
createType
Create type information for a PropertyDescriptor.- Specified by:
createTypein interfaceTypeCreator- Parameters:
pd- the propertydescriptor
-
createType
Create type information for aField.- Specified by:
createTypein interfaceTypeCreator- Parameters:
f- the field to create a type from
-
createType
Create an Aegis type from a reflected type description. This will only work for the restricted set of collection types supported by Aegis.- Specified by:
createTypein interfaceTypeCreator- Parameters:
t- the reflected type.- Returns:
- the type
-
createType
-
getConfiguration
-
setConfiguration
-