public class AttributeInfo extends FeatureInfo implements java.io.Serializable
Internal configuration information for an Attribute
descriptor.
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
defaultStringValue |
protected java.lang.String |
displayName |
protected java.lang.String |
getMethod |
protected java.lang.reflect.Method |
getMethodObj |
protected javax.management.modelmbean.ModelMBeanAttributeInfo |
info
The
ModelMBeanAttributeInfo object that corresponds
to this AttributeInfo instance. |
protected boolean |
is |
protected java.lang.String |
persist |
protected boolean |
readable |
(package private) static long |
serialVersionUID |
protected java.lang.String |
setMethod |
protected java.lang.reflect.Method |
setMethodObj |
protected java.lang.String |
type |
protected boolean |
writeable |
description, fields, name
Constructor and Description |
---|
AttributeInfo() |
Modifier and Type | Method and Description |
---|---|
javax.management.modelmbean.ModelMBeanAttributeInfo |
createAttributeInfo()
Create and return a
ModelMBeanAttributeInfo object that
corresponds to the attribute described by this instance. |
java.lang.String |
getDefault()
Default value.
|
java.lang.String |
getDisplayName()
The display name of this attribute.
|
java.lang.String |
getGetMethod()
The name of the property getter method, if non-standard.
|
java.lang.reflect.Method |
getGetMethodObj() |
private java.lang.String |
getMethodName(java.lang.String name,
boolean getter,
boolean is)
Create and return the name of a default property getter or setter
method, according to the specified values.
|
java.lang.String |
getPersist()
Persistence policy.
|
java.lang.String |
getSetMethod()
The name of the property setter method, if non-standard.
|
java.lang.reflect.Method |
getSetMethodObj() |
java.lang.String |
getType()
The fully qualified Java class name of this attribute.
|
boolean |
isIs()
Is this a boolean attribute with an "is" getter?
|
boolean |
isReadable()
Is this attribute readable by management applications?
|
boolean |
isWriteable()
Is this attribute writeable by management applications?
|
void |
setDefault(java.lang.String defaultStringValue) |
void |
setDescription(java.lang.String description)
Override the
description property setter. |
void |
setDisplayName(java.lang.String displayName) |
void |
setGetMethod(java.lang.String getMethod) |
void |
setGetMethodObj(java.lang.reflect.Method getMethodObj) |
void |
setIs(boolean is) |
void |
setName(java.lang.String name)
Override the
name property setter. |
void |
setPersist(java.lang.String persist) |
void |
setReadable(boolean readable) |
void |
setSetMethod(java.lang.String setMethod) |
void |
setSetMethodObj(java.lang.reflect.Method setMethodObj) |
void |
setType(java.lang.String type) |
void |
setWriteable(boolean writeable) |
java.lang.String |
toString()
Return a string representation of this attribute descriptor.
|
addField, addFields, getDescription, getFields, getName
static final long serialVersionUID
protected transient javax.management.modelmbean.ModelMBeanAttributeInfo info
ModelMBeanAttributeInfo
object that corresponds
to this AttributeInfo
instance.protected java.lang.String displayName
protected java.lang.String getMethod
protected java.lang.String setMethod
protected transient java.lang.reflect.Method getMethodObj
protected transient java.lang.reflect.Method setMethodObj
protected boolean readable
protected boolean writeable
protected boolean is
protected java.lang.String type
protected java.lang.String persist
protected java.lang.String defaultStringValue
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 getDisplayName()
public void setDisplayName(java.lang.String displayName)
public java.lang.String getGetMethod()
public void setGetMethod(java.lang.String getMethod)
public java.lang.reflect.Method getGetMethodObj()
public void setGetMethodObj(java.lang.reflect.Method getMethodObj)
public java.lang.reflect.Method getSetMethodObj()
public void setSetMethodObj(java.lang.reflect.Method setMethodObj)
public boolean isIs()
public void setIs(boolean is)
public boolean isReadable()
public void setReadable(boolean readable)
public java.lang.String getSetMethod()
public void setSetMethod(java.lang.String setMethod)
public java.lang.String getType()
public void setType(java.lang.String type)
public boolean isWriteable()
public void setWriteable(boolean writeable)
public java.lang.String getPersist()
public void setPersist(java.lang.String persist)
public java.lang.String getDefault()
public void setDefault(java.lang.String defaultStringValue)
public javax.management.modelmbean.ModelMBeanAttributeInfo createAttributeInfo()
ModelMBeanAttributeInfo
object that
corresponds to the attribute described by this instance.public java.lang.String toString()
toString
in class java.lang.Object
private java.lang.String getMethodName(java.lang.String name, boolean getter, boolean is)
name
- Name of the property itselfgetter
- Do we want a get method (versus a set method)?is
- If returning a getter, do we want the "is" form?Copyright (c) 2001-2003 - Apache Software Foundation