org.apache.cxf.aegis.type.collection
Class MapType
java.lang.Object
org.apache.cxf.aegis.type.AegisType
org.apache.cxf.aegis.type.collection.MapType
public class MapType
- extends AegisType
Methods inherited from class org.apache.cxf.aegis.type.AegisType |
addToSchemaElement, equals, getMaxOccurs, getMinOccurs, getSchemaType, getType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isFlatArray, isNillable, isWriteOuter, setAbstract, setFlatArray, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString, usesUtilityTypes, usesXmime |
MapType
public MapType(QName schemaType,
AegisType keyType,
AegisType valueType)
readObject
public Object readObject(MessageReader reader,
Context context)
throws DatabindingException
- Description copied from class:
AegisType
- Read in the XML fragment and create an object.
- Specified by:
readObject
in class AegisType
- Returns:
-
- Throws:
DatabindingException
instantiateMap
protected Map<Object,Object> instantiateMap()
- Creates a map instance. If the type class is a
Map
or
extends the Map
interface a HashMap
is
created. Otherwise the map classs (i.e. LinkedHashMap) is instantiated
using the default constructor.
- Returns:
writeObject
public void writeObject(Object object,
MessageWriter writer,
Context context)
throws DatabindingException
- Description copied from class:
AegisType
- Writes the object to the MessageWriter.
- Specified by:
writeObject
in class AegisType
- Throws:
DatabindingException
writeSchema
public void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
- Description copied from class:
AegisType
- If this type should correspond to a global, named, schema type, here is where the
type object adds it to the schema.
- Overrides:
writeSchema
in class AegisType
- Parameters:
root
- root of the XSD document.
getDependencies
public Set<AegisType> getDependencies()
- Description copied from class:
AegisType
- Return a set of AegisType dependencies. Returns null if this type has no
dependencies.
- Overrides:
getDependencies
in class AegisType
- Returns:
- Set of
AegisType
dependencies
getKeyType
public AegisType getKeyType()
getValueType
public AegisType getValueType()
isComplex
public boolean isComplex()
- Overrides:
isComplex
in class AegisType
- Returns:
- True if a complex type schema must be written.
getKeyName
public QName getKeyName()
setKeyName
public void setKeyName(QName keyName)
getValueName
public QName getValueName()
setValueName
public void setValueName(QName valueName)
getEntryName
public QName getEntryName()
setEntryName
public void setEntryName(QName entryName)
Apache CXF