org.jboss.metatype.api.types
Class MapCompositeMetaType
java.lang.Object
org.jboss.metatype.api.types.AbstractMetaType
org.jboss.metatype.plugins.types.AbstractCompositeMetaType
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
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 interface org.jboss.metatype.api.types.MetaType |
getClassName, getDescription, getTypeName, isArray, isCollection, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable |
MapCompositeMetaType
public MapCompositeMetaType(MetaType valueType)
- Create a MapCompositeMetaType with the given value metatype.
- Parameters:
valueType
- the value meta type
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 itemitemDescription
- - 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.