public abstract class TypeMappingAdapter extends Object implements TypeMapper
| Modifier and Type | Field and Description |
|---|---|
protected int |
counter |
protected String |
defaultClassName
Default class name is the OMElement or the default case However the extensions can override
the default class to suit the databinding framework!
|
protected boolean |
isObject |
protected List |
parameterNameList |
protected HashMap |
qName2NameMap |
protected HashMap |
qName2ObjectMap |
protected HashMap |
qName2StatusMap |
protected static int |
UPPER_PARAM_LIMIT |
protected static String |
XSD_SCHEMA_URL |
| Constructor and Description |
|---|
TypeMappingAdapter() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
addTypeMappingStatus(QName qName,
Object status)
Allows the storage of a status object with a mapping to the qname.
|
Map |
getAllMappedNames() |
Map |
getAllMappedObjects() |
String |
getDefaultMappingName() |
String |
getParameterName(QName qname)
Gets the parameter name.
|
Object |
getQNameToMappingObject(QName qname)
return the class name for this QName
|
String |
getTypeMappingName(QName qname)
Gets the type mapping name.
|
Object |
getTypeMappingObject(QName qname)
Gets the type mapping Object.
|
Object |
getTypeMappingStatus(QName qName)
Returns the relevant status object given the qName of the xml element
|
boolean |
isObjectMappingPresent()
Returns whether the mapping is the object type or the normal class name type
|
void |
setDefaultMappingName(String defaultMapping)
Sets the default type mapping - the databinders may change the default mapping to suit their
default mapping
|
protected String defaultClassName
protected static final String XSD_SCHEMA_URL
protected HashMap qName2NameMap
protected HashMap qName2ObjectMap
protected HashMap qName2StatusMap
protected int counter
protected List parameterNameList
protected boolean isObject
protected static final int UPPER_PARAM_LIMIT
public String getTypeMappingName(QName qname)
getTypeMappingName in interface TypeMapperqname - name of the XML element to be mappedTypeMapper.getTypeMappingName(javax.xml.namespace.QName)public String getParameterName(QName qname)
TypeMappergetParameterName in interface TypeMapperqname - name of the XML element to get a parameterTypeMapper.getParameterName(javax.xml.namespace.QName)public void addTypeMappingName(QName qname, String value)
TypeMapperaddTypeMappingName in interface TypeMapperTypeMapper.addTypeMappingName(javax.xml.namespace.QName,String)public Object getTypeMappingObject(QName qname)
TypeMappergetTypeMappingObject in interface TypeMapperqname - TypeMapper.getTypeMappingObject(javax.xml.namespace.QName)public Object getQNameToMappingObject(QName qname)
getQNameToMappingObject in interface TypeMapperqname - public void addTypeMappingObject(QName qname, Object value)
TypeMapperaddTypeMappingObject in interface TypeMapperqname - value - TypeMapper.addTypeMappingObject(javax.xml.namespace.QName, Object)public boolean isObjectMappingPresent()
TypeMapperisObjectMappingPresent in interface TypeMapperTypeMapper.isObjectMappingPresent()public Map getAllMappedNames()
getAllMappedNames in interface TypeMapperTypeMapper.getAllMappedNames()public Map getAllMappedObjects()
getAllMappedObjects in interface TypeMapperTypeMapper.getAllMappedObjects()public String getDefaultMappingName()
getDefaultMappingName in interface TypeMapperTypeMapper.getDefaultMappingName()public void setDefaultMappingName(String defaultMapping)
TypeMappersetDefaultMappingName in interface TypeMapperdefaultMapping - TypeMapper.setDefaultMappingName(String)public void addTypeMappingStatus(QName qName, Object status)
TypeMapperaddTypeMappingStatus in interface TypeMapperqName - status - TypeMapper.addTypeMappingStatus(javax.xml.namespace.QName, Object)public Object getTypeMappingStatus(QName qName)
TypeMappergetTypeMappingStatus in interface TypeMapperqName - TypeMapper.getTypeMappingStatus(javax.xml.namespace.QName)Copyright © 2004–2016 The Apache Software Foundation. All rights reserved.