org.codehaus.modello.model
Class ModelDefault

java.lang.Object
  extended by org.codehaus.modello.model.ModelDefault

public class ModelDefault
extends Object

Default values for a model, that can be overrided with defaults element of the model descriptor.

Version:
$Id: ModelDefault.java 1360 2010-01-19 22:21:46Z hboutemy $
Author:
Emmanuel Venisse

Field Summary
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
ModelDefault()
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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
Constructor Detail

ModelDefault

public ModelDefault()
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)


Copyright © 2001-2011 Codehaus. All Rights Reserved.