org.apache.commons.modeler
Class AttributeInfo

java.lang.Object
  extended byorg.apache.commons.modeler.FeatureInfo
      extended byorg.apache.commons.modeler.AttributeInfo
All Implemented Interfaces:
Serializable

public class AttributeInfo
extends FeatureInfo
implements Serializable

Internal configuration information for an Attribute descriptor.

Version:
$Revision: 155428 $ $Date: 2005-02-26 08:12:25 -0500 (Sat, 26 Feb 2005) $
See Also:
Serialized Form

Field Summary
protected  String defaultStringValue
           
protected  String displayName
           
protected  String getMethod
           
protected  Method getMethodObj
           
protected  javax.management.modelmbean.ModelMBeanAttributeInfo info
          The ModelMBeanAttributeInfo object that corresponds to this AttributeInfo instance.
protected  boolean is
           
protected  String persist
           
protected  boolean readable
           
protected  String setMethod
           
protected  Method setMethodObj
           
protected  String type
           
protected  boolean writeable
           
 
Fields inherited from class org.apache.commons.modeler.FeatureInfo
description, fields, 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.
 String getDefault()
          Default value.
 String getDisplayName()
          The display name of this attribute.
 String getGetMethod()
          The name of the property getter method, if non-standard.
 Method getGetMethodObj()
           
 String getPersist()
          Persistence policy.
 String getSetMethod()
          The name of the property setter method, if non-standard.
 Method getSetMethodObj()
           
 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(String defaultStringValue)
           
 void setDescription(String description)
          Override the description property setter.
 void setDisplayName(String displayName)
           
 void setGetMethod(String getMethod)
           
 void setGetMethodObj(Method getMethodObj)
           
 void setIs(boolean is)
           
 void setName(String name)
          Override the name property setter.
 void setPersist(String persist)
           
 void setReadable(boolean readable)
           
 void setSetMethod(String setMethod)
           
 void setSetMethodObj(Method setMethodObj)
           
 void setType(String type)
           
 void setWriteable(boolean writeable)
           
 String toString()
          Return a string representation of this attribute 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

info

protected transient javax.management.modelmbean.ModelMBeanAttributeInfo info
The ModelMBeanAttributeInfo object that corresponds to this AttributeInfo instance.


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
Constructor Detail

AttributeInfo

public AttributeInfo()
Method Detail

setDescription

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

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

setName

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

Overrides:
setName in class FeatureInfo
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 javax.management.modelmbean.ModelMBeanAttributeInfo createAttributeInfo()
Create and return a ModelMBeanAttributeInfo object that corresponds to the attribute described by this instance.


toString

public String toString()
Return a string representation of this attribute descriptor.



Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.