public class ImmutableTableMetaType extends AbstractMetaType implements TableMetaType
ALLOWED_CLASSNAMES| Constructor and Description |
|---|
ImmutableTableMetaType(String typeName,
String description,
CompositeMetaType rowType,
String[] indexNames)
Construct a tabe type.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
List<String> |
getIndexNames()
Retrieve an unmodifiable list of index names in the same order as
passed to the constructor.
|
CompositeMetaType |
getRowType()
Retrieve the row type
|
int |
hashCode() |
boolean |
isTable()
Retrieve whether the class name of the type is a table
|
boolean |
isValue(Object obj)
Whether the passed value is one of those described by this meta type.
|
String |
toString() |
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimpleclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimplepublic ImmutableTableMetaType(String typeName, String description, CompositeMetaType rowType, String[] indexNames)
typeName - the name of the tabular type, cannot be null or emptydescription - the human readable description of the tabular type, cannot be null or emptyrowType - the type of the row elements in the tabular data, cannot be nullindexNames - the names of the item values that uniquely index each
row element in the tabular data, cannot be null or empty. Each
element must be an item name in the rowType, nul or empty is not
allowed. The order of the item names in this parameter is used
by TableValue.get(org.jboss.metatype.api.values.MetaValue[]) and TableValue.remove(org.jboss.metatype.api.values.MetaValue[]) the
TabularValue to match the array of values to items.IllegalArgumentException - when a parameter does not match
what is described above or when an element of indexNames is not defined
in rowType.public CompositeMetaType getRowType()
TableMetaTypegetRowType in interface TableMetaTypepublic List<String> getIndexNames()
TableMetaTypegetIndexNames in interface TableMetaTypepublic boolean isTable()
MetaTypeisTable in interface MetaTypeisTable in class AbstractMetaTypepublic boolean isValue(Object obj)
MetaTypeisValue in interface MetaTypeisValue in class AbstractMetaTypeobj - the object to testCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.