javax.management.openmbean
Class OpenMBeanAttributeInfoSupport

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo 
      extended by javax.management.MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo 
          extended by javax.management.openmbean.OpenMBeanAttributeInfoSupport
All Implemented Interfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable , Cloneable sample code for java.lang.Cloneable definition code for java.lang.Cloneable , OpenMBeanAttributeInfo sample code for javax.management.openmbean.OpenMBeanAttributeInfo definition code for javax.management.openmbean.OpenMBeanAttributeInfo , OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo

public class OpenMBeanAttributeInfoSupport
extends MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo
implements OpenMBeanAttributeInfo sample code for javax.management.openmbean.OpenMBeanAttributeInfo definition code for javax.management.openmbean.OpenMBeanAttributeInfo , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Describes an attribute of an open MBean.

Since:
1.5
See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
description sample code for javax.management.MBeanFeatureInfo.description definition code for javax.management.MBeanFeatureInfo.description , name sample code for javax.management.MBeanFeatureInfo.name definition code for javax.management.MBeanFeatureInfo.name
 
Constructor Summary
OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description, OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType, boolean isReadable, boolean isWritable, boolean isIs)
          Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute of an open MBean with the specified name, openType and description, and the specified read/write access properties.
OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description, OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType, boolean isReadable, boolean isWritable, boolean isIs, Object sample code for java.lang.Object definition code for java.lang.Object  defaultValue)
          Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute of an open MBean with the specified name, openType, description and defaultValue, and the specified read/write access properties.
OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Comparable, java.lang.Comparable) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Comparable, java.lang.Comparable) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description, OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType, boolean isReadable, boolean isWritable, boolean isIs, Object sample code for java.lang.Object definition code for java.lang.Object  defaultValue, Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  minValue, Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  maxValue)
          Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute used in one or more operations or constructors of a class of open MBeans, with the specified name, openType, description, defaultValue, minValue and maxValue.
OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Object[]) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Object[]) (String sample code for java.lang.String definition code for java.lang.String  name, String sample code for java.lang.String definition code for java.lang.String  description, OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType, boolean isReadable, boolean isWritable, boolean isIs, Object sample code for java.lang.Object definition code for java.lang.Object  defaultValue, Object sample code for java.lang.Object definition code for java.lang.Object [] legalValues)
          Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute of an open MBean with the specified name, openType, description, defaultValue and legalValues, and the specified read/write access properties.
 
Method Summary
 boolean equals sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.equals(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Compares the specified obj parameter with this OpenMBeanAttributeInfoSupport instance for equality.
 Object sample code for java.lang.Object definition code for java.lang.Object getDefaultValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getDefaultValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getDefaultValue() ()
          Returns the default value for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.
 Set sample code for java.util.Set definition code for java.util.Set getLegalValues sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getLegalValues() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getLegalValues() ()
          Returns an unmodifiable Set of legal values for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.
 Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable getMaxValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMaxValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMaxValue() ()
          Returns the maximal value for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.
 Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable getMinValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMinValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMinValue() ()
          Returns the minimal value for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.
 OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType getOpenType sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getOpenType() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getOpenType() ()
          Returns the open type for the values of the attribute described by this OpenMBeanAttributeInfoSupport instance.
 boolean hasDefaultValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasDefaultValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasDefaultValue() ()
          Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null default value for the described attribute, false otherwise.
 int hashCode sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hashCode() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hashCode() ()
          Returns the hash code value for this OpenMBeanAttributeInfoSupport instance.
 boolean hasLegalValues sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasLegalValues() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasLegalValues() ()
          Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null set of legal values for the described attribute, false otherwise.
 boolean hasMaxValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMaxValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMaxValue() ()
          Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null maximal value for the described attribute, false otherwise.
 boolean hasMinValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMinValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMinValue() ()
          Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null minimal value for the described attribute, false otherwise.
 boolean isValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.isValue(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.isValue(java.lang.Object) (Object sample code for java.lang.Object definition code for java.lang.Object  obj)
          Tests whether obj is a valid value for the attribute described by this OpenMBeanAttributeInfoSupport instance.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.toString() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.toString() ()
          Returns a string representation of this OpenMBeanAttributeInfoSupport instance.
 
Methods inherited from class javax.management.MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo
clone sample code for javax.management.MBeanAttributeInfo.clone() definition code for javax.management.MBeanAttributeInfo.clone() , getType sample code for javax.management.MBeanAttributeInfo.getType() definition code for javax.management.MBeanAttributeInfo.getType() , isIs sample code for javax.management.MBeanAttributeInfo.isIs() definition code for javax.management.MBeanAttributeInfo.isIs() , isReadable sample code for javax.management.MBeanAttributeInfo.isReadable() definition code for javax.management.MBeanAttributeInfo.isReadable() , isWritable sample code for javax.management.MBeanAttributeInfo.isWritable() definition code for javax.management.MBeanAttributeInfo.isWritable()
 
Methods inherited from class javax.management.MBeanFeatureInfo sample code for javax.management.MBeanFeatureInfo definition code for javax.management.MBeanFeatureInfo
getDescription sample code for javax.management.MBeanFeatureInfo.getDescription() definition code for javax.management.MBeanFeatureInfo.getDescription() , getName sample code for javax.management.MBeanFeatureInfo.getName() definition code for javax.management.MBeanFeatureInfo.getName()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 
Methods inherited from interface javax.management.openmbean.OpenMBeanAttributeInfo sample code for javax.management.openmbean.OpenMBeanAttributeInfo definition code for javax.management.openmbean.OpenMBeanAttributeInfo
isIs sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isIs() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isIs() , isReadable sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isReadable() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isReadable() , isWritable sample code for javax.management.openmbean.OpenMBeanAttributeInfo.isWritable() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.isWritable()
 
Methods inherited from interface javax.management.openmbean.OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
getDescription sample code for javax.management.openmbean.OpenMBeanParameterInfo.getDescription() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getDescription() , getName sample code for javax.management.openmbean.OpenMBeanParameterInfo.getName() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getName()
 

Constructor Detail

OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean)

public OpenMBeanAttributeInfoSupport(String sample code for java.lang.String definition code for java.lang.String  name,
                                     String sample code for java.lang.String definition code for java.lang.String  description,
                                     OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType,
                                     boolean isReadable,
                                     boolean isWritable,
                                     boolean isIs)
Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute of an open MBean with the specified name, openType and description, and the specified read/write access properties.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
openType - cannot be null.
isReadable - true if the attribute has a getter exposed for management.
isWritable - true if the attribute has a setter exposed for management.
isIs - true if the attribute's getter is of the form isXXX.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if name or description are null or empty string, or openType is null.

OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object)

public OpenMBeanAttributeInfoSupport(String sample code for java.lang.String definition code for java.lang.String  name,
                                     String sample code for java.lang.String definition code for java.lang.String  description,
                                     OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType,
                                     boolean isReadable,
                                     boolean isWritable,
                                     boolean isIs,
                                     Object sample code for java.lang.Object definition code for java.lang.Object  defaultValue)
                              throws OpenDataException sample code for javax.management.openmbean.OpenDataException definition code for javax.management.openmbean.OpenDataException 
Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute of an open MBean with the specified name, openType, description and defaultValue, and the specified read/write access properties.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
openType - cannot be null.
isReadable - true if the attribute has a getter exposed for management.
isWritable - true if the attribute has a setter exposed for management.
isIs - true if the attribute's getter is of the form isXXX.
defaultValue - must be a valid value for the openType specified for this attribute; default value not supported for ArrayType and TabularType; can be null, in which case it means that no default value is set.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if name or description are null or empty string, or openType is null.
OpenDataException sample code for javax.management.openmbean.OpenDataException definition code for javax.management.openmbean.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.

OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Object[]) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Object[])

public OpenMBeanAttributeInfoSupport(String sample code for java.lang.String definition code for java.lang.String  name,
                                     String sample code for java.lang.String definition code for java.lang.String  description,
                                     OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType,
                                     boolean isReadable,
                                     boolean isWritable,
                                     boolean isIs,
                                     Object sample code for java.lang.Object definition code for java.lang.Object  defaultValue,
                                     Object sample code for java.lang.Object definition code for java.lang.Object [] legalValues)
                              throws OpenDataException sample code for javax.management.openmbean.OpenDataException definition code for javax.management.openmbean.OpenDataException 
Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute of an open MBean with the specified name, openType, description, defaultValue and legalValues, and the specified read/write access properties. The contents of legalValues are internally dumped into an unmodifiable Set, so subsequent modifications of the array referenced by legalValues have no impact on this OpenMBeanAttributeInfoSupport instance.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
openType - cannot be null.
isReadable - true if the attribute has a getter exposed for management.
isWritable - true if the attribute has a setter exposed for management.
isIs - true if the attribute's getter is of the form isXXX.
defaultValue - must be a valid value for the openType specified for this attribute; 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 attribute; legal values not supported for ArrayType and TabularType; can be null or empty.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if name or description are null or empty string, or openType is null.
OpenDataException sample code for javax.management.openmbean.OpenDataException definition code for javax.management.openmbean.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.

OpenMBeanAttributeInfoSupport sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Comparable, java.lang.Comparable) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, boolean, boolean, boolean, java.lang.Object, java.lang.Comparable, java.lang.Comparable)

public OpenMBeanAttributeInfoSupport(String sample code for java.lang.String definition code for java.lang.String  name,
                                     String sample code for java.lang.String definition code for java.lang.String  description,
                                     OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  openType,
                                     boolean isReadable,
                                     boolean isWritable,
                                     boolean isIs,
                                     Object sample code for java.lang.Object definition code for java.lang.Object  defaultValue,
                                     Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  minValue,
                                     Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  maxValue)
                              throws OpenDataException sample code for javax.management.openmbean.OpenDataException definition code for javax.management.openmbean.OpenDataException 
Constructs an OpenMBeanAttributeInfoSupport instance, which describes the attribute used in one or more operations or constructors of a class of open MBeans, with the specified name, openType, description, defaultValue, minValue and maxValue. It is possible to specify minimal and maximal values only for an open type whose values are Comparable.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
openType - cannot be null.
isReadable - true if the attribute has a getter exposed for management.
isWritable - true if the attribute has a setter exposed for management.
isIs - true if the attribute's getter is of the form isXXX.
defaultValue - must be a valid value for the openType specified for this attribute; 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 attribute; can be null, in which case it means that no minimal value is set.
maxValue - must be valid for the openType specified for this attribute; can be null, in which case it means that no maximal value is set.
Throws:
IllegalArgumentException sample code for java.lang.IllegalArgumentException definition code for java.lang.IllegalArgumentException - if name or description are null or empty string, or openType is null.
OpenDataException sample code for javax.management.openmbean.OpenDataException definition code for javax.management.openmbean.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

getOpenType sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getOpenType() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getOpenType()

public OpenType sample code for javax.management.openmbean.OpenType definition code for javax.management.openmbean.OpenType  getOpenType()
Returns the open type for the values of the attribute described by this OpenMBeanAttributeInfoSupport instance.

Specified by:
getOpenType sample code for javax.management.openmbean.OpenMBeanParameterInfo.getOpenType() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getOpenType() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the open type.

getDefaultValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getDefaultValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getDefaultValue()

public Object sample code for java.lang.Object definition code for java.lang.Object  getDefaultValue()
Returns the default value for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.

Specified by:
getDefaultValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.getDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getDefaultValue() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the default value.

getLegalValues sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getLegalValues() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getLegalValues()

public Set sample code for java.util.Set definition code for java.util.Set  getLegalValues()
Returns an unmodifiable Set of legal values for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.

Specified by:
getLegalValues sample code for javax.management.openmbean.OpenMBeanParameterInfo.getLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getLegalValues() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the set of legal values.

getMinValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMinValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMinValue()

public Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  getMinValue()
Returns the minimal value for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.

Specified by:
getMinValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.getMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getMinValue() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the minimum value.

getMaxValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMaxValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.getMaxValue()

public Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  getMaxValue()
Returns the maximal value for the attribute described by this OpenMBeanAttributeInfoSupport instance, if specified, or null otherwise.

Specified by:
getMaxValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.getMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.getMaxValue() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the maximum value.

hasDefaultValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasDefaultValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasDefaultValue()

public boolean hasDefaultValue()
Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null default value for the described attribute, false otherwise.

Specified by:
hasDefaultValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasDefaultValue() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true if there is a default value.

hasLegalValues sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasLegalValues() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasLegalValues()

public boolean hasLegalValues()
Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null set of legal values for the described attribute, false otherwise.

Specified by:
hasLegalValues sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasLegalValues() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true if there is a set of legal values.

hasMinValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMinValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMinValue()

public boolean hasMinValue()
Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null minimal value for the described attribute, false otherwise.

Specified by:
hasMinValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasMinValue() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true if there is a minimum value.

hasMaxValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMaxValue() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hasMaxValue()

public boolean hasMaxValue()
Returns true if this OpenMBeanAttributeInfoSupport instance specifies a non-null maximal value for the described attribute, false otherwise.

Specified by:
hasMaxValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.hasMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hasMaxValue() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true if there is a maximum value.

isValue sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.isValue(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.isValue(java.lang.Object)

public boolean isValue(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Tests whether obj is a valid value for the attribute described by this OpenMBeanAttributeInfoSupport instance.

Specified by:
isValue sample code for javax.management.openmbean.OpenMBeanParameterInfo.isValue(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfo.isValue(java.lang.Object) in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Parameters:
obj - the object to be tested.
Returns:
true if obj is a valid value for for the parameter described by this OpenMBeanAttributeInfoSupport instance, false otherwise.

equals sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.equals(java.lang.Object)

public boolean equals(Object sample code for java.lang.Object definition code for java.lang.Object  obj)
Compares the specified obj parameter with this OpenMBeanAttributeInfoSupport instance for equality.

Returns true if and only if all of the following statements are true:

This ensures that this equals method works properly for obj parameters which are different implementations of the OpenMBeanAttributeInfo interface.
 

Specified by:
equals sample code for javax.management.openmbean.OpenMBeanAttributeInfo.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfo.equals(java.lang.Object) in interface OpenMBeanAttributeInfo sample code for javax.management.openmbean.OpenMBeanAttributeInfo definition code for javax.management.openmbean.OpenMBeanAttributeInfo
Specified by:
equals sample code for javax.management.openmbean.OpenMBeanParameterInfo.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfo.equals(java.lang.Object) in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Overrides:
equals sample code for javax.management.MBeanAttributeInfo.equals(java.lang.Object) definition code for javax.management.MBeanAttributeInfo.equals(java.lang.Object) in class MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo
Parameters:
obj - the object to be compared for equality with this OpenMBeanAttributeInfoSupport instance;
Returns:
true if the specified object is equal to this OpenMBeanAttributeInfoSupport instance.
See Also:
Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

hashCode sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hashCode() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.hashCode()

public int hashCode()
Returns the hash code value for this OpenMBeanAttributeInfoSupport instance.

The hash code of an OpenMBeanAttributeInfoSupport instance is the sum of the hash codes of all elements of information used in equals comparisons (ie: its name, its open type, and its default, min, max and legal values).

This ensures that t1.equals(t2) implies that t1.hashCode()==t2.hashCode() for any two OpenMBeanAttributeInfoSupport instances t1 and t2, as required by the general contract of the method Object.hashCode() sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() .

However, note that another instance of a class implementing the OpenMBeanAttributeInfo interface may be equal to this OpenMBeanAttributeInfoSupport instance as defined by equals(java.lang.Object) sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.equals(java.lang.Object) , but may have a different hash code if it is calculated differently.

As OpenMBeanAttributeInfoSupport instances are immutable, the hash code for this instance is calculated once, on the first call to hashCode, and then the same value is returned for subsequent calls.

Specified by:
hashCode sample code for javax.management.openmbean.OpenMBeanAttributeInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.hashCode() in interface OpenMBeanAttributeInfo sample code for javax.management.openmbean.OpenMBeanAttributeInfo definition code for javax.management.openmbean.OpenMBeanAttributeInfo
Specified by:
hashCode sample code for javax.management.openmbean.OpenMBeanParameterInfo.hashCode() definition code for javax.management.openmbean.OpenMBeanParameterInfo.hashCode() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Overrides:
hashCode sample code for javax.management.MBeanAttributeInfo.hashCode() definition code for javax.management.MBeanAttributeInfo.hashCode() in class MBeanAttributeInfo sample code for javax.management.MBeanAttributeInfo definition code for javax.management.MBeanAttributeInfo
Returns:
the hash code value for this OpenMBeanAttributeInfoSupport instance
See Also:
Object.equals(java.lang.Object) sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , Hashtable sample code for java.util.Hashtable definition code for java.util.Hashtable

toString sample code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.toString() definition code for javax.management.openmbean.OpenMBeanAttributeInfoSupport.toString()

public String sample code for java.lang.String definition code for java.lang.String  toString()
Returns a string representation of this OpenMBeanAttributeInfoSupport instance.

The string representation consists of the name of this class (ie javax.management.openmbean.OpenMBeanAttributeInfoSupport), the string representation of the name and open type of the described parameter, and the string representation of its default, min, max and legal values.

As OpenMBeanAttributeInfoSupport instances are immutable, the string representation for this instance is calculated once, on the first call to toString, and then the same value is returned for subsequent calls.

Specified by:
toString sample code for javax.management.openmbean.OpenMBeanAttributeInfo.toString() definition code for javax.management.openmbean.OpenMBeanAttributeInfo.toString() in interface OpenMBeanAttributeInfo sample code for javax.management.openmbean.OpenMBeanAttributeInfo definition code for javax.management.openmbean.OpenMBeanAttributeInfo
Specified by:
toString sample code for javax.management.openmbean.OpenMBeanParameterInfo.toString() definition code for javax.management.openmbean.OpenMBeanParameterInfo.toString() in interface OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo
Overrides:
toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() in class Object sample code for java.lang.Object definition code for java.lang.Object
Returns:
a string representation of this OpenMBeanAttributeInfoSupport instance