org.jboss.test.jmx.compliance.openmbean
Class OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo

java.lang.Object
  extended byorg.jboss.test.jmx.compliance.openmbean.OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo
All Implemented Interfaces:
javax.management.openmbean.OpenMBeanParameterInfo
Direct Known Subclasses:
OpenMBeanInfoSupportTestCase.MyOpenMBeanAttributeInfoSupport
Enclosing class:
OpenMBeanInfoSupportTestCase

public static class OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo
extends Object
implements javax.management.openmbean.OpenMBeanParameterInfo


Constructor Summary
OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo()
           
 
Method Summary
 boolean equals(Object o)
          Compares an object for equality with the implementing class.
 Object getDefaultValue()
          Retrieve the default value for this parameter or null if there is no default
 String getDescription()
          Retrieve a human readable description of the open MBean parameter the implementation of this interface describes.
 Set getLegalValues()
          Retrieve the legal values values for this parameter or null if this is not specified
 Comparable getMaxValue()
          Retrieve the maximum values values for this parameter or null if this is not specified
 Comparable getMinValue()
          Retrieve the minimum values values for this parameter or null if this is not specified
 String getName()
          Retrieve the name of the parameter described.
 javax.management.openmbean.OpenType 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(Object o)
          Tests whether an object is acceptable as a paramter value
 String toString()
          A string representation of the open mbean parameter info.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo

public OpenMBeanInfoSupportTestCase.MyOpenMBeanParameterInfo()
Method Detail

equals

public boolean equals(Object o)
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Compares an object for equality with the implementing class.

The object is not null
The object implements the open mbean attribute info interface
The parameter names are equal
The open types are equal
The default, min, max and legal values are equal

Specified by:
equals in interface javax.management.openmbean.OpenMBeanParameterInfo

getDefaultValue

public Object getDefaultValue()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Retrieve the default value for this parameter or null if there is no default

Specified by:
getDefaultValue in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the default value

getDescription

public String getDescription()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Retrieve a human readable description of the open MBean parameter the implementation of this interface describes.

Specified by:
getDescription in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the description.

getLegalValues

public Set getLegalValues()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Retrieve the legal values values for this parameter or null if this is not specified

Specified by:
getLegalValues in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the legal value

getMaxValue

public Comparable getMaxValue()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Retrieve the maximum values values for this parameter or null if this is not specified

Specified by:
getMaxValue in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the maximum value

getMinValue

public Comparable getMinValue()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Retrieve the minimum values values for this parameter or null if this is not specified

Specified by:
getMinValue in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the minimum value

getName

public String getName()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Retrieve the name of the parameter described.

Specified by:
getName in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the name.

getOpenType

public javax.management.openmbean.OpenType getOpenType()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Retrieve the open type for this parameter

Specified by:
getOpenType in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
the open type.

hasDefaultValue

public boolean hasDefaultValue()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Discover wether this parameter has a default value specified

Specified by:
hasDefaultValue in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true when a default value is specified or false otherwise

hasLegalValues

public boolean hasLegalValues()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Discover wether this parameter has legal values specified

Specified by:
hasLegalValues in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true when the legal values are specified or false otherwise

hashCode

public int hashCode()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Generates a hashcode for the implementation.

The sum of the hashCodes for the elements mentioned in the equals method

Specified by:
hashCode in interface javax.management.openmbean.OpenMBeanParameterInfo

hasMaxValue

public boolean hasMaxValue()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Discover wether this parameter has a maximum value specified

Specified by:
hasMaxValue in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true when a maximum value is specified or false otherwise

hasMinValue

public boolean hasMinValue()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Discover wether this parameter has a minimum value specified

Specified by:
hasMinValue in interface javax.management.openmbean.OpenMBeanParameterInfo
Returns:
true when a minimum value is specified or false otherwise

isValue

public boolean isValue(Object o)
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
Tests whether an object is acceptable as a paramter value

Specified by:
isValue in interface javax.management.openmbean.OpenMBeanParameterInfo
Parameters:
o - the object to test
Returns:
true when it is a valid value, or false otherwise

toString

public String toString()
Description copied from interface: javax.management.openmbean.OpenMBeanParameterInfo
A string representation of the open mbean parameter info.

It is made up of implementation class and the values mentioned in the equals method

Specified by:
toString in interface javax.management.openmbean.OpenMBeanParameterInfo


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.