org.jboss.metatype.plugins.types
Class MutableCompositeMetaType
java.lang.Object
org.jboss.metatype.api.types.AbstractMetaType
org.jboss.metatype.plugins.types.AbstractCompositeMetaType
org.jboss.metatype.plugins.types.MutableCompositeMetaType
- All Implemented Interfaces:
- Serializable, CompositeMetaType, MetaType
public class MutableCompositeMetaType
- extends AbstractCompositeMetaType
MutableCompositeMetaType.
- Version:
- $Revision: 1.1 $
- Author:
- Adrian Brock
- See Also:
- Serialized Form
| 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 |
MutableCompositeMetaType
public MutableCompositeMetaType(String typeName,
String description)
- Construct a composite meta type with no items.
- Parameters:
typeName - the name of the composite type, cannot be null or emptydescription - the human readable description of the composite type, cannot be null or empty
- Throws:
IllegalArgumentException - when a parameter does not match what is described above.
addItem
public void addItem(String itemName,
String itemDescription,
MetaType itemType)
- Description copied from class:
AbstractCompositeMetaType
- Add an item
- Overrides:
addItem in class AbstractCompositeMetaType
- Parameters:
itemName - the item nameitemDescription - the item descriptionitemType - the item type
setKeys
public void setKeys(Set<String> keySet)
- Description copied from class:
AbstractCompositeMetaType
- Set the keys
- Overrides:
setKeys in class AbstractCompositeMetaType
- Parameters:
keySet - the key set
freeze
public void freeze()
- Freeze the metatype
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.