javax.management.openmbean
Interface TabularData

All Known Implementing Classes:
TabularDataSupport

public interface TabularData

The TabularData interface specifies the behaviour of a specific type of complex open data objects which represent tabular data structures


Method Summary
 java.lang.Object[] calculateIndex(javax.management.openmbean.CompositeData index)
          Calculates the index that would be used in this TabularData instance to refer to the specified CompositeData value parameter, if it were added.
 void clear()
           
 boolean containsKey(java.lang.Object[] key)
           
 boolean containsValue(javax.management.openmbean.CompositeData value)
           
 boolean equals(java.lang.Object object)
           
 javax.management.openmbean.CompositeData get(java.lang.Object[] key)
           
 javax.management.openmbean.TabularType getTabularType()
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 void put(javax.management.openmbean.CompositeData value)
           
 void putAll(javax.management.openmbean.CompositeData[] values)
           
 javax.management.openmbean.CompositeData remove(java.lang.Object[] key)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection values()
           
 

Method Detail

calculateIndex

public java.lang.Object[] calculateIndex(javax.management.openmbean.CompositeData index)

Calculates the index that would be used in this TabularData instance to refer to the specified CompositeData value parameter, if it were added. This method checks for the type validity of the specified value, but does not check if the calculated index is already used to refer to a value in this TabularData instance

Parameters:
index - the CompositeData value whose index in this TabularData instance is to be calculated. It must be of the same composite type as this instances' rowType and cannot be null.
Returns:
object[] value that the specified value would have in this TabulatData instance
Throws:
java.lang.NullPointerException - if index is null
InvalidOpenTypeException - if index does not conform to this TabularData instance's rowType

clear

public void clear()

containsKey

public boolean containsKey(java.lang.Object[] key)
                    throws InvalidOpenTypeException
InvalidOpenTypeException

containsValue

public boolean containsValue(javax.management.openmbean.CompositeData value)

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

get

public javax.management.openmbean.CompositeData get(java.lang.Object[] key)
                                             throws InvalidKeyException
InvalidKeyException

getTabularType

public javax.management.openmbean.TabularType getTabularType()
Returns:
the tabularType that desribes this particular instance

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

isEmpty

public boolean isEmpty()

keySet

public java.util.Set keySet()

put

public void put(javax.management.openmbean.CompositeData value)
         throws InvalidOpenTypeException,
                KeyAlreadyExistsException
InvalidOpenTypeException
KeyAlreadyExistsException

putAll

public void putAll(javax.management.openmbean.CompositeData[] values)
            throws InvalidOpenTypeException,
                   KeyAlreadyExistsException
InvalidOpenTypeException
KeyAlreadyExistsException

remove

public javax.management.openmbean.CompositeData remove(java.lang.Object[] key)
                                                throws InvalidKeyException
InvalidKeyException

size

public int size()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

values

public java.util.Collection values()