|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.metatype.api.types.AbstractMetaType
org.jboss.metatype.api.types.ImmutableTableMetaType
public class ImmutableTableMetaType
ImmutableTableMetaType.
Field Summary |
---|
Fields inherited from interface org.jboss.metatype.api.types.MetaType |
---|
ALLOWED_CLASSNAMES |
Constructor Summary | |
---|---|
ImmutableTableMetaType(String typeName,
String description,
CompositeMetaType rowType,
String[] indexNames)
Construct a tabe type. |
Method Summary | |
---|---|
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()
|
Methods inherited from class org.jboss.metatype.api.types.AbstractMetaType |
---|
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimple |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.metatype.api.types.MetaType |
---|
getClassName, getDescription, getTypeName, isArray, isCollection, isComposite, isEnum, isGeneric, isPrimitive, isProperties, isSimple |
Constructor Detail |
---|
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.Method Detail |
---|
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 test
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
JBoss Managed Parent POM 2.1.1.SP2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |