org.apache.cxf.aegis.type
Interface TypeMapping

All Known Implementing Classes:
DefaultTypeMapping

public interface TypeMapping

Since:
Feb 18, 2004
Author:
Dan Diephouse

Method Summary
 java.lang.String getMappingIdentifierURI()
          Each mapping has a URI that identifies it.
 Type getType(java.lang.Class javaType)
           
 Type getType(javax.xml.namespace.QName xmlType)
           
 TypeCreator getTypeCreator()
           
 javax.xml.namespace.QName getTypeQName(java.lang.Class clazz)
           
 boolean isRegistered(java.lang.Class javaType)
          Returns a flag indicating if this type mapping has a mapping for a particular Java class.
 boolean isRegistered(javax.xml.namespace.QName xmlType)
          Returns a flag indicating if this type mapping has a mapping for a particular XML Schema QName.
 void register(java.lang.Class javaType, javax.xml.namespace.QName xmlType, Type type)
          Register a type, manually specifying the java class, the schema type, and the Aegis type object that provides serialization, deserialization, and schema.
 void register(Type type)
          Register a type that self-describes the schema type and the Java class.
 void removeType(Type type)
           
 

Method Detail

isRegistered

boolean isRegistered(java.lang.Class javaType)
Returns a flag indicating if this type mapping has a mapping for a particular Java class.

Parameters:
javaType - the class.
Returns:
true if there is a mapping for the type.

isRegistered

boolean isRegistered(javax.xml.namespace.QName xmlType)
Returns a flag indicating if this type mapping has a mapping for a particular XML Schema QName.

Parameters:
xmlType - the QName.
Returns:
true if there is a mapping for the type.

register

void register(java.lang.Class javaType,
              javax.xml.namespace.QName xmlType,
              Type type)
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

void register(Type type)
Register a type that self-describes the schema type and the Java class.

Parameters:
type - Aegis type object that

removeType

void removeType(Type type)

getType

Type getType(java.lang.Class javaType)

getType

Type getType(javax.xml.namespace.QName xmlType)

getTypeQName

javax.xml.namespace.QName getTypeQName(java.lang.Class clazz)

getTypeCreator

TypeCreator getTypeCreator()

getMappingIdentifierURI

java.lang.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.


Apache CXF