Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      org.codehaus.xfire.aegis.type.Type
          org.codehaus.xfire.aegis.type.collection.MapType

All Implemented Interfaces:
  SchemaType

    public class MapType

extends Type

Constructor Summary
`MapType(javax.xml.namespace.QName schemaType, java.lang.Class keyClass, java.lang.Class valueClass)`

Method Summary
`javax.xml.namespace.QName` | `getEntryName()`
`java.lang.Class` | `getKeyClass()`
`javax.xml.namespace.QName` | `getKeyName()`
`Type` | `getKeyType()`
`java.lang.Class` | `getValueClass()`
`javax.xml.namespace.QName` | `getValueName()`
`Type` | `getValueType()`
`protected java.util.Map` | `instantiateMap()` Creates a map instance.
`java.lang.Object` | `readObject(MessageReader reader, MessageContext context)`
`void` | `setEntryName(javax.xml.namespace.QName entryName)`
`void` | `setKeyClass(java.lang.Class keyClass)`
`void` | `setKeyName(javax.xml.namespace.QName keyName)`
`void` | `setValueClass(java.lang.Class valueClass)`
`void` | `setValueName(javax.xml.namespace.QName valueName)`
`void` | `writeObject(java.lang.Object object, MessageWriter writer, MessageContext context)`
`void` | `writeSchema(org.codehaus.yom.Element root)` Write the type schema (if complex) to the element.

Methods inherited from class org.codehaus.xfire.aegis.type.Type
`equals, getDependencies, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, isComplex, isNillable, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping`

Methods inherited from class java.lang.Object
`clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MapType

    public MapType(javax.xml.namespace.QName schemaType,
                   java.lang.Class keyClass,
                   java.lang.Class valueClass)

Method Detail

### readObject

    public java.lang.Object readObject(MessageReader reader,
                                       MessageContext context)
                                throws XFireFault

  Specified by:
    `readObject` in class `Type`
  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

  Specified by:
    `writeObject` in class `Type`
  Throws:
    `XFireFault`

### writeSchema

    public void writeSchema(org.codehaus.yom.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`

### getKeyType

    public Type getKeyType()

### getValueType

    public Type getValueType()

### getKeyClass

    public java.lang.Class getKeyClass()

### setKeyClass

    public void setKeyClass(java.lang.Class keyClass)

### getKeyName

    public javax.xml.namespace.QName getKeyName()

### setKeyName

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

### getValueClass

    public java.lang.Class getValueClass()

### setValueClass

    public void setValueClass(java.lang.Class valueClass)

### 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)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004-2005 Codehaus. All Rights Reserved.