|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeAttribute
Interface that abstracts the idea of an attribute. An attribute has a name, a value, boolean indicating if its an optional attribute and a default value
Method Summary | |
---|---|
NodeAttribute |
defaultValue(String defaultValue)
Builder convenience method for setting defaultValue |
String |
getDefaultValue()
Returns the default value of the attribute |
String |
getName()
Name of the attribute |
String |
getValue()
Value of the attribute |
boolean |
isOptional()
Returns true if the attribute is optional, otherwise false |
NodeAttribute |
optional(boolean optional)
Builder convenience method for setting optional |
void |
setDefaultValue(String defaultValue)
Default value setter |
void |
setOptional(boolean optional)
Sets this attribute to optional or not |
void |
setValue(String value)
Setter for value |
Method Detail |
---|
String getName()
String getValue()
boolean isOptional()
String getDefaultValue()
void setOptional(boolean optional)
optional
- true if this attribute is optionalvoid setDefaultValue(String defaultValue)
defaultValue
- the default valuevoid setValue(String value)
value
- the new valueNodeAttribute optional(boolean optional)
optional
- true if optional
NodeAttribute defaultValue(String defaultValue)
defaultValue
- the default value
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |