Class TypeMappingAdapter
java.lang.Object
org.apache.axis2.wsdl.databinding.TypeMappingAdapter
- All Implemented Interfaces:
TypeMapper
- Direct Known Subclasses:
CDefaultTypeMapper,CTypeMapper,DefaultTypeMapper,JavaTypeMapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected StringDefault class name is the OMElement or the default case However the extensions can override the default class to suit the databinding framework!protected booleanprotected Listprotected HashMapprotected HashMapprotected HashMapprotected static final intprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddTypeMappingName(QName qname, String value) Adds a type mapping name to the type mapper.voidaddTypeMappingObject(QName qname, Object value) Adds a type mapping object to the type mapper.voidaddTypeMappingStatus(QName qName, Object status) Allows the storage of a status object with a mapping to the qname.getParameterName(QName qname) Gets the parameter name.getQNameToMappingObject(QName qname) return the class name for this QNamegetTypeMappingName(QName qname) Gets the type mapping name.getTypeMappingObject(QName qname) Gets the type mapping Object.getTypeMappingStatus(QName qName) Returns the relevant status object given the qName of the xml elementbooleanReturns whether the mapping is the object type or the normal class name typevoidsetDefaultMappingName(String defaultMapping) Sets the default type mapping - the databinders may change the default mapping to suit their default mapping
-
Field Details
-
defaultClassName
Default class name is the OMElement or the default case However the extensions can override the default class to suit the databinding framework! -
XSD_SCHEMA_URL
- See Also:
-
qName2NameMap
-
qName2ObjectMap
-
qName2StatusMap
-
counter
protected int counter -
parameterNameList
-
isObject
protected boolean isObject -
UPPER_PARAM_LIMIT
protected static final int UPPER_PARAM_LIMIT- See Also:
-
-
Constructor Details
-
TypeMappingAdapter
public TypeMappingAdapter()
-
-
Method Details
-
getTypeMappingName
Gets the type mapping name. If type mapping is not found, returns default.- Specified by:
getTypeMappingNamein interfaceTypeMapper- Parameters:
qname- name of the XML element to be mapped- Returns:
- Returns a string that represents the particular type.
- See Also:
-
getParameterName
Description copied from interface:TypeMapperGets the parameter name.- Specified by:
getParameterNamein interfaceTypeMapper- Parameters:
qname- name of the XML element to get a parameter- Returns:
- Returns a unique parameter name.
- See Also:
-
addTypeMappingName
Description copied from interface:TypeMapperAdds a type mapping name to the type mapper.- Specified by:
addTypeMappingNamein interfaceTypeMapper- See Also:
-
getTypeMappingObject
Description copied from interface:TypeMapperGets the type mapping Object.- Specified by:
getTypeMappingObjectin interfaceTypeMapper- Parameters:
qname-- Returns:
- Returns object representing a specific form of the XSD compilation.
- See Also:
-
getQNameToMappingObject
return the class name for this QName- Specified by:
getQNameToMappingObjectin interfaceTypeMapper- Parameters:
qname-- Returns:
- return class names
-
addTypeMappingObject
Description copied from interface:TypeMapperAdds a type mapping object to the type mapper.- Specified by:
addTypeMappingObjectin interfaceTypeMapper- Parameters:
qname-value-- See Also:
-
isObjectMappingPresent
public boolean isObjectMappingPresent()Description copied from interface:TypeMapperReturns whether the mapping is the object type or the normal class name type- Specified by:
isObjectMappingPresentin interfaceTypeMapper- Returns:
- Returns boolean.
- See Also:
-
getAllMappedNames
- Specified by:
getAllMappedNamesin interfaceTypeMapper- Returns:
- Returns a map containing all type mapping names i.e. Qname to classname
- See Also:
-
getAllMappedObjects
- Specified by:
getAllMappedObjectsin interfaceTypeMapper- Returns:
- Returns a map containing all type mapping model objects i.e. Qname to model objects
- See Also:
-
getDefaultMappingName
- Specified by:
getDefaultMappingNamein interfaceTypeMapper- Returns:
- the default mapping name for this type mapper
- See Also:
-
setDefaultMappingName
Description copied from interface:TypeMapperSets the default type mapping - the databinders may change the default mapping to suit their default mapping- Specified by:
setDefaultMappingNamein interfaceTypeMapper- Parameters:
defaultMapping-- See Also:
-
addTypeMappingStatus
Description copied from interface:TypeMapperAllows the storage of a status object with a mapping to the qname. This may be used to store certain status information that will be used by different type mappers. A given type mapper may choose not to implement this!- Specified by:
addTypeMappingStatusin interfaceTypeMapper- Parameters:
qName-status-- See Also:
-
getTypeMappingStatus
Description copied from interface:TypeMapperReturns the relevant status object given the qName of the xml element- Specified by:
getTypeMappingStatusin interfaceTypeMapper- Parameters:
qName-- Returns:
- the status object
- See Also:
-