|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.management.MBeanFeatureInfo
|
+--javax.management.MBeanAttributeInfo
|
+--javax.management.openmbean.OpenMBeanAttributeInfoSupport
| Constructor Summary | |
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs)
Constructs an OpenMBeanAttributeInfoSupport which is an OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties. |
|
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue)
Constructs an OpenMBeanAttributeInfoSupport which is an OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties and the default value. |
|
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Comparable minValue,
java.lang.Comparable maxValue)
Constructs an OpenMBeanAttributeInfoSupport which is an OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties,default value and legal
values as an array |
|
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
Constructs an OpenMBeanAttributeInfoSupport which is an OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties and the default value. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
Compares the give Object for equality with this instance.
|
java.lang.Object |
getDefaultValue()
Returns the default value, if specified, null otherwise |
java.util.Set |
getLegalValues()
Returns the legalValues as a Set |
java.lang.Comparable |
getMaxValue()
Returns the maxValue |
java.lang.Comparable |
getMinValue()
Returns the minValue |
OpenType |
getOpenType()
Returns the OpenType of this attribute |
boolean |
hasDefaultValue()
true if has defaultValue, false otherwise |
int |
hashCode()
Computes the hashCode of this OpenMBeanAttributeInfo |
boolean |
hasLegalValues()
true if has a legalValues allowed, false otherwise. |
boolean |
hasMaxValue()
true if has a maxValue, false otherwise. |
boolean |
hasMinValue()
true if has a minValue, false otherwise. |
boolean |
isValue(java.lang.Object obj)
Test wether obj is a valid value for this attribute |
java.lang.String |
toString()
Returns a string representation of this OpenMBeanAttributeInfo instance. |
| Methods inherited from class javax.management.MBeanAttributeInfo |
getType, isIs, isReadable, isWritable |
| Methods inherited from class javax.management.MBeanFeatureInfo |
clone, getDescription, getName |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.management.openmbean.OpenMBeanAttributeInfo |
isIs, isReadable, isWritable |
| Methods inherited from interface javax.management.openmbean.OpenMBeanParameterInfo |
getDescription, getName |
| Constructor Detail |
public OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs)
OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties.
name - The name of the attribute. Cant be a null.description - The description of the attribute. Cant be null.openType - The OpenType representationisReadable - true if the attribute has a getter exposed.isWritable - true if the attribute has a setter exposedisIs - true if the attribute's getter is of the form isXXX.
java.lang.IllegalArgumentException - If name or description are null or empty string, or openType is null
public OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue)
throws OpenDataException
OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties and the default value.
name - The name of the attribute. Cant be a null.description - The description of the attribute. Cant be null.openType - The OpenType representationisReadable - true if the attribute has a getter exposed.isWritable - true if the attribute has a setter exposedisIs - true if the attribute's getter is of the form isXXX.defaultValue - The default value of the attribute. Must be a
valid value for the OpenType specified.
null if no default value is set.
ArrayType and TabularType are
not supported for a default value.
java.lang.IllegalArgumentException - If name or description are null
or empty string, or openType is null
OpenDataException - If defaultValue is not of valid type; and
default value not supported for ArrayType and TabularType
(should be null)
public OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
throws OpenDataException
OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties and the default value.
name - The name of the attribute. Cant be a null.description - The description of the attribute. Cant be null.openType - The OpenType representationisReadable - true if the attribute has a getter exposed.isWritable - true if the attribute has a setter exposedisIs - true if the attribute's getter is of the form isXXX.defaultValue - The default value of the attribute. Must be a valid
value for the OpenType specified.
null if no default value is set.
ArrayType and TabularType are
not supported for a default value.legalValues - each value must be a valid
value for the OpenType specified.
null if no default value is set.
ArrayTypr and TabularType are
not supported for a legal value (should be null).
java.lang.IllegalArgumentException - If name or description are null or
empty string, or openType is null
OpenDataException - If defaultValue is not of valid type; and
default value not supported for ArrayType and TabularType
(should be null)
public OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Comparable minValue,
java.lang.Comparable maxValue)
throws OpenDataException
OpenMBean
with the specified name,OpenType, description and
and the specified read/write access properties,default value and legal
values as an array
name - The name of the attribute. Cant be a null.description - The description of the attribute. Cant be null.openType - The OpenType representationisReadable - true if the attribute has a getter exposed.isWritable - true if the attribute has a setter exposedisIs - true if the attribute's getter is of the form isXXX.defaultValue - The default value of the attribute.
Must be a valid value for the OpenType
specified. null if no defaultminValue - must be a valid OpenType specified for
this attribute. Can be null, which means no minimal value
for the attribute.maxValue - must be a valid OpenType specified for
this attribute. Can be null, which means no miximal value
for the attribute.
java.lang.IllegalArgumentException - If name or description
are null or empty string, or openType is null
OpenDataException - If defaultValue is not of valid type;
and default value not supported for ArrayType
and Tabular (should be null). If minValue and maxValue is
not a valid value for specified OpenType.
If minValue and maxValue are non-null and
OpenType and minValue.compareTo(maxValue) > 0
is true, or both defaultValue and minValue are non-null
and minValue.compareTo(defaultValue) >0 is true,
or both defaultValue and maxValue are non-null and
defaultValue.compareTo(maxValue) >0 is true| Method Detail |
public OpenType getOpenType()
OpenType of this attribute
getOpenType in interface OpenMBeanParameterInfopublic java.lang.Object getDefaultValue()
getDefaultValue in interface OpenMBeanParameterInfopublic java.util.Set getLegalValues()
Set
getLegalValues in interface OpenMBeanParameterInfopublic java.lang.Comparable getMinValue()
getMinValue in interface OpenMBeanParameterInfopublic java.lang.Comparable getMaxValue()
getMaxValue in interface OpenMBeanParameterInfopublic boolean hasDefaultValue()
true if has defaultValue, false otherwise
hasDefaultValue in interface OpenMBeanParameterInfopublic boolean hasLegalValues()
true if has a legalValues allowed, false otherwise.
hasLegalValues in interface OpenMBeanParameterInfopublic boolean hasMinValue()
true if has a minValue, false otherwise.
hasMinValue in interface OpenMBeanParameterInfopublic boolean hasMaxValue()
true if has a maxValue, false otherwise.
hasMaxValue in interface OpenMBeanParameterInfopublic boolean isValue(java.lang.Object obj)
isValue in interface OpenMBeanParameterInfoobj - The object being tested
public boolean equals(java.lang.Object obj)
Object for equality with this instance.
The operation returns true if and only if the following statements are all true:
equals in interface OpenMBeanAttributeInfoequals in class MBeanAttributeInfopublic int hashCode()
OpenMBeanAttributeInfo
hashCode in interface OpenMBeanAttributeInfohashCode in class MBeanAttributeInfopublic java.lang.String toString()
OpenMBeanAttributeInfo instance.
toString in interface OpenMBeanAttributeInfotoString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||