Package org.apache.tomcat.util.modeler
Class AttributeInfo
- java.lang.Object
-
- org.apache.tomcat.util.modeler.FeatureInfo
-
- org.apache.tomcat.util.modeler.AttributeInfo
-
- All Implemented Interfaces:
java.io.Serializable
public class AttributeInfo extends FeatureInfo
Internal configuration information for anAttributedescriptor.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringdisplayNameHuman-readable display name for this attribute.protected java.lang.StringgetMethodName of the getter method for this attribute.protected booleanisWhether this is a boolean attribute with an "is" getter.protected booleanreadableWhether this attribute can be read by management applications.protected java.lang.StringsetMethodName of the setter method for this attribute.protected booleanwriteableWhether this attribute can be written by management applications.-
Fields inherited from class org.apache.tomcat.util.modeler.FeatureInfo
description, info, name, type
-
-
Constructor Summary
Constructors Constructor Description AttributeInfo()Constructs a new AttributeInfo instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDisplayName()Returns the display name of this attribute.java.lang.StringgetGetMethod()Returns the name of the property getter method, generating a default if not explicitly set.java.lang.StringgetSetMethod()Returns the name of the property setter method, generating a default if not explicitly set.booleanisIs()Is this a boolean attribute with an "is" getter?booleanisReadable()Is this attribute readable by management applications?booleanisWriteable()Is this attribute writable by management applications?voidsetDisplayName(java.lang.String displayName)Sets the display name of this attribute.voidsetGetMethod(java.lang.String getMethod)Sets the name of the property getter method.voidsetIs(boolean is)Sets whether this is a boolean attribute with an "is" getter.voidsetReadable(boolean readable)Sets whether this attribute is readable by management applications.voidsetSetMethod(java.lang.String setMethod)Sets the name of the property setter method.voidsetWriteable(boolean writeable)Sets whether this attribute is writable by management applications.-
Methods inherited from class org.apache.tomcat.util.modeler.FeatureInfo
getDescription, getName, getType, setDescription, setName, setType
-
-
-
-
Field Detail
-
displayName
protected java.lang.String displayName
Human-readable display name for this attribute.
-
getMethod
protected java.lang.String getMethod
Name of the getter method for this attribute.
-
setMethod
protected java.lang.String setMethod
Name of the setter method for this attribute.
-
readable
protected boolean readable
Whether this attribute can be read by management applications.
-
writeable
protected boolean writeable
Whether this attribute can be written by management applications.
-
is
protected boolean is
Whether this is a boolean attribute with an "is" getter.
-
-
Method Detail
-
getDisplayName
public java.lang.String getDisplayName()
Returns the display name of this attribute.- Returns:
- the display name of this attribute
-
setDisplayName
public void setDisplayName(java.lang.String displayName)
Sets the display name of this attribute.- Parameters:
displayName- the display name
-
getGetMethod
public java.lang.String getGetMethod()
Returns the name of the property getter method, generating a default if not explicitly set.- Returns:
- the name of the property getter method
-
setGetMethod
public void setGetMethod(java.lang.String getMethod)
Sets the name of the property getter method.- Parameters:
getMethod- the getter method name
-
isIs
public boolean isIs()
Is this a boolean attribute with an "is" getter?- Returns:
trueif this is a boolean attribute with an "is" getter
-
setIs
public void setIs(boolean is)
Sets whether this is a boolean attribute with an "is" getter.- Parameters:
is-trueif this is a boolean attribute with an "is" getter
-
isReadable
public boolean isReadable()
Is this attribute readable by management applications?- Returns:
trueif readable
-
setReadable
public void setReadable(boolean readable)
Sets whether this attribute is readable by management applications.- Parameters:
readable-trueif readable
-
getSetMethod
public java.lang.String getSetMethod()
Returns the name of the property setter method, generating a default if not explicitly set.- Returns:
- the name of the property setter method
-
setSetMethod
public void setSetMethod(java.lang.String setMethod)
Sets the name of the property setter method.- Parameters:
setMethod- the setter method name
-
isWriteable
public boolean isWriteable()
Is this attribute writable by management applications?- Returns:
trueif writable
-
setWriteable
public void setWriteable(boolean writeable)
Sets whether this attribute is writable by management applications.- Parameters:
writeable-trueif writable
-
-