public class ImmutableCompositeMetaType extends AbstractCompositeMetaType
ALLOWED_CLASSNAMES
Constructor and Description |
---|
ImmutableCompositeMetaType(String typeName,
String description,
String[] itemNames,
String[] itemDescriptions,
MetaType[] itemTypes)
Construct a composite meta type.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
String |
toString() |
addItem, containsItem, equalsImpl, getDescription, getType, hashCodeImpl, isComposite, isValue, itemSet, keySet, setKeys
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 ImmutableCompositeMetaType(String typeName, String description, String[] itemNames, String[] itemDescriptions, MetaType[] itemTypes)
The three arrays are internally copied. Future changes to these arrays do not alter the composite type.
getClassName() returns CompositeValue
typeName
- the name of the composite type, cannot be null or emptydescription
- the human readable description of the composite type, cannot be null or emptyitemNames
- the names of the items described by this type. Cannot
be null, must contain at least one element, the elements cannot
be null or empty. The order of the items is unimportant when
determining equality.itemDescriptions
- the human readable descriptions of the items
in the same order as the itemNames, cannot be null must have the
same number of elements as the itemNames. The elements cannot
be null or empty.itemTypes
- the MetaTypes of the items in the same order as the
item names, cannot be null must have the
same number of elements as the itemNames. The elements cannot
be null.IllegalArgumentException
- when a parameter does not match
what is described above or when itemNames contains a duplicate name.
The names are case sensitive, leading and trailing whitespace
is ignored.Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.