Class MapType
- java.lang.Object
-
- org.apache.cxf.aegis.type.AegisType
-
- org.apache.cxf.aegis.type.collection.MapType
-
public class MapType extends AegisType
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<AegisType>getDependencies()Return a set of AegisType dependencies.QNamegetEntryName()QNamegetKeyName()AegisTypegetKeyType()QNamegetValueName()AegisTypegetValueType()protected Map<Object,Object>instantiateMap()Creates a map instance.booleanisComplex()ObjectreadObject(MessageReader reader, Context context)Read in the XML fragment and create an object.voidsetEntryName(QName entryName)voidsetKeyName(QName keyName)voidsetValueName(QName valueName)voidwriteObject(Object object, MessageWriter writer, Context context)Writes the object to the MessageWriter.voidwriteSchema(org.apache.ws.commons.schema.XmlSchema root)If this type should correspond to a global, named, schema type, here is where the type object adds it to the schema.-
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
-
-
-
-
Method Detail
-
readObject
public Object readObject(MessageReader reader, Context context) throws DatabindingException
Description copied from class:AegisTypeRead in the XML fragment and create an object.- Specified by:
readObjectin classAegisType- Returns:
- Throws:
DatabindingException
-
instantiateMap
protected Map<Object,Object> instantiateMap()
Creates a map instance. If the type class is aMapor extends theMapinterface aHashMapis 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:AegisTypeWrites the object to the MessageWriter.- Specified by:
writeObjectin classAegisType- Throws:
DatabindingException
-
writeSchema
public void writeSchema(org.apache.ws.commons.schema.XmlSchema root)
Description copied from class:AegisTypeIf this type should correspond to a global, named, schema type, here is where the type object adds it to the schema.- Overrides:
writeSchemain classAegisType- Parameters:
root- root of the XSD document.
-
getDependencies
public Set<AegisType> getDependencies()
Description copied from class:AegisTypeReturn a set of AegisType dependencies. Returns null if this type has no dependencies.- Overrides:
getDependenciesin classAegisType- Returns:
- Set of
AegisTypedependencies
-
getKeyType
public AegisType getKeyType()
-
getValueType
public AegisType getValueType()
-
isComplex
public boolean isComplex()
-
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)
-
-