|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.commons.modeler.FeatureInfo | +--org.apache.commons.modeler.AttributeInfo
Internal configuration information for an Attribute
descriptor.
Field Summary | |
protected java.lang.String |
displayName
The display name of this attribute. |
protected java.lang.String |
getMethod
The name of the property getter method, if non-standard. |
(package private) javax.management.modelmbean.ModelMBeanAttributeInfo |
info
The ModelMBeanAttributeInfo object that corresponds
to this AttributeInfo instance. |
protected boolean |
is
Is this a boolean attribute with an "is" getter? |
protected boolean |
readable
Is this attribute readable by management applications? |
protected java.lang.String |
setMethod
The name of the property setter method, if non-standard. |
protected java.lang.String |
type
The fully qualified Java class name of this attribute. |
protected boolean |
writeable
Is this attribute writeable by management applications? |
Fields inherited from class org.apache.commons.modeler.FeatureInfo |
description, name |
Constructor Summary | |
AttributeInfo()
|
Method Summary | |
javax.management.modelmbean.ModelMBeanAttributeInfo |
createAttributeInfo()
Create and return a ModelMBeanAttributeInfo object that
corresponds to the attribute described by this instance. |
java.lang.String |
getDisplayName()
|
java.lang.String |
getGetMethod()
|
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 |
getSetMethod()
|
java.lang.String |
getType()
|
boolean |
isIs()
|
boolean |
isReadable()
|
boolean |
isWriteable()
|
void |
setDescription(java.lang.String description)
Override the description property setter. |
void |
setDisplayName(java.lang.String displayName)
|
void |
setGetMethod(java.lang.String getMethod)
|
void |
setIs(boolean is)
|
void |
setName(java.lang.String name)
Override the name property setter. |
void |
setReadable(boolean readable)
|
void |
setSetMethod(java.lang.String setMethod)
|
void |
setType(java.lang.String type)
|
void |
setWriteable(boolean writeable)
|
java.lang.String |
toString()
Return a string representation of this attribute descriptor. |
Methods inherited from class org.apache.commons.modeler.FeatureInfo |
getDescription, getName |
Methods inherited from class java.lang.Object |
|
Field Detail |
javax.management.modelmbean.ModelMBeanAttributeInfo info
ModelMBeanAttributeInfo
object that corresponds
to this AttributeInfo
instance.protected java.lang.String displayName
protected java.lang.String getMethod
protected boolean is
protected boolean readable
protected java.lang.String setMethod
protected java.lang.String type
protected boolean writeable
Constructor Detail |
public AttributeInfo()
Method Detail |
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 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 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?
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |