org.codehaus.enunciate.contract.jaxb.types
Class MapXmlType

java.lang.Object
  extended by org.codehaus.enunciate.contract.jaxb.types.MapXmlType
All Implemented Interfaces:
XmlType

public class MapXmlType
extends java.lang.Object
implements XmlType

The marker xml type for a map.

Author:
Ryan Heaton

Constructor Summary
MapXmlType(XmlType keyType, XmlType valueType)
           
 
Method Summary
 XmlType getKeyType()
          The xml type of the key for the map.
 java.lang.String getName()
          The (local) name of this xml type.
 java.lang.String getNamespace()
          The namespace for this xml type.
 javax.xml.namespace.QName getQname()
          The qname of the xml type mirror.
 XmlType getValueType()
          The xml type of the value for the map.
 boolean isAnonymous()
          Whether this type is anonymous.
 boolean isMap()
           
 boolean isSimple()
          Whether this is a simple XML type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapXmlType

public MapXmlType(XmlType keyType,
                  XmlType valueType)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: XmlType
The (local) name of this xml type.

Specified by:
getName in interface XmlType
Returns:
null (anonymous)

getNamespace

public java.lang.String getNamespace()
Description copied from interface: XmlType
The namespace for this xml type.

Specified by:
getNamespace in interface XmlType
Returns:
null (default namespace)

getQname

public javax.xml.namespace.QName getQname()
Description copied from interface: XmlType
The qname of the xml type mirror.

Specified by:
getQname in interface XmlType
Returns:
null (anonymous)

isAnonymous

public boolean isAnonymous()
Description copied from interface: XmlType
Whether this type is anonymous.

Specified by:
isAnonymous in interface XmlType
Returns:
true

isSimple

public boolean isSimple()
Description copied from interface: XmlType
Whether this is a simple XML type.

Specified by:
isSimple in interface XmlType
Returns:
false

isMap

public boolean isMap()
Returns:
true

getKeyType

public XmlType getKeyType()
The xml type of the key for the map.

Returns:
The xml type of the key for the map.

getValueType

public XmlType getValueType()
The xml type of the value for the map.

Returns:
The xml type of the value for the map.