org.codehaus.xfire.aegis.type.collection
Class MapType

java.lang.Object
  extended by org.codehaus.xfire.aegis.type.Type
      extended by org.codehaus.xfire.aegis.type.collection.MapType
All Implemented Interfaces:
SchemaType

public class MapType
extends Type


Constructor Summary
MapType(javax.xml.namespace.QName schemaType, Type keyType, Type valueType)
           
 
Method Summary
 java.util.Set 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 instantiateMap()
          Creates a map instance.
 boolean isComplex()
          Whether or not this a complex type.
 java.lang.Object readObject(MessageReader reader, MessageContext 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, MessageContext context)
          Writes the object to the MessageWriter.
 void writeSchema(Element root)
          Write the type schema (if complex) to the element.
 
Methods inherited from class org.codehaus.xfire.aegis.type.Type
equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter, toString
 
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,
                                   MessageContext context)
                            throws XFireFault
Description copied from class: Type
Read in the XML fragment and create an object.

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

instantiateMap

protected java.util.Map 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,
                        MessageContext context)
                 throws XFireFault
Description copied from class: Type
Writes the object to the MessageWriter.

Specified by:
writeObject in class Type
Throws:
XFireFault

writeSchema

public void writeSchema(Element root)
Description copied from interface: SchemaType
Write the type schema (if complex) to the element.

Specified by:
writeSchema in interface SchemaType
Overrides:
writeSchema in class Type

getDependencies

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

Specified by:
getDependencies in interface SchemaType
Overrides:
getDependencies in class Type
Returns:
Set of Type dependencies

getKeyType

public Type getKeyType()

getValueType

public Type getValueType()

isComplex

public boolean isComplex()
Description copied from interface: SchemaType
Whether or not this a complex type. If true then the schema for this type is written out.

Specified by:
isComplex in interface SchemaType
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)


Copyright © 2004-2006 Envoi Solutions LLC. All Rights Reserved.