|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.management.MBeanFeatureInfo javax.management.MBeanParameterInfo javax.management.openmbean.OpenMBeanParameterInfoSupport
OpenMBeanParameterInfo implementation
Field Summary |
Fields inherited from class javax.management.MBeanFeatureInfo |
description, name |
Constructor Summary | |
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType)
Contruct an OpenMBeanParameterInfoSupport |
|
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType,
Object defaultValue)
Contruct an OpenMBeanParameterInfoSupport |
|
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType,
Object defaultValue,
Comparable minValue,
Comparable maxValue)
Contruct an OpenMBeanParameterInfoSupport |
|
OpenMBeanParameterInfoSupport(String name,
String description,
OpenType openType,
Object defaultValue,
Object[] legalValues)
Contruct an OpenMBeanParameterInfoSupport |
Method Summary | |
boolean |
equals(Object obj)
Compares an object for equality with the implementing class. |
Object |
getDefaultValue()
Retrieve the default value for this parameter or null if there is no default |
Set |
getLegalValues()
Retrieve the legal values values for this parameter or null if this is not specified |
Comparable |
getMaxValue()
Retrieve the maximum values values for this parameter or null if this is not specified |
Comparable |
getMinValue()
Retrieve the minimum values values for this parameter or null if this is not specified |
OpenType |
getOpenType()
Retrieve the open type for this parameter |
boolean |
hasDefaultValue()
Discover wether this parameter has a default value specified |
int |
hashCode()
Generates a hashcode for the implementation. |
boolean |
hasLegalValues()
Discover wether this parameter has legal values specified |
boolean |
hasMaxValue()
Discover wether this parameter has a maximum value specified |
boolean |
hasMinValue()
Discover wether this parameter has a minimum value specified |
boolean |
isValue(Object obj)
Tests whether an object is acceptable as a paramter value |
String |
toString()
A string representation of the open mbean parameter info. |
Methods inherited from class javax.management.MBeanParameterInfo |
clone, getType |
Methods inherited from class javax.management.MBeanFeatureInfo |
getDescription, getName |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.management.openmbean.OpenMBeanParameterInfo |
getDescription, getName |
Constructor Detail |
public OpenMBeanParameterInfoSupport(String name, String description, OpenType openType)
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be null
IllegalArgumentException
- when one of the above
constraints is not satisfiedpublic OpenMBeanParameterInfoSupport(String name, String description, OpenType openType, Object defaultValue) throws OpenDataException
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nulldefaultValue
- the default value
IllegalArgumentException
- when one of the above
constraints is not satisfied
OpenDataException
- when default value is not correct for
the open type or cannot specify a default value for
ArrayType and TabularTypepublic OpenMBeanParameterInfoSupport(String name, String description, OpenType openType, Object defaultValue, Object[] legalValues) throws OpenDataException
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nulldefaultValue
- the default valuelegalValues
- an array of legal values
IllegalArgumentException
- when one of the above
constraints is not satisfied
OpenDataException
public OpenMBeanParameterInfoSupport(String name, String description, OpenType openType, Object defaultValue, Comparable minValue, Comparable maxValue) throws OpenDataException
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nulldefaultValue
- the default valueminValue
- the minimum valuemaxValue
- the maximum value
IllegalArgumentException
- when one of the above
constraints is not satisfied
OpenDataException
Method Detail |
public Object getDefaultValue()
OpenMBeanParameterInfo
getDefaultValue
in interface OpenMBeanParameterInfo
public Set getLegalValues()
OpenMBeanParameterInfo
getLegalValues
in interface OpenMBeanParameterInfo
public Comparable getMinValue()
OpenMBeanParameterInfo
getMinValue
in interface OpenMBeanParameterInfo
public Comparable getMaxValue()
OpenMBeanParameterInfo
getMaxValue
in interface OpenMBeanParameterInfo
public OpenType getOpenType()
OpenMBeanParameterInfo
getOpenType
in interface OpenMBeanParameterInfo
public boolean hasDefaultValue()
OpenMBeanParameterInfo
hasDefaultValue
in interface OpenMBeanParameterInfo
public boolean hasLegalValues()
OpenMBeanParameterInfo
hasLegalValues
in interface OpenMBeanParameterInfo
public boolean hasMinValue()
OpenMBeanParameterInfo
hasMinValue
in interface OpenMBeanParameterInfo
public boolean hasMaxValue()
OpenMBeanParameterInfo
hasMaxValue
in interface OpenMBeanParameterInfo
public boolean isValue(Object obj)
OpenMBeanParameterInfo
isValue
in interface OpenMBeanParameterInfo
obj
- the object to test
public boolean equals(Object obj)
OpenMBeanParameterInfo
The object is not null
The object implements the open mbean attribute info interface
The parameter names are equal
The open types are equal
The default, min, max and legal values are equal
equals
in interface OpenMBeanParameterInfo
equals
in class MBeanParameterInfo
public int hashCode()
OpenMBeanParameterInfo
The sum of the hashCodes for the elements mentioned in the equals method
hashCode
in interface OpenMBeanParameterInfo
hashCode
in class MBeanParameterInfo
public String toString()
OpenMBeanParameterInfo
It is made up of implementation class and the values mentioned in the equals method
toString
in interface OpenMBeanParameterInfo
toString
in class MBeanParameterInfo
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |