public class MutableCompositeMetaType extends AbstractCompositeMetaType
ALLOWED_CLASSNAMES
Constructor and Description |
---|
MutableCompositeMetaType(String typeName,
String description)
Construct a composite meta type with no items.
|
Modifier and Type | Method and Description |
---|---|
void |
addItem(String itemName,
String itemDescription,
MetaType itemType)
Add an item
|
boolean |
equals(Object obj) |
void |
freeze()
Freeze the metatype
|
int |
hashCode() |
void |
setKeys(Set<String> keySet)
Set the keys
|
String |
toString() |
containsItem, equalsImpl, getDescription, getType, hashCodeImpl, isComposite, isValue, itemSet, keySet
getClassName, getDescription, getTypeName, isArray, isCollection, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getClassName, getDescription, getTypeName, isArray, isCollection, isEnum, isGeneric, isPrimitive, isProperties, isSimple, isTable
public MutableCompositeMetaType(String typeName, String description)
typeName
- the name of the composite type, cannot be null or emptydescription
- the human readable description of the composite type, cannot be null or emptyIllegalArgumentException
- when a parameter does not match what is described above.public void addItem(String itemName, String itemDescription, MetaType itemType)
AbstractCompositeMetaType
addItem
in class AbstractCompositeMetaType
itemName
- the item nameitemDescription
- the item descriptionitemType
- the item typepublic void setKeys(Set<String> keySet)
AbstractCompositeMetaType
setKeys
in class AbstractCompositeMetaType
keySet
- the key setpublic void freeze()
public String toString()
toString
in class AbstractCompositeMetaType
Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.