Package org.apache.cxf.aegis.type
Interface TypeMapping
- All Known Implementing Classes:
DefaultTypeMapping
public interface TypeMapping
Abstraction for the map between Java types (represented as
Type and Aegis types.-
Method Summary
Modifier and TypeMethodDescriptionEach mapping has a URI that identifies it.getTypeQName(Type clazz) booleanisRegistered(Type javaType) Returns a flag indicating if this type mapping has a mapping for a particular Java class.booleanisRegistered(QName xmlType) Returns a flag indicating if this type mapping has a mapping for a particular XML Schema QName.voidRegister a type, manually specifying the java class, the schema type, and the Aegis type object that provides serialization, deserialization, and schema.voidRegister a type that self-describes the schema type and the Java class.voidremoveType(AegisType type) voidThis exists only to deal with an initialization order problem.
-
Method Details
-
isRegistered
Returns a flag indicating if this type mapping has a mapping for a particular Java class.- Parameters:
javaType- the class.- Returns:
trueif there is a mapping for the type.
-
isRegistered
Returns a flag indicating if this type mapping has a mapping for a particular XML Schema QName.- Parameters:
xmlType- the QName.- Returns:
trueif there is a mapping for the type.
-
register
Register a type, manually specifying the java class, the schema type, and the Aegis type object that provides serialization, deserialization, and schema.- Parameters:
javaType- Java class.xmlType- XML Schema type QName.type- Aegis type object.
-
register
Register a type that self-describes the schema type and the Java class.- Parameters:
type- Aegis type object that
-
removeType
-
getType
-
getType
-
getTypeQName
-
getTypeCreator
TypeCreator getTypeCreator() -
getMappingIdentifierURI
String getMappingIdentifierURI()Each mapping has a URI that identifies it. The mapping for a service uses the service URI. XML files can choose to only contribute mappings that match.- Returns:
- the URI.
-
setMappingIdentifierURI
This exists only to deal with an initialization order problem.- Parameters:
uri-
-