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 TypeMapper
qname
- name of the XML element to be mappedTypeMapper.getTypeMappingName(javax.xml.namespace.QName)
public String getParameterName(QName qname)
TypeMapper
getParameterName
in interface TypeMapper
qname
- name of the XML element to get a parameterTypeMapper.getParameterName(javax.xml.namespace.QName)
public void addTypeMappingName(QName qname, String value)
TypeMapper
addTypeMappingName
in interface TypeMapper
TypeMapper.addTypeMappingName(javax.xml.namespace.QName,String)
public Object getTypeMappingObject(QName qname)
TypeMapper
getTypeMappingObject
in interface TypeMapper
qname
- TypeMapper.getTypeMappingObject(javax.xml.namespace.QName)
public Object getQNameToMappingObject(QName qname)
getQNameToMappingObject
in interface TypeMapper
qname
- public void addTypeMappingObject(QName qname, Object value)
TypeMapper
addTypeMappingObject
in interface TypeMapper
qname
- value
- TypeMapper.addTypeMappingObject(javax.xml.namespace.QName, Object)
public boolean isObjectMappingPresent()
TypeMapper
isObjectMappingPresent
in interface TypeMapper
TypeMapper.isObjectMappingPresent()
public Map getAllMappedNames()
getAllMappedNames
in interface TypeMapper
TypeMapper.getAllMappedNames()
public Map getAllMappedObjects()
getAllMappedObjects
in interface TypeMapper
TypeMapper.getAllMappedObjects()
public String getDefaultMappingName()
getDefaultMappingName
in interface TypeMapper
TypeMapper.getDefaultMappingName()
public void setDefaultMappingName(String defaultMapping)
TypeMapper
setDefaultMappingName
in interface TypeMapper
defaultMapping
- TypeMapper.setDefaultMappingName(String)
public void addTypeMappingStatus(QName qName, Object status)
TypeMapper
addTypeMappingStatus
in interface TypeMapper
qName
- status
- TypeMapper.addTypeMappingStatus(javax.xml.namespace.QName, Object)
public Object getTypeMappingStatus(QName qName)
TypeMapper
getTypeMappingStatus
in interface TypeMapper
qName
- TypeMapper.getTypeMappingStatus(javax.xml.namespace.QName)
Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.