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(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(CompositeData value)
           
 boolean equals(java.lang.Object object)
           
 CompositeData get(java.lang.Object[] key)
           
 TabularType getTabularType()
           
 int hashCode()
           
 boolean isEmpty()
           
 java.util.Set keySet()
           
 void put(CompositeData value)
           
 void putAll(CompositeData[] values)
           
 CompositeData remove(java.lang.Object[] key)
           
 int size()
           
 java.lang.String toString()
           
 java.util.Collection values()
           
 

Method Detail

calculateIndex

java.lang.Object[] calculateIndex(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

void clear()

containsKey

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

containsValue

boolean containsValue(CompositeData value)

equals

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

get

CompositeData get(java.lang.Object[] key)
                  throws InvalidKeyException
Throws:
InvalidKeyException

getTabularType

TabularType getTabularType()
Returns:
the tabularType that desribes this particular instance

hashCode

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

isEmpty

boolean isEmpty()

keySet

java.util.Set keySet()

put

void put(CompositeData value)
         throws InvalidOpenTypeException,
                KeyAlreadyExistsException
Throws:
InvalidOpenTypeException
KeyAlreadyExistsException

putAll

void putAll(CompositeData[] values)
            throws InvalidOpenTypeException,
                   KeyAlreadyExistsException
Throws:
InvalidOpenTypeException
KeyAlreadyExistsException

remove

CompositeData remove(java.lang.Object[] key)
                     throws InvalidKeyException
Throws:
InvalidKeyException

size

int size()

toString

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

values

java.util.Collection values()


Copyright © 2001-2002 MX4J Team. All Rights Reserved.