|
||||||||||||
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
Describes a parameter used in one or more operations or constructors of an open MBean
Constructor Summary | |
---|---|
OpenMBeanParameterInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType)
No validation done for null values is done here. |
|
OpenMBeanParameterInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
java.lang.Object defaultValue)
Constructs an OpenMBeanParameterInfoSupport instance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specified name, openType, description and defaultValue. |
|
OpenMBeanParameterInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
java.lang.Object defaultValue,
java.lang.Comparable minValue,
java.lang.Comparable maxValue)
Constructs an OpenMBeanParameterInfoSupport instance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specified name, openType, description, defaultValue, minValue and maxValue. |
|
OpenMBeanParameterInfoSupport(java.lang.String name,
java.lang.String description,
OpenType openType,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
Constructs an OpenMBeanParameterInfoSupport instance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specified name, openType, description, defaultValue and legalValues. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares the specified obj parameter with this OpenMBeanParameterInfoSupport instance for equality. |
java.lang.Object |
getDefaultValue()
|
java.util.Set |
getLegalValues()
|
java.lang.Comparable |
getMaxValue()
|
java.lang.Comparable |
getMinValue()
|
OpenType |
getOpenType()
|
boolean |
hasDefaultValue()
|
int |
hashCode()
|
boolean |
hasLegalValues()
|
boolean |
hasMaxValue()
|
boolean |
hasMinValue()
|
boolean |
isValue(java.lang.Object obj)
Tests wether obj is a valid value for the parameter described by this OpenMBeanParameterInfo instance |
java.lang.String |
toString()
|
Methods inherited from class javax.management.MBeanParameterInfo |
---|
getType |
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.OpenMBeanParameterInfo |
---|
getDescription, getName |
Constructor Detail |
public OpenMBeanParameterInfoSupport(java.lang.String name, java.lang.String description, OpenType openType)
name
- - cannot be a null or empty stringdescription
- - cannot be a null or empty string.openType
- - cannot be null
java.lang.IllegalArgumentException
- - if name or description are null or empty string, or openType is null.public OpenMBeanParameterInfoSupport(java.lang.String name, java.lang.String description, OpenType openType, java.lang.Object defaultValue) throws OpenDataException
name
- - cannot be a null or empty string.description
- - cannot be a null or empty string.openType
- - cannot be null.defaultValue
- - must be a valid value for the openType specified for this parameter;
default value not supported for ArrayType and TabularType;
can be null, in which case it means that no default value is set.
java.lang.IllegalArgumentException
- - if name or description are null or empty string, or openType is null
OpenDataException
- - if defaultValue is not a valid value for the specified openType, or defaultValue is non null and openType is an ArrayType or a TabularType.public OpenMBeanParameterInfoSupport(java.lang.String name, java.lang.String description, OpenType openType, java.lang.Object defaultValue, java.lang.Object[] legalValues) throws OpenDataException
name
- - cannot be a null or empty string.description
- - cannot be a null or empty string.openType
- - cannot be null.defaultValue
- - must be a valid value for the openType specified for this parameter;
default value not supported for ArrayType and TabularType;
can be null, in which case it means that no default value is set.legalValues
- - each contained value must be valid for the openType specified for this parameter; legal values not supported for ArrayType and TabularType; can be null or empty
java.lang.IllegalArgumentException
- - if name or description are null or empty string, or openType is null.
OpenDataException
- - if defaultValue is not a valid value for the specified openType, or one value in legalValues is not valid for the specified openType,
or defaultValue is non null and openType is an ArrayType or a TabularType,
or legalValues is non null and non empty and openType is an ArrayType or a TabularType,
or legalValues is non null and non empty and defaultValue is not contained in legalValues.public OpenMBeanParameterInfoSupport(java.lang.String name, java.lang.String description, OpenType openType, java.lang.Object defaultValue, java.lang.Comparable minValue, java.lang.Comparable maxValue) throws OpenDataException
name
- - cannot be a null or empty string.description
- - cannot be a null or empty stringopenType
- - cannot be null.defaultValue
- - must be a valid value for the openType specified for this parameter;
default value not supported for ArrayType and TabularType;
can be null, in which case it means that no default value is set.minValue
- - must be valid for the openType specified for this parameter; can be null, in which case it means that no minimal value is set.maxValue
- - must be valid for the openType specified for this parameter; can be null, in which case it means that no maximal value is set.
java.lang.IllegalArgumentException
- - if name or description are null or empty string, or openType is null.
OpenDataException
- - if defaultValue, minValue or maxValue is not a valid value for the specified openType,
or defaultValue is non null and openType is an ArrayType or a TabularType,
or both minValue and maxValue are non-null 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()
getOpenType
in interface OpenMBeanParameterInfo
public java.lang.Object getDefaultValue()
getDefaultValue
in interface OpenMBeanParameterInfo
public java.util.Set getLegalValues()
getLegalValues
in interface OpenMBeanParameterInfo
public java.lang.Comparable getMinValue()
getMinValue
in interface OpenMBeanParameterInfo
public java.lang.Comparable getMaxValue()
getMaxValue
in interface OpenMBeanParameterInfo
public boolean hasDefaultValue()
hasDefaultValue
in interface OpenMBeanParameterInfo
public boolean hasLegalValues()
hasLegalValues
in interface OpenMBeanParameterInfo
public boolean hasMinValue()
hasMinValue
in interface OpenMBeanParameterInfo
public boolean hasMaxValue()
hasMaxValue
in interface OpenMBeanParameterInfo
public boolean isValue(java.lang.Object obj)
isValue
in interface OpenMBeanParameterInfo
obj
- - the Object to test if is a valid value
public boolean equals(java.lang.Object obj)
equals
in interface OpenMBeanParameterInfo
equals
in class MBeanParameterInfo
public int hashCode()
hashCode
in interface OpenMBeanParameterInfo
hashCode
in class MBeanParameterInfo
public java.lang.String toString()
toString
in interface OpenMBeanParameterInfo
toString
in class java.lang.Object
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |