java.lang.Object javax.management.openmbean.OpenType<TabularData> javax.management.openmbean.TabularType
public class TabularType
The TabularType class is the open type class whose instances describe the types of TabularData values.
Field Summary |
---|
Fields inherited from class javax.management.openmbean. OpenType |
---|
ALLOWED_CLASSNAMES , ALLOWED_CLASSNAMES_LIST |
Constructor Summary | |
---|---|
TabularType
(
String
typeName,
String
description,
CompositeType
rowType,
String
[] indexNames) Constructs a TabularType instance, checking for the validity of the given parameters. |
Method Summary | |
---|---|
boolean |
equals
(
Object
obj) Compares the specified obj parameter with this TabularType instance for equality. |
List < String > |
getIndexNames
() 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 TabularType instance. |
CompositeType |
getRowType
() Returns the type of the row elements of tabular data values described by this TabularType instance. |
int |
hashCode
() Returns the hash code value for this TabularType instance. |
boolean |
isValue
(
Object
obj) Tests whether obj is a value which could be described by this TabularType instance. |
String |
toString
() Returns a string representation of this TabularType instance. |
Methods inherited from class javax.management.openmbean. OpenType |
---|
getClassName , getDescription , getTypeName , isArray |
Methods inherited from class java.lang. Object |
---|
clone , finalize , getClass , notify , notifyAll , wait , wait , wait |
Constructor Detail |
---|
public TabularType(String typeName, String description, CompositeType rowType, String[] indexNames) throws OpenDataException
The Java class name of tabular data values this tabular type represents (ie the class name returned by the getClassName method) is set to the string value returned by TabularData.class.getName().
Method Detail |
---|
public CompositeType getRowType()
public List<String> getIndexNames()
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 TabularType instance.
public boolean isValue ( Object obj)
If obj is null or is not an instance of javax.management.openmbean.TabularData, isValue returns false.
If obj is an instance of javax.management.openmbean.TabularData, say td, the result is true if this TabularType is assignable from td.getTabularType() , as defined in CompositeType.isValue .
public booleanisValue(Objectobj)
If obj is null or is not an instance of javax.management.openmbean.TabularData, isValue returns false. If obj is an instance of javax.management.openmbean.TabularData, its tabular type is tested for equality with this tabular type instance, and isValue returns true if and only if
equals
returns true.
public boolean equals(Object obj)
Two TabularType instances are equal if and only if all of the following statements are true:
public int hashCode()
The hash code of a TabularType instance is the sum of the hash codes of all elements of information used in equals comparisons (ie: name, row type, index names). This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two TabularType instances t1 and t2, as required by the general contract of the method Object.hashCode() .
As TabularType instances are immutable, the hash code for this instance is calculated once, on the first call to hashCode, and then the same value is returned for subsequent calls.
public String toString()
The string representation consists of the name of this class (ie javax.management.openmbean.TabularType), the type name for this instance, the row type string representation of this instance, and the index names of this instance.
As TabularType instances are immutable, the string representation for this instance is calculated once, on the first call to toString, and then the same value is returned for subsequent calls.