Package org.codehaus.modello.model
Class ModelDefault
- java.lang.Object
-
- org.codehaus.modello.model.ModelDefault
-
public class ModelDefault extends Object
Default values for a model, that can be overrided withdefaults
element of the model descriptor.- Author:
- Emmanuel Venisse
-
-
Field Summary
Fields Modifier and Type Field Description static String
CHECK_DEPRECATION
static String
CHECK_DEPRECATION_VALUE
static String
LIST
static String
LIST_VALUE
static String
MAP
static String
MAP_VALUE
static String
PACKAGE
static String
PACKAGE_VALUE
static String
PROPERTIES
static String
PROPERTIES_VALUE
static String
SET
static String
SET_VALUE
static String
STRICT_XML_ATTRIBUTES
static String
STRICT_XML_ATTRIBUTES_VALUE
-
Constructor Summary
Constructors Constructor Description ModelDefault()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBoolean()
static ModelDefault
getDefault(String key)
String
getKey()
String
getValue()
protected boolean
isEmpty(String string)
void
setKey(String key)
void
setValue(String value)
void
validateElement()
-
-
-
Field Detail
-
CHECK_DEPRECATION
public static final String CHECK_DEPRECATION
- See Also:
- Constant Field Values
-
CHECK_DEPRECATION_VALUE
public static final String CHECK_DEPRECATION_VALUE
- See Also:
- Constant Field Values
-
PACKAGE
public static final String PACKAGE
- See Also:
- Constant Field Values
-
PACKAGE_VALUE
public static final String PACKAGE_VALUE
- See Also:
- Constant Field Values
-
LIST
public static final String LIST
- See Also:
- Constant Field Values
-
LIST_VALUE
public static final String LIST_VALUE
- See Also:
- Constant Field Values
-
MAP
public static final String MAP
- See Also:
- Constant Field Values
-
MAP_VALUE
public static final String MAP_VALUE
- See Also:
- Constant Field Values
-
PROPERTIES
public static final String PROPERTIES
- See Also:
- Constant Field Values
-
PROPERTIES_VALUE
public static final String PROPERTIES_VALUE
- See Also:
- Constant Field Values
-
SET
public static final String SET
- See Also:
- Constant Field Values
-
SET_VALUE
public static final String SET_VALUE
- See Also:
- Constant Field Values
-
STRICT_XML_ATTRIBUTES
public static final String STRICT_XML_ATTRIBUTES
- See Also:
- Constant Field Values
-
STRICT_XML_ATTRIBUTES_VALUE
public static final String STRICT_XML_ATTRIBUTES_VALUE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDefault
public static ModelDefault getDefault(String key) throws ModelValidationException
- Throws:
ModelValidationException
-
setKey
public void setKey(String key)
-
getKey
public String getKey()
-
setValue
public void setValue(String value)
-
getValue
public String getValue()
-
getBoolean
public boolean getBoolean()
-
validateElement
public void validateElement() throws ModelValidationException
- Throws:
ModelValidationException
-
isEmpty
protected boolean isEmpty(String string)
-
-