Top Description Fields Constructors Methods
org.apache.tomcat.util.modeler

public Class AttributeInfo

extends FeatureInfo
Class Inheritance
Imports
javax.management.MBeanAttributeInfo

Internal configuration information for an Attribute descriptor.

Author
Craig R. McClanahan

Field Summary

Modifier and TypeField and Description
protected String
protected String
protected boolean
protected boolean
private static final long
protected String
protected boolean
Inherited from org.apache.tomcat.util.modeler.FeatureInfo:
descriptioninfonametype

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv MBeanAttributeInfo

Returns:

the attribute info
createAttributeInfo
()

Create and return a ModelMBeanAttributeInfo object that corresponds to the attribute described by this instance.

public String

Returns:

the display name of this attribute.
getDisplayName
()

public String

Returns:

the name of the property getter method, if non-standard.
getGetMethod
()

private String

Returns:

the method name
getMethodName
(String
Name of the property itself
name
,
boolean
Do we want a get method (versus a set method)?
getter
,
boolean
If returning a getter, do we want the "is" form?
is
)

Create and return the name of a default property getter or setter method, according to the specified values.

public String

Returns:

the name of the property setter method, if non-standard.
getSetMethod
()

public boolean

Returns:

true if this is a boolean attribute with an "is" getter
isIs
()

Is this a boolean attribute with an "is" getter?

public boolean

Returns:

true if readable
isReadable
()

Is this attribute readable by management applications?

public boolean

Returns:

true if writable
isWriteable
()

Is this attribute writable by management applications?

public void
setDisplayName(String displayName)

public void
setGetMethod(String getMethod)

public void
setIs(boolean is)

public void
setReadable(boolean readable)

public void
setSetMethod(String setMethod)

public void
setWriteable(boolean writeable)

Inherited from org.apache.tomcat.util.modeler.FeatureInfo:
getDescriptiongetNamegetTypesetDescriptionsetNamesetType

Field Detail

displayNameback to summary
protected String displayName
getMethodback to summary
protected String getMethod
isback to summary
protected boolean is
readableback to summary
protected boolean readable
serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.apache.tomcat.util.modeler.FeatureInfo.serialVersionUID.

setMethodback to summary
protected String setMethod
writeableback to summary
protected boolean writeable

Constructor Detail

AttributeInfoback to summary
public AttributeInfo()

Method Detail

createAttributeInfoback to summary
pack-priv MBeanAttributeInfo createAttributeInfo()

Create and return a ModelMBeanAttributeInfo object that corresponds to the attribute described by this instance.

Returns:MBeanAttributeInfo

the attribute info

getDisplayNameback to summary
public String getDisplayName()
Returns:String

the display name of this attribute.

getGetMethodback to summary
public String getGetMethod()
Returns:String

the name of the property getter method, if non-standard.

getMethodNameback to summary
private String getMethodName(String name, boolean getter, boolean is)

Create and return the name of a default property getter or setter method, according to the specified values.

Parameters
name:String

Name of the property itself

getter:boolean

Do we want a get method (versus a set method)?

is:boolean

If returning a getter, do we want the "is" form?

Returns:String

the method name

getSetMethodback to summary
public String getSetMethod()
Returns:String

the name of the property setter method, if non-standard.

isIsback to summary
public boolean isIs()

Is this a boolean attribute with an "is" getter?

Returns:boolean

true if this is a boolean attribute with an "is" getter

isReadableback to summary
public boolean isReadable()

Is this attribute readable by management applications?

Returns:boolean

true if readable

isWriteableback to summary
public boolean isWriteable()

Is this attribute writable by management applications?

Returns:boolean

true if writable

setDisplayNameback to summary
public void setDisplayName(String displayName)
setGetMethodback to summary
public void setGetMethod(String getMethod)
setIsback to summary
public void setIs(boolean is)
setReadableback to summary
public void setReadable(boolean readable)
setSetMethodback to summary
public void setSetMethod(String setMethod)
setWriteableback to summary
public void setWriteable(boolean writeable)