FileDocCategorySizeDatePackage
MBeanParameterInfo.javaAPI DocJava SE 6 API3807Tue Jun 10 00:26:12 BST 2008javax.management

MBeanParameterInfo

public class MBeanParameterInfo extends MBeanFeatureInfo implements Cloneable
Describes an argument of an operation exposed by an MBean. Instances of this class are immutable. Subclasses may be mutable but this is not recommended.
since
1.5

Fields Summary
static final long
serialVersionUID
static final MBeanParameterInfo[]
NO_PARAMS
private final String
type
Constructors Summary
public MBeanParameterInfo(String name, String type, String description)
Constructs an MBeanParameterInfo object.

param
name The name of the data
param
type The type or class name of the data
param
description A human readable description of the data. Optional.

     
   
                                        
      
			       
			        
        this(name, type, description, (Descriptor) null);
    
public MBeanParameterInfo(String name, String type, String description, Descriptor descriptor)
Constructs an MBeanParameterInfo object.

param
name The name of the data
param
type The type or class name of the data
param
description A human readable description of the data. Optional.
param
descriptor The descriptor for the operation. This may be null which is equivalent to an empty descriptor.
since
1.6

	
	super(name, description, descriptor);

	this.type = type;
    
Methods Summary
public java.lang.Objectclone()

Returns a shallow clone of this instance. The clone is obtained by simply calling super.clone(), thus calling the default native shallow cloning mechanism implemented by Object.clone(). No deeper cloning of any internal field is made.

Since this class is immutable, cloning is chiefly of interest to subclasses.

	 try {
	     return super.clone() ;
	 } catch (CloneNotSupportedException e) {
	     // should not happen as this class is cloneable
	     return null;
	 }
     
public booleanequals(java.lang.Object o)
Compare this MBeanParameterInfo to another.

param
o the object to compare to.
return
true if and only if o is an MBeanParameterInfo such that its {@link #getName()}, {@link #getType()}, {@link #getDescriptor()}, and {@link #getDescription()} values are equal (not necessarily identical) to those of this MBeanParameterInfo.

	if (o == this)
	    return true;
	if (!(o instanceof MBeanParameterInfo))
	    return false;
	MBeanParameterInfo p = (MBeanParameterInfo) o;
	return (p.getName().equals(getName()) &&
		p.getType().equals(getType()) &&
		p.getDescription().equals(getDescription()) &&
                p.getDescriptor().equals(getDescriptor()));
    
public java.lang.StringgetType()
Returns the type or class name of the data.

return
the type string.

	return type;
    
public inthashCode()

	return getName().hashCode() ^ getType().hashCode();
    
public java.lang.StringtoString()

        return
            getClass().getName() + "[" +
            "description=" + getDescription() + ", " +
            "name=" + getName() + ", " +
            "type=" + getType() + ", " +
            "descriptor=" + getDescriptor() +
            "]";