javax.management.openmbean
Class OpenMBeanParameterInfoSupport

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.MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo 
          extended by javax.management.openmbean.OpenMBeanParameterInfoSupport
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 , OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo

public class OpenMBeanParameterInfoSupport
extends MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo
implements OpenMBeanParameterInfo sample code for javax.management.openmbean.OpenMBeanParameterInfo definition code for javax.management.openmbean.OpenMBeanParameterInfo , Serializable sample code for java.io.Serializable definition code for java.io.Serializable

Describes a parameter used in one or more operations or constructors 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
OpenMBeanParameterInfoSupport sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType) (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)
          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 and description.
OpenMBeanParameterInfoSupport sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, 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, Object sample code for java.lang.Object definition code for 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 sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, java.lang.Object, java.lang.Comparable, java.lang.Comparable) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, 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, 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 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 sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, java.lang.Object, java.lang.Object[]) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.OpenMBeanParameterInfoSupport(java.lang.String, java.lang.String, javax.management.openmbean.OpenType, 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, 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 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 sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.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 OpenMBeanParameterInfoSupport instance for equality.
 Object sample code for java.lang.Object definition code for java.lang.Object getDefaultValue sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getDefaultValue() ()
          Returns the default value for the parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getLegalValues() ()
          Returns an unmodifiable Set of legal values for the parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getMaxValue() ()
          Returns the maximal value for the parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getMinValue() ()
          Returns the minimal value for the parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getOpenType() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getOpenType() ()
          Returns the open type for the values of the parameter described by this OpenMBeanParameterInfoSupport instance.
 boolean hasDefaultValue sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasDefaultValue() ()
          Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null default value for the described parameter, false otherwise.
 int hashCode sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hashCode() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hashCode() ()
          Returns the hash code value for this OpenMBeanParameterInfoSupport instance.
 boolean hasLegalValues sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasLegalValues() ()
          Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null set of legal values for the described parameter, false otherwise.
 boolean hasMaxValue sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasMaxValue() ()
          Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null maximal value for the described parameter, false otherwise.
 boolean hasMinValue sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasMinValue() ()
          Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null minimal value for the described parameter, false otherwise.
 boolean isValue sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.isValue(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.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 parameter described by this OpenMBeanParameterInfo instance.
 String sample code for java.lang.String definition code for java.lang.String toString sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.toString() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.toString() ()
          Returns a string representation of this OpenMBeanParameterInfoSupport instance.
 
Methods inherited from class javax.management.MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo
clone sample code for javax.management.MBeanParameterInfo.clone() definition code for javax.management.MBeanParameterInfo.clone() , getType sample code for javax.management.MBeanParameterInfo.getType() definition code for javax.management.MBeanParameterInfo.getType()
 
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.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

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

public OpenMBeanParameterInfoSupport(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)
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 and description.

Parameters:
name - cannot be a null or empty string.
description - cannot be a null or empty string.
openType - cannot be null.
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.

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

public OpenMBeanParameterInfoSupport(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,
                                     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 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.

Parameters:
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.
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.

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

public OpenMBeanParameterInfoSupport(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,
                                     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 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. 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 OpenMBeanParameterInfoSupport instance.

Parameters:
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.
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.

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

public OpenMBeanParameterInfoSupport(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,
                                     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 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. 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.
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.
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.OpenMBeanParameterInfoSupport.getOpenType() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.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 parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getDefaultValue()

public Object sample code for java.lang.Object definition code for java.lang.Object  getDefaultValue()
Returns the default value for the parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.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 parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getMinValue()

public Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  getMinValue()
Returns the minimal value for the parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.getMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.getMaxValue()

public Comparable sample code for java.lang.Comparable definition code for java.lang.Comparable  getMaxValue()
Returns the maximal value for the parameter described by this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.hasDefaultValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasDefaultValue()

public boolean hasDefaultValue()
Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null default value for the described parameter, 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.OpenMBeanParameterInfoSupport.hasLegalValues() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasLegalValues()

public boolean hasLegalValues()
Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null set of legal values for the described parameter, 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.OpenMBeanParameterInfoSupport.hasMinValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasMinValue()

public boolean hasMinValue()
Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null minimal value for the described parameter, 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.OpenMBeanParameterInfoSupport.hasMaxValue() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hasMaxValue()

public boolean hasMaxValue()
Returns true if this OpenMBeanParameterInfoSupport instance specifies a non-null maximal value for the described parameter, 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.OpenMBeanParameterInfoSupport.isValue(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.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 parameter described by this OpenMBeanParameterInfo 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 the parameter described by this OpenMBeanParameterInfo instance, false otherwise.

equals sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.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 OpenMBeanParameterInfoSupport 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 OpenMBeanParameterInfo interface.
 

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.MBeanParameterInfo.equals(java.lang.Object) definition code for javax.management.MBeanParameterInfo.equals(java.lang.Object) in class MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo
Parameters:
obj - the object to be compared for equality with this OpenMBeanParameterInfoSupport instance;
Returns:
true if the specified object is equal to this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.hashCode() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.hashCode()

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

The hash code of an OpenMBeanParameterInfoSupport 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 OpenMBeanParameterInfoSupport 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 OpenMBeanParameterInfo interface may be equal to this OpenMBeanParameterInfoSupport instance as defined by equals(java.lang.Object) sample code for javax.management.openmbean.OpenMBeanParameterInfoSupport.equals(java.lang.Object) definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.equals(java.lang.Object) , but may have a different hash code if it is calculated differently.

As OpenMBeanParameterInfoSupport 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.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.MBeanParameterInfo.hashCode() definition code for javax.management.MBeanParameterInfo.hashCode() in class MBeanParameterInfo sample code for javax.management.MBeanParameterInfo definition code for javax.management.MBeanParameterInfo
Returns:
the hash code value for this OpenMBeanParameterInfoSupport 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.OpenMBeanParameterInfoSupport.toString() definition code for javax.management.openmbean.OpenMBeanParameterInfoSupport.toString()

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

The string representation consists of the name of this class (ie javax.management.openmbean.OpenMBeanParameterInfoSupport), 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 OpenMBeanParameterInfoSupport 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.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 OpenMBeanParameterInfoSupport instance