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