org.apache.axis2.wsdl.databinding
Class TypeMappingAdapter

java.lang.Object
  extended byorg.apache.axis2.wsdl.databinding.TypeMappingAdapter
All Implemented Interfaces:
TypeMapper
Direct Known Subclasses:
CSharpTypeMapper, DefaultTypeMapper, JavaTypeMapper

public abstract class TypeMappingAdapter
extends Object
implements TypeMapper


Field Summary
protected  int counter
           
protected  boolean isObject
           
protected  HashMap qName2NameMap
           
protected  HashMap qName2ObjectMap
           
protected static int UPPER_PARAM_LIMIT
           
protected static String XSD_SCHEMA_URL
           
 
Fields inherited from interface org.apache.axis2.wsdl.databinding.TypeMapper
DEFAULT_CLASS_NAME
 
Constructor Summary
TypeMappingAdapter()
           
 
Method Summary
 void addTypeMappingName(QName qname, String value)
          Adds a type mapping name to the type mapper.
 void addTypeMappingObject(QName qname, Object value)
          Adds a type mapping object to the type mapper.
 Map getAllMappedNames()
           
 Map getAllMappedObjects()
           
 String getParameterName(QName qname)
          Gets the parameter name.
 String getTypeMappingName(QName qname)
          Gets the type mapping name.
 Object getTypeMappingObject(QName qname)
          Gets the type mapping Object.
 boolean isObjectMappingPresent()
          Returns whether the mapping is the object type or the normal class name type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

XSD_SCHEMA_URL

protected static final String XSD_SCHEMA_URL
See Also:
Constant Field Values

qName2NameMap

protected HashMap qName2NameMap

qName2ObjectMap

protected HashMap qName2ObjectMap

counter

protected int counter

isObject

protected boolean isObject

UPPER_PARAM_LIMIT

protected static final int UPPER_PARAM_LIMIT
See Also:
Constant Field Values
Constructor Detail

TypeMappingAdapter

public TypeMappingAdapter()
Method Detail

getTypeMappingName

public String getTypeMappingName(QName qname)
Gets the type mapping name. If type mapping is not found, returns default.

Specified by:
getTypeMappingName in interface TypeMapper
Parameters:
qname - name of the XML element to be mapped
Returns:
Returns a string that represents the particular type.
See Also:
TypeMapper.getTypeMappingName(javax.xml.namespace.QName)

getParameterName

public String getParameterName(QName qname)
Description copied from interface: TypeMapper
Gets the parameter name.

Specified by:
getParameterName in interface TypeMapper
Parameters:
qname - name of the XML element to get a parameter
Returns:
Returns a unique parameter name.
See Also:
TypeMapper.getParameterName(javax.xml.namespace.QName)

addTypeMappingName

public void addTypeMappingName(QName qname,
                               String value)
Description copied from interface: TypeMapper
Adds a type mapping name to the type mapper.

Specified by:
addTypeMappingName in interface TypeMapper
Parameters:
qname -
value -
See Also:
TypeMapper.addTypeMappingName(javax.xml.namespace.QName,String)

getTypeMappingObject

public Object getTypeMappingObject(QName qname)
Description copied from interface: TypeMapper
Gets the type mapping Object.

Specified by:
getTypeMappingObject in interface TypeMapper
Parameters:
qname -
Returns:
Returns object representing a specific form of the XSD compilation.
See Also:
TypeMapper.getTypeMappingObject(javax.xml.namespace.QName)

addTypeMappingObject

public void addTypeMappingObject(QName qname,
                                 Object value)
Description copied from interface: TypeMapper
Adds a type mapping object to the type mapper.

Specified by:
addTypeMappingObject in interface TypeMapper
Parameters:
qname -
value -
See Also:
TypeMapper.addTypeMappingObject(javax.xml.namespace.QName, Object)

isObjectMappingPresent

public boolean isObjectMappingPresent()
Description copied from interface: TypeMapper
Returns whether the mapping is the object type or the normal class name type

Specified by:
isObjectMappingPresent in interface TypeMapper
Returns:
Returns boolean.
See Also:
TypeMapper.isObjectMappingPresent()

getAllMappedNames

public Map getAllMappedNames()
Specified by:
getAllMappedNames in interface TypeMapper
Returns:
Returns a map containing all type mapping names i.e. Qname to classname
See Also:
TypeMapper.getAllMappedNames()

getAllMappedObjects

public Map getAllMappedObjects()
Specified by:
getAllMappedObjects in interface TypeMapper
Returns:
Returns a map containing all type mapping model objects i.e. Qname to model objects
See Also:
TypeMapper.getAllMappedObjects()