TabularType class is the open type class
whose instances describe the types of TabularData values.
| Modifier and Type | Field and Description |
|---|---|
| private List | |
| private transient Integer | |
| private transient String | |
| private CompositeType | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | TabularType(String
The name given to the tabular type this instance represents; cannot be a null or empty string.
typeName, String The human readable description of the tabular type this instance represents;
cannot be a null or empty string.
description, CompositeType The type of the row elements of tabular data values described by this tabular type instance;
cannot be null.
rowType, String[] The names of the items the values of which are used to uniquely index each row element in the
tabular data values described by this tabular type instance;
cannot be null or empty. Each element should be an item name defined in rowType
(no null or empty string allowed).
It is important to note that the order of the item names in indexNames
is used by the methods indexNames)get and
remove of class
TabularData to match their array of values parameter to items.
Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| private static void | checkForEmptyString(String[] arg, String argName)
Checks that String[] does not contain any empty (or blank characters only) string. |
| private static void | checkForNullElement(Object[] arg, String argName)
Checks that Object[] arg is neither null nor empty (ie length==0) and that it does not contain any null element. |
| public boolean | Returns: true if the specified object is equal to this TabularType instance.the object to be compared for equality with this obj)TabularType instance;
if obj is null, equals returns false.Implements abstract javax. Compares the specified |
| public List | Returns: a List of String representing the names of the index items.Returns, in the same order as was given to this instance's
constructor, an unmodifiable List of the names of the items the
values of which are used to uniquely index each row element of
tabular data values described by this |
| public CompositeType | Returns: the type of each row.Returns the type of the row elements of tabular data values
described by this |
| public int | Returns: the hash code value for thisTabularType instanceImplements abstract javax. Returns the hash code value for this |
| pack-priv boolean | isAssignableFrom(OpenType<?> ot)
Overrides javax. Tests whether values of the given type can be assigned to this open type. |
| public boolean | Returns: true if obj is a value for this
tabular type, false otherwise.the value whose open type is to be tested for
compatibility with this obj)TabularType instance.Implements abstract javax. Tests whether obj is a value which could be
described by this |
| public String | Returns: a string representation of thisTabularType instanceImplements abstract javax. Returns a string representation of this |
| indexNames | back to summary |
|---|---|
private List<String> indexNames
| |
| myHashCode | back to summary |
|---|---|
| private transient Integer myHashCode | |
| myToString | back to summary |
|---|---|
| private transient String myToString | |
| rowType | back to summary |
|---|---|
| private CompositeType rowType | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| TabularType | back to summary |
|---|---|
| public TabularType(String typeName, String description, CompositeType rowType, String[] indexNames) throws OpenDataException Constructs a
The Java class name of tabular data values this tabular type represents
(ie the class name returned by the
| |
| checkForEmptyString | back to summary |
|---|---|
| private static void checkForEmptyString(String[] arg, String argName) Checks that String[] does not contain any empty (or blank characters only) string. | |
| checkForNullElement | back to summary |
|---|---|
| private static void checkForNullElement(Object[] arg, String argName) Checks that Object[] arg is neither null nor empty (ie length==0) and that it does not contain any null element. | |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Implements abstract javax. Compares the specified
Two
| |
| getIndexNames | back to summary |
|---|---|
| public List Returns, in the same order as was given to this instance's
constructor, an unmodifiable List of the names of the items the
values of which are used to uniquely index each row element of
tabular data values described by this | |
| getRowType | back to summary |
|---|---|
| public CompositeType getRowType() Returns the type of the row elements of tabular data values
described by this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Implements abstract javax. Returns the hash code value for this
The hash code of a
As
| |
| isAssignableFrom | back to summary |
|---|---|
| pack-priv boolean isAssignableFrom(OpenType<?> ot) Overrides javax. Doc from javax. Tests whether values of the given type can be assigned to this open type. The default implementation of this method returns true only if the types are equal.
| |
| isValue | back to summary |
|---|---|
| public boolean isValue(Object obj) Implements abstract javax. Tests whether obj is a value which could be
described by this If obj is null or is not an instance of
If obj is an instance of
| |
| toString | back to summary |
|---|---|
| public String toString() Implements abstract javax. Returns a string representation of this
The string representation consists of the name of this class (ie
As
| |