Package org.apache.commons.modeler
Class AttributeInfo
- java.lang.Object
-
- org.apache.commons.modeler.FeatureInfo
-
- org.apache.commons.modeler.AttributeInfo
-
- All Implemented Interfaces:
Serializable
public class AttributeInfo extends FeatureInfo implements Serializable
Internal configuration information for an
Attributedescriptor.- Version:
- $Revision: 480402 $ $Date: 2006-11-29 04:43:23 +0000 (Wed, 29 Nov 2006) $
- Author:
- Craig R. McClanahan
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdefaultStringValueprotected StringdisplayNameprotected StringgetMethodprotected MethodgetMethodObjprotected ModelMBeanAttributeInfoinfoTheModelMBeanAttributeInfoobject that corresponds to thisAttributeInfoinstance.protected booleanisprotected Stringpersistprotected booleanreadableprotected StringsetMethodprotected MethodsetMethodObjprotected Stringtypeprotected booleanwriteable-
Fields inherited from class org.apache.commons.modeler.FeatureInfo
description, fields, name
-
-
Constructor Summary
Constructors Constructor Description AttributeInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelMBeanAttributeInfocreateAttributeInfo()Create and return aModelMBeanAttributeInfoobject that corresponds to the attribute described by this instance.StringgetDefault()Default value.StringgetDisplayName()The display name of this attribute.StringgetGetMethod()The name of the property getter method, if non-standard.MethodgetGetMethodObj()StringgetPersist()Persistence policy.StringgetSetMethod()The name of the property setter method, if non-standard.MethodgetSetMethodObj()StringgetType()The fully qualified Java class name of this attribute.booleanisIs()Is this a boolean attribute with an "is" getter?booleanisReadable()Is this attribute readable by management applications?booleanisWriteable()Is this attribute writeable by management applications?voidsetDefault(String defaultStringValue)voidsetDescription(String description)Override thedescriptionproperty setter.voidsetDisplayName(String displayName)voidsetGetMethod(String getMethod)voidsetGetMethodObj(Method getMethodObj)voidsetIs(boolean is)voidsetName(String name)Override thenameproperty setter.voidsetPersist(String persist)voidsetReadable(boolean readable)voidsetSetMethod(String setMethod)voidsetSetMethodObj(Method setMethodObj)voidsetType(String type)voidsetWriteable(boolean writeable)StringtoString()Return a string representation of this attribute descriptor.-
Methods inherited from class org.apache.commons.modeler.FeatureInfo
addField, addFields, getDescription, getFields, getName
-
-
-
-
Field Detail
-
info
protected transient ModelMBeanAttributeInfo info
TheModelMBeanAttributeInfoobject that corresponds to thisAttributeInfoinstance.
-
displayName
protected String displayName
-
getMethod
protected String getMethod
-
setMethod
protected String setMethod
-
getMethodObj
protected transient Method getMethodObj
-
setMethodObj
protected transient Method setMethodObj
-
readable
protected boolean readable
-
writeable
protected boolean writeable
-
is
protected boolean is
-
type
protected String type
-
persist
protected String persist
-
defaultStringValue
protected String defaultStringValue
-
-
Method Detail
-
setDescription
public void setDescription(String description)
Override thedescriptionproperty setter.- Overrides:
setDescriptionin classFeatureInfo- Parameters:
description- The new description
-
setName
public void setName(String name)
Override thenameproperty setter.- Overrides:
setNamein classFeatureInfo- Parameters:
name- The new name
-
getDisplayName
public String getDisplayName()
The display name of this attribute.
-
setDisplayName
public void setDisplayName(String displayName)
-
getGetMethod
public String getGetMethod()
The name of the property getter method, if non-standard.
-
setGetMethod
public void setGetMethod(String getMethod)
-
getGetMethodObj
public Method getGetMethodObj()
-
setGetMethodObj
public void setGetMethodObj(Method getMethodObj)
-
getSetMethodObj
public Method getSetMethodObj()
-
setSetMethodObj
public void setSetMethodObj(Method setMethodObj)
-
isIs
public boolean isIs()
Is this a boolean attribute with an "is" getter?
-
setIs
public void setIs(boolean is)
-
isReadable
public boolean isReadable()
Is this attribute readable by management applications?
-
setReadable
public void setReadable(boolean readable)
-
getSetMethod
public String getSetMethod()
The name of the property setter method, if non-standard.
-
setSetMethod
public void setSetMethod(String setMethod)
-
getType
public String getType()
The fully qualified Java class name of this attribute.
-
setType
public void setType(String type)
-
isWriteable
public boolean isWriteable()
Is this attribute writeable by management applications?
-
setWriteable
public void setWriteable(boolean writeable)
-
getPersist
public String getPersist()
Persistence policy. All persistent attributes should have this attribute set. Valid values: ???
-
setPersist
public void setPersist(String persist)
-
getDefault
public String getDefault()
Default value. If set, it can provide info to the user and it can be used by persistence mechanism to generate a more compact representation ( a value may not be saved if it's default )
-
setDefault
public void setDefault(String defaultStringValue)
-
createAttributeInfo
public ModelMBeanAttributeInfo createAttributeInfo()
Create and return aModelMBeanAttributeInfoobject that corresponds to the attribute described by this instance.
-
-