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

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

public class MapType
extends Type


Field Summary
 
Fields inherited from class org.apache.cxf.aegis.type.Type
typeClass
 
Constructor Summary
MapType(javax.xml.namespace.QName schemaType, Type keyType, Type valueType)
           
 
Method Summary
 java.util.Set<Type> getDependencies()
          Return a set of Type dependencies.
 javax.xml.namespace.QName getEntryName()
           
 javax.xml.namespace.QName getKeyName()
           
 Type getKeyType()
           
 javax.xml.namespace.QName getValueName()
           
 Type getValueType()
           
protected  java.util.Map<java.lang.Object,java.lang.Object> instantiateMap()
          Creates a map instance.
 boolean isComplex()
           
 java.lang.Object readObject(MessageReader reader, Context context)
          Read in the XML fragment and create an object.
 void setEntryName(javax.xml.namespace.QName entryName)
           
 void setKeyName(javax.xml.namespace.QName keyName)
           
 void setValueName(javax.xml.namespace.QName valueName)
           
 void writeObject(java.lang.Object object, MessageWriter writer, Context context)
          Writes the object to the MessageWriter.
 void writeSchema(org.jdom.Element 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.Type
addToSchemaElement, equals, getMaxOccurs, getMinOccurs, getSchemaType, getTypeClass, getTypeMapping, hashCode, hasMaxOccurs, hasMinOccurs, isAbstract, isNillable, isWriteOuter, setAbstract, 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(javax.xml.namespace.QName schemaType,
               Type keyType,
               Type valueType)
Method Detail

readObject

public java.lang.Object readObject(MessageReader reader,
                                   Context context)
                            throws DatabindingException
Description copied from class: Type
Read in the XML fragment and create an object.

Specified by:
readObject in class Type
Returns:
Throws:
DatabindingException

instantiateMap

protected java.util.Map<java.lang.Object,java.lang.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(java.lang.Object object,
                        MessageWriter writer,
                        Context context)
                 throws DatabindingException
Description copied from class: Type
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type
Throws:
DatabindingException

writeSchema

public void writeSchema(org.jdom.Element root)
Description copied from class: Type
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 Type
Parameters:
root - root of the XSD document.

getDependencies

public java.util.Set<Type> getDependencies()
Description copied from class: Type
Return a set of Type dependencies. Returns null if this type has no dependencies.

Overrides:
getDependencies in class Type
Returns:
Set of Type dependencies

getKeyType

public Type getKeyType()

getValueType

public Type getValueType()

isComplex

public boolean isComplex()
Overrides:
isComplex in class Type
Returns:
True if a complex type schema must be written.

getKeyName

public javax.xml.namespace.QName getKeyName()

setKeyName

public void setKeyName(javax.xml.namespace.QName keyName)

getValueName

public javax.xml.namespace.QName getValueName()

setValueName

public void setValueName(javax.xml.namespace.QName valueName)

getEntryName

public javax.xml.namespace.QName getEntryName()

setEntryName

public void setEntryName(javax.xml.namespace.QName entryName)


Apache CXF