public class OperationInfo extends FeatureInfo implements java.io.Serializable
Internal configuration information for an Operation
descriptor.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
impact |
(package private) javax.management.modelmbean.ModelMBeanOperationInfo |
info
The
ModelMBeanOperationInfo object that corresponds
to this OperationInfo instance. |
protected ParameterInfo[] |
parameters |
protected java.lang.String |
returnType |
protected java.lang.String |
role |
(package private) static long |
serialVersionUID |
description, fields, name
Constructor and Description |
---|
OperationInfo()
Standard zero-arguments constructor.
|
OperationInfo(java.lang.String name,
boolean getter,
java.lang.String type)
Special constructor for setting up getter and setter operations.
|
Modifier and Type | Method and Description |
---|---|
void |
addParameter(ParameterInfo parameter)
Add a new parameter to the set of arguments for this operation.
|
javax.management.modelmbean.ModelMBeanOperationInfo |
createOperationInfo()
Create and return a
ModelMBeanOperationInfo object that
corresponds to the attribute described by this instance. |
java.lang.String |
getImpact()
The "impact" of this operation, which should be a (case-insensitive)
string value "ACTION", "ACTION_INFO", "INFO", or "UNKNOWN".
|
java.lang.String |
getReturnType()
The fully qualified Java class name of the return type for this
operation.
|
java.lang.String |
getRole()
The role of this operation ("getter", "setter", "operation", or
"constructor").
|
ParameterInfo[] |
getSignature()
The set of parameters for this operation.
|
void |
setDescription(java.lang.String description)
Override the
description property setter. |
void |
setImpact(java.lang.String impact) |
void |
setName(java.lang.String name)
Override the
name property setter. |
void |
setReturnType(java.lang.String returnType) |
void |
setRole(java.lang.String role) |
java.lang.String |
toString()
Return a string representation of this operation descriptor.
|
addField, addFields, getDescription, getFields, getName
static final long serialVersionUID
transient javax.management.modelmbean.ModelMBeanOperationInfo info
ModelMBeanOperationInfo
object that corresponds
to this OperationInfo
instance.protected java.lang.String impact
protected java.lang.String role
protected java.lang.String returnType
protected ParameterInfo[] parameters
public OperationInfo()
public OperationInfo(java.lang.String name, boolean getter, java.lang.String type)
name
- Name of this operationgetter
- Is this a getter (as opposed to a setter)?type
- Data type of the return value (if this is a getter)
or the parameter (if this is a setter)public void setDescription(java.lang.String description)
description
property setter.setDescription
in class FeatureInfo
description
- The new descriptionpublic void setName(java.lang.String name)
name
property setter.setName
in class FeatureInfo
name
- The new namepublic java.lang.String getImpact()
public void setImpact(java.lang.String impact)
public java.lang.String getRole()
public void setRole(java.lang.String role)
public java.lang.String getReturnType()
public void setReturnType(java.lang.String returnType)
public ParameterInfo[] getSignature()
public void addParameter(ParameterInfo parameter)
parameter
- The new parameter descriptorpublic javax.management.modelmbean.ModelMBeanOperationInfo createOperationInfo()
ModelMBeanOperationInfo
object that
corresponds to the attribute described by this instance.public java.lang.String toString()
toString
in class java.lang.Object
Copyright (c) 2001-2003 - Apache Software Foundation