org.jboss.metatype.api.types
Class MapCompositeMetaType

java.lang.Object
  extended by org.jboss.metatype.api.types.AbstractMetaType
      extended by org.jboss.metatype.plugins.types.AbstractCompositeMetaType
          extended by org.jboss.metatype.api.types.MapCompositeMetaType
All Implemented Interfaces:
Serializable, CompositeMetaType, MetaType

public class MapCompositeMetaType
extends AbstractCompositeMetaType

A CompositeMetaType for Map

Version:
$Revision: 81571 $
Author:
Scott.Stark@jboss.org
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.jboss.metatype.api.types.MetaType
ALLOWED_CLASSNAMES
 
Constructor Summary
MapCompositeMetaType(MetaType valueType)
          Create a MapCompositeMetaType with the given value metatype.
 
Method Summary
 void addItem(String itemName)
          Add an item
 void addItem(String itemName, String itemDescription)
          Add an item along with its description
 boolean equals(Object obj)
           
 MetaType getValueType()
          Access the map value type.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class org.jboss.metatype.plugins.types.AbstractCompositeMetaType
addItem, containsItem, equalsImpl, getDescription, getType, hashCodeImpl, isComposite, isValue, itemSet, keySet, setKeys
 
Methods inherited from class org.jboss.metatype.api.types.AbstractMetaType
getClassName, getDescription, getTypeName, isArray, isCollection, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.metatype.api.types.MetaType
getClassName, getDescription, getTypeName, isArray, isCollection, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable
 

Constructor Detail

MapCompositeMetaType

public MapCompositeMetaType(MetaType valueType)
Create a MapCompositeMetaType with the given value metatype.

Parameters:
valueType - the value meta type
Method Detail

getValueType

public MetaType getValueType()
Access the map value type.

Returns:
the map value type.

addItem

public void addItem(String itemName)
Add an item

Parameters:
itemName - - the name of the item

addItem

public void addItem(String itemName,
                    String itemDescription)
Add an item along with its description

Parameters:
itemName - - the name of the item
itemDescription - - the description of the item

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class AbstractCompositeMetaType


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.