Apache CXF API

org.apache.cxf.aegis.type.collection
Class MapType

java.lang.Object
  extended by org.apache.cxf.aegis.type.AegisType
      extended by org.apache.cxf.aegis.type.collection.MapType

public class MapType
extends AegisType


Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.AegisType
typeClass
 
Constructor Summary
MapType(QName schemaType, AegisType keyType, AegisType valueType)
           
 
Method Summary
 Set<AegisType> getDependencies()
          Return a set of AegisType dependencies.
 QName getEntryName()
           
 QName getKeyName()
           
 AegisType getKeyType()
           
 QName getValueName()
           
 AegisType getValueType()
           
protected  Map<Object,Object> instantiateMap()
          Creates a map instance.
 boolean isComplex()
           
 Object readObject(MessageReader reader, Context context)
          Read in the XML fragment and create an object.
 void setEntryName(QName entryName)
           
 void setKeyName(QName keyName)
           
 void setValueName(QName valueName)
           
 void writeObject(Object object, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
 void writeSchema(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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapType

public MapType(QName schemaType,
               AegisType keyType,
               AegisType valueType)
Method Detail

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 API

Apache CXF