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:
- org.codehaus.xfire.wsdl.SchemaType
- public class MapType
- extends Type
|
Constructor Summary |
MapType(javax.xml.namespace.QName schemaType,
java.lang.Class keyClass,
java.lang.Class valueClass)
|
| Methods inherited from class org.codehaus.xfire.aegis.type.Type |
equals, getSchemaType, getTypeClass, getTypeMapping, hashCode, isAbstract, isNillable, isWriteOuter, setAbstract, setNillable, setSchemaType, setTypeClass, setTypeMapping, setWriteOuter |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
MapType
public MapType(javax.xml.namespace.QName schemaType,
java.lang.Class keyClass,
java.lang.Class valueClass)
readObject
public java.lang.Object readObject(MessageReader reader,
org.codehaus.xfire.MessageContext context)
throws org.codehaus.xfire.fault.XFireFault
- Specified by:
readObject in class Type
- Throws:
org.codehaus.xfire.fault.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,
org.codehaus.xfire.MessageContext context)
throws org.codehaus.xfire.fault.XFireFault
- Specified by:
writeObject in class Type
- Throws:
org.codehaus.xfire.fault.XFireFault
writeSchema
public void writeSchema(org.jdom.Element root)
- Specified by:
writeSchema in interface org.codehaus.xfire.wsdl.SchemaType- Overrides:
writeSchema in class Type
getKeyType
public Type getKeyType()
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 org.codehaus.xfire.wsdl.SchemaType- Overrides:
getDependencies in class Type
- Returns:
- Set of
Type dependencies
isComplex
public boolean isComplex()
- Specified by:
isComplex in interface org.codehaus.xfire.wsdl.SchemaType- Overrides:
isComplex in class Type
- Returns:
- True if a complex type schema must be written.
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)
Copyright © 2004-2006 null. All Rights Reserved.