public class DefaultTypeMapping extends Object implements TypeMapping
Type and AegisType objects,
also indexed by the XML Schema QName of each type.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_MAPPING_URI |
| Constructor and Description |
|---|
DefaultTypeMapping() |
DefaultTypeMapping(String identifierURI) |
DefaultTypeMapping(String identifierURI,
TypeMapping defaultTM) |
| Modifier and Type | Method and Description |
|---|---|
static DefaultTypeMapping |
createDefaultTypeMapping(boolean defaultNillable,
boolean enableMtomXmime) |
static DefaultTypeMapping |
createDefaultTypeMapping(boolean defaultNillable,
boolean enableMtomXmime,
boolean enableJDOM)
Create a set of default type mappings.
|
static DefaultTypeMapping |
createSoap11TypeMapping(boolean defaultNillable,
boolean enableMtomXmime,
boolean enableJDOM)
Create a type mapping object with a stock set of mappings, including the SOAP 1.1 'encoded'
types.
|
String |
getMappingIdentifierURI()
Each mapping has a URI that identifies it.
|
TypeMapping |
getParent() |
AegisType |
getType(QName xmlType) |
AegisType |
getType(Type javaType) |
TypeCreator |
getTypeCreator() |
QName |
getTypeQName(Type clazz) |
boolean |
isRegistered(QName xmlType)
Returns a flag indicating if this type mapping has a mapping for a particular
XML Schema QName.
|
boolean |
isRegistered(Type javaType)
Returns a flag indicating if this type mapping has a mapping for a particular Java class.
|
void |
register(AegisType type)
Register a type that self-describes the schema type and the Java class.
|
void |
register(Type javaType,
QName xmlType,
AegisType type)
Register a type, manually specifying the java class, the schema type,
and the Aegis type object that provides serialization, deserialization,
and schema.
|
void |
removeType(AegisType type) |
void |
setMappingIdentifierURI(String uri)
This exists only to deal with an initialization order problem.
|
void |
setTypeCreator(TypeCreator typeCreator) |
public static final String DEFAULT_MAPPING_URI
public DefaultTypeMapping(String identifierURI, TypeMapping defaultTM)
public DefaultTypeMapping()
public DefaultTypeMapping(String identifierURI)
public boolean isRegistered(Type javaType)
TypeMappingisRegistered in interface TypeMappingjavaType - the class.true if there is a mapping for the type.public boolean isRegistered(QName xmlType)
TypeMappingisRegistered in interface TypeMappingxmlType - the QName.true if there is a mapping for the type.public void register(Type javaType, QName xmlType, AegisType type)
TypeMappingregister in interface TypeMappingjavaType - Java class.xmlType - XML Schema type QName.type - Aegis type object.public void register(AegisType type)
register in interface TypeMappingtype - Aegis type object thatpublic void removeType(AegisType type)
removeType in interface TypeMappingpublic AegisType getType(Type javaType)
getType in interface TypeMappingpublic AegisType getType(QName xmlType)
getType in interface TypeMappingpublic QName getTypeQName(Type clazz)
getTypeQName in interface TypeMappingpublic TypeCreator getTypeCreator()
getTypeCreator in interface TypeMappingpublic void setTypeCreator(TypeCreator typeCreator)
public TypeMapping getParent()
public static DefaultTypeMapping createSoap11TypeMapping(boolean defaultNillable, boolean enableMtomXmime, boolean enableJDOM)
defaultNillable - whether elements are nillable by default.enableMtomXmime - whether to enable XMIME annotations with MTOM.enableJDOM - whether to add mappings for JDOM.public static DefaultTypeMapping createDefaultTypeMapping(boolean defaultNillable, boolean enableMtomXmime)
public static DefaultTypeMapping createDefaultTypeMapping(boolean defaultNillable, boolean enableMtomXmime, boolean enableJDOM)
defaultNillable - whether elements are nillable by default.enableMtomXmime - whether to enable XMIME annotations on MTOM.enableJDOM - whether to map JDOM types.public String getMappingIdentifierURI()
TypeMappinggetMappingIdentifierURI in interface TypeMappingpublic void setMappingIdentifierURI(String uri)
TypeMappingsetMappingIdentifierURI in interface TypeMappingApache CXF