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 withdefaultselement of the model descriptor.- Author:
- Emmanuel Venisse
-
-
Field Summary
Fields Modifier and Type Field Description static StringCHECK_DEPRECATIONstatic StringCHECK_DEPRECATION_VALUEstatic StringLISTstatic StringLIST_VALUEstatic StringMAPstatic StringMAP_VALUEstatic StringPACKAGEstatic StringPACKAGE_VALUEstatic StringPROPERTIESstatic StringPROPERTIES_VALUEstatic StringSETstatic StringSET_VALUEstatic StringSTRICT_XML_ATTRIBUTESstatic StringSTRICT_XML_ATTRIBUTES_VALUE
-
Constructor Summary
Constructors Constructor Description ModelDefault()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetBoolean()static ModelDefaultgetDefault(String key)StringgetKey()StringgetValue()protected booleanisEmpty(String string)voidsetKey(String key)voidsetValue(String value)voidvalidateElement()
-
-
-
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)
-
-