|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.config.generator.model.SimpleNodeAttribute
public class SimpleNodeAttribute
Implementation of the NodeAttribute
interface
Constructor Summary | |
---|---|
SimpleNodeAttribute(String name)
Constructor accepting the name of the attribute |
|
SimpleNodeAttribute(String name,
boolean value)
Constructor accepting name and boolean value of the attribute |
|
SimpleNodeAttribute(String name,
Enum value)
Constructor accepting name and Enum value of the attribute |
|
SimpleNodeAttribute(String name,
int value)
Constructor accepting name and int value of the attribute |
|
SimpleNodeAttribute(String name,
long value)
Constructor accepting name and long value of the attribute |
|
SimpleNodeAttribute(String name,
String value)
Constructor accepting name and String value of the attribute |
Method Summary | |
---|---|
SimpleNodeAttribute |
defaultValue(boolean defaultValue)
Same as defaultValue(String) using String.valueOf(defaultValue) |
SimpleNodeAttribute |
defaultValue(Enum defaultValue)
Same as defaultValue(String) using String.valueOf(defaultValue) |
SimpleNodeAttribute |
defaultValue(int defaultValue)
Same as defaultValue(String) using String.valueOf(defaultValue) |
SimpleNodeAttribute |
defaultValue(long defaultValue)
Same as defaultValue(String) using String.valueOf(defaultValue) |
SimpleNodeAttribute |
defaultValue(String defaultValue)
Builder convenience method for setting defaultValue |
boolean |
equals(Object obj)
|
String |
getDefaultValue()
Returns the default value of the attribute |
String |
getName()
Name of the attribute |
String |
getValue()
Value of the attribute |
int |
hashCode()
|
boolean |
isOptional()
Returns true if the attribute is optional, otherwise false |
SimpleNodeAttribute |
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 |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SimpleNodeAttribute(String name)
name
- the name of the attributepublic SimpleNodeAttribute(String name, Enum value)
name
- the name of the attributevalue
- the Enum value of the attributepublic SimpleNodeAttribute(String name, int value)
name
- the name of the attributevalue
- the int value of the attributepublic SimpleNodeAttribute(String name, long value)
name
- the name of the attributevalue
- the long value of the attributepublic SimpleNodeAttribute(String name, boolean value)
name
- the name of the attributevalue
- the boolean value of the attributepublic SimpleNodeAttribute(String name, String value)
name
- the name of the attributevalue
- the String value of the attributeMethod Detail |
---|
public String getName()
getName
in interface NodeAttribute
public String getValue()
getValue
in interface NodeAttribute
public boolean isOptional()
isOptional
in interface NodeAttribute
public void setOptional(boolean optional)
setOptional
in interface NodeAttribute
optional
- true if this attribute is optionalpublic String getDefaultValue()
getDefaultValue
in interface NodeAttribute
public void setDefaultValue(String defaultValue)
setDefaultValue
in interface NodeAttribute
defaultValue
- the default valuepublic void setValue(String value)
setValue
in interface NodeAttribute
value
- the new valuepublic int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public SimpleNodeAttribute optional(boolean optional)
optional
in interface NodeAttribute
optional
- true if optional
public SimpleNodeAttribute defaultValue(String defaultValue)
defaultValue
in interface NodeAttribute
defaultValue
- the default value
public SimpleNodeAttribute defaultValue(boolean defaultValue)
defaultValue(String)
using String.valueOf(defaultValue)
defaultValue
- the default value
public SimpleNodeAttribute defaultValue(int defaultValue)
defaultValue(String)
using String.valueOf(defaultValue)
defaultValue
- the default value
public SimpleNodeAttribute defaultValue(Enum defaultValue)
defaultValue(String)
using String.valueOf(defaultValue)
defaultValue
- the default value
public SimpleNodeAttribute defaultValue(long defaultValue)
defaultValue(String)
using String.valueOf(defaultValue)
defaultValue
- the default value
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |