public interface NodeAttribute
Modifier and Type | Method and Description |
---|---|
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
|
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 optionalNodeAttribute defaultValue(String defaultValue)
defaultValue
- the default valueCopyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.