org.apache.commons.modeler
Class ParameterInfo

java.lang.Object
  |
  +--org.apache.commons.modeler.FeatureInfo
        |
        +--org.apache.commons.modeler.ParameterInfo
All Implemented Interfaces:
java.io.Serializable

public class ParameterInfo
extends FeatureInfo
implements java.io.Serializable

Internal configuration information for a Parameter descriptor.

Version:
$Revision: 1.5 $ $Date: 2003/07/20 07:35:12 $
Author:
Craig R. McClanahan
See Also:
Serialized Form

Field Summary
(package private)  MBeanParameterInfo info
          The MBeanParameterInfo object that corresponds to this ParameterInfo instance.
(package private) static long serialVersionUID
           
protected  java.lang.String type
           
 
Fields inherited from class org.apache.commons.modeler.FeatureInfo
description, fields, name
 
Constructor Summary
ParameterInfo()
          Standard zero-arguments constructor.
ParameterInfo(java.lang.String name, java.lang.String type, java.lang.String description)
          Special constructor for setting up parameters programatically.
 
Method Summary
 MBeanParameterInfo createParameterInfo()
          Create and return a MBeanParameterInfo object that corresponds to the parameter described by this instance.
 java.lang.String getType()
          The fully qualified Java class name of this parameter.
 void setDescription(java.lang.String description)
          Override the description property setter.
 void setName(java.lang.String name)
          Override the name property setter.
 void setType(java.lang.String type)
           
 java.lang.String toString()
          Return a string representation of this parameter descriptor.
 
Methods inherited from class org.apache.commons.modeler.FeatureInfo
addField, addFields, getDescription, getFields, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values

info

transient MBeanParameterInfo info
The MBeanParameterInfo object that corresponds to this ParameterInfo instance.


type

protected java.lang.String type
Constructor Detail

ParameterInfo

public ParameterInfo()
Standard zero-arguments constructor.


ParameterInfo

public ParameterInfo(java.lang.String name,
                     java.lang.String type,
                     java.lang.String description)
Special constructor for setting up parameters programatically.

Parameters:
name - Name of this parameter
type - Java class of this parameter
description - Description of this parameter
Method Detail

setDescription

public void setDescription(java.lang.String description)
Override the description property setter.

Overrides:
setDescription in class FeatureInfo
Parameters:
description - The new description

setName

public void setName(java.lang.String name)
Override the name property setter.

Overrides:
setName in class FeatureInfo
Parameters:
name - The new name

getType

public java.lang.String getType()
The fully qualified Java class name of this parameter.


setType

public void setType(java.lang.String type)

createParameterInfo

public MBeanParameterInfo createParameterInfo()
Create and return a MBeanParameterInfo object that corresponds to the parameter described by this instance.


toString

public java.lang.String toString()
Return a string representation of this parameter descriptor.

Overrides:
toString in class java.lang.Object


Copyright (c) 2001-2003 - Apache Software Foundation