| 
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.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 attribute
public SimpleNodeAttribute(String name,
                           Enum value)
name - the name of the attributevalue - the Enum value of the attribute
public SimpleNodeAttribute(String name,
                           int value)
name - the name of the attributevalue - the int value of the attribute
public SimpleNodeAttribute(String name,
                           long value)
name - the name of the attributevalue - the long value of the attribute
public SimpleNodeAttribute(String name,
                           boolean value)
name - the name of the attributevalue - the boolean value of the attribute
public SimpleNodeAttribute(String name,
                           String value)
name - the name of the attributevalue - the String value of the attribute| Method Detail | 
|---|
public String getName()
getName in interface NodeAttributepublic String getValue()
getValue in interface NodeAttributepublic boolean isOptional()
isOptional in interface NodeAttributepublic void setOptional(boolean optional)
setOptional in interface NodeAttributeoptional - true if this attribute is optionalpublic String getDefaultValue()
getDefaultValue in interface NodeAttributepublic void setDefaultValue(String defaultValue)
setDefaultValue in interface NodeAttributedefaultValue - the default valuepublic void setValue(String value)
setValue in interface NodeAttributevalue - the new valuepublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic SimpleNodeAttribute optional(boolean optional)
optional in interface NodeAttributeoptional - true if optional
public SimpleNodeAttribute defaultValue(String defaultValue)
defaultValue in interface NodeAttributedefaultValue - 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 | |||||||||