Class AttributeInfo
java.lang.Object
org.apache.tomcat.util.modeler.FeatureInfo
org.apache.tomcat.util.modeler.AttributeInfo
- All Implemented Interfaces:
Serializable
Internal configuration information for an
Attribute descriptor.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringHuman-readable display name for this attribute.protected StringName of the getter method for this attribute.protected booleanWhether this is a boolean attribute with an "is" getter.protected booleanWhether this attribute can be read by management applications.protected StringName of the setter method for this attribute.protected booleanWhether this attribute can be written by management applications.Fields inherited from class FeatureInfo
description, info, name, type -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the display name of this attribute.Returns the name of the property getter method, generating a default if not explicitly set.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?booleanIs this attribute readable by management applications?booleanIs this attribute writable by management applications?voidsetDisplayName(String displayName) Sets the display name of this attribute.voidsetGetMethod(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(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 FeatureInfo
getDescription, getName, getType, setDescription, setName, setType
-
Field Details
-
displayName
Human-readable display name for this attribute. -
getMethod
Name of the getter method for this attribute. -
setMethod
Name of the setter method for this attribute. -
readable
protected boolean readableWhether this attribute can be read by management applications. -
writeable
protected boolean writeableWhether this attribute can be written by management applications. -
is
protected boolean isWhether this is a boolean attribute with an "is" getter.
-
-
Constructor Details
-
AttributeInfo
public AttributeInfo()Constructs a new AttributeInfo instance.
-
-
Method Details
-
getDisplayName
Returns the display name of this attribute.- Returns:
- the display name of this attribute
-
setDisplayName
Sets the display name of this attribute.- Parameters:
displayName- the display name
-
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
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
Returns the name of the property setter method, generating a default if not explicitly set.- Returns:
- the name of the property setter method
-
setSetMethod
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
-