|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CompositeValue
A MetaValue representing a Map<String,MetaValue>, where the set of allowed keys and
their corresponding values' MetaTypes are specified by the associated CompositeMetaType.
MapCompositeValueSupport,
CompositeValueSupport| Method Summary | |
|---|---|
boolean |
containsKey(String key)
Tests whether a key is part of this composite value |
boolean |
containsValue(MetaValue value)
Tests whether a item exists with the passed value |
boolean |
equals(Object obj)
Tests whether two composite value objects are equal |
MetaValue |
get(String key)
Retrieve the value for the item with the passed key |
MetaValue[] |
getAll(String[] keys)
Retrieve the array of values for the item with the passed keys |
CompositeMetaType |
getMetaType()
Get the metatype for this value |
int |
hashCode()
Generates a hashcode for the implementation. |
String |
toString()
A string representation of the open mbean operation info. |
Collection<MetaValue> |
values()
The values of this composite value |
| Methods inherited from interface org.jboss.metatype.api.values.MetaValue |
|---|
clone |
| Method Detail |
|---|
CompositeMetaType getMetaType()
MetaValue
getMetaType in interface MetaValueMetaValue get(String key)
key - the key to the item
IllegalArgumentException - when the key is null or the empty string or when the key does not existMetaValue[] getAll(String[] keys)
keys - an array of key values
IllegalArgumentException - when a key is null or the empty
string or the array is null or when a key does not existboolean containsKey(String key)
key - the key to test
boolean containsValue(MetaValue value)
value - the value to test
Collection<MetaValue> values()
An iterator over the returned collection returns result in ascending lexicographic order
boolean equals(Object obj)
The object is non-null
The object implements this interface
The composite meta types are equal
The values are equal
equals in class Objectobj - the object to test
int hashCode()
The sum of the hashCodes for the elements mentioned in the equals method
hashCode in class ObjectString toString()
It is made up of implementation class and the values mentioned in the equals method
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||