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, isSimple
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimple
public 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()
TableMetaType
getRowType
in interface TableMetaType
public List<String> getIndexNames()
TableMetaType
getIndexNames
in interface TableMetaType
public boolean isTable()
MetaType
isTable
in interface MetaType
isTable
in class AbstractMetaType
public boolean isValue(Object obj)
MetaType
isValue
in interface MetaType
isValue
in class AbstractMetaType
obj
- the object to testCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.