|
||||||||||
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.MBeanAttributeInfo (src)
javax.management.openmbean.OpenMBeanAttributeInfoSupport
OpenMBeanAttributeInfo implementation
Field Summary |
Fields inherited from class javax.management.MBeanFeatureInfo (src) |
description, name |
Constructor Summary | |
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType (src) openType,
boolean isReadable,
boolean isWritable,
boolean isIs)
Contruct an OpenMBeanAttributeInfoSupport |
|
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType (src) openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue)
Contruct an OpenMBeanAttributeInfoSupport |
|
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType (src) openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Comparable minValue,
java.lang.Comparable maxValue)
Contruct an OpenMBeanAttributeInfoSupport |
|
OpenMBeanAttributeInfoSupport(java.lang.String name,
java.lang.String description,
OpenType (src) openType,
boolean isReadable,
boolean isWritable,
boolean isIs,
java.lang.Object defaultValue,
java.lang.Object[] legalValues)
Contruct an OpenMBeanAttributeInfoSupport |
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.MBeanAttributeInfo (src) |
clone, getType, isIs, isReadable, isWritable |
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.OpenMBeanAttributeInfo (src) |
isIs, isReadable, isWritable |
Methods inherited from interface javax.management.openmbean.OpenMBeanParameterInfo (src) |
getDescription, getName |
Constructor Detail |
public OpenMBeanAttributeInfoSupport(java.lang.String name, java.lang.String description, OpenType (src) openType, boolean isReadable, boolean isWritable, boolean isIs)
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXX
java.lang.IllegalArgumentException
- when one of the above
constraints is not satisfiedpublic OpenMBeanAttributeInfoSupport(java.lang.String name, java.lang.String description, OpenType (src) openType, boolean isReadable, boolean isWritable, boolean isIs, java.lang.Object defaultValue) throws OpenDataException (src)
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXXdefaultValue
- 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 TabularTypepublic OpenMBeanAttributeInfoSupport(java.lang.String name, java.lang.String description, OpenType (src) openType, boolean isReadable, boolean isWritable, boolean isIs, java.lang.Object defaultValue, java.lang.Object[] legalValues) throws OpenDataException (src)
name
- cannot be null or emptydescription
- cannot be null or emptyopenType
- cannot be nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXXdefaultValue
- the default valuelegalValues
- an array of legal values
java.lang.IllegalArgumentException
- when one of the above
constraints is not satisfied
OpenDataException (src)
public OpenMBeanAttributeInfoSupport(java.lang.String name, java.lang.String description, OpenType (src) openType, boolean isReadable, boolean isWritable, boolean isIs, 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 nullisReadable
- true when the getter is exposed for managementisWritable
- true when the setter is exposed for managementisIs
- true when the getter is of the form isXXXdefaultValue
- 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)
OpenMBeanAttributeInfo (src)
The object is not null
The object implements the open mbean parameter info interface
The parameter names are equal
The open types are equal
The access properties are the same
The default, min, max and legal values are equal
equals
in interface OpenMBeanAttributeInfo (src)
equals
in class MBeanAttributeInfo (src)
public int hashCode()
OpenMBeanAttributeInfo (src)
The sum of the hashCodes for the elements mentioned in the equals method
hashCode
in interface OpenMBeanAttributeInfo (src)
hashCode
in class MBeanAttributeInfo (src)
public java.lang.String toString()
OpenMBeanAttributeInfo (src)
It is made up of implementation class and the values mentioned in the equals method
toString
in interface OpenMBeanAttributeInfo (src)
toString
in class MBeanAttributeInfo (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |