|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectliquibase.configuration.ConfigurationProperty
public class ConfigurationProperty
Contains the definition and current value of a given configuration property.
Constructor Summary | |
---|---|
ConfigurationProperty(String namespace,
String propertyName,
Class type)
|
Method Summary | ||
---|---|---|
ConfigurationProperty |
addAlias(String... aliases)
Adds an alias for this property. |
|
Object |
getDefaultValue()
Returns the default value to use if no ConfigurationProviders override it. |
|
String |
getDescription()
Returns a human-readable definition of this property |
|
String |
getName()
Returns the property name. |
|
String |
getNamespace()
Returns the namespace used by this property's ConfigurationContainer |
|
Class |
getType()
Returns the type of value stored in this property |
|
Object |
getValue()
Returns the value currently stored in this property without any casting. |
|
|
getValue(Class<T> type)
Returns the value currently stored in this property cast to the given type. |
|
boolean |
getWasOverridden()
Returns true if the value has been set by a ConfigurationValueProvider or by setValue(Object) |
|
protected void |
init(ConfigurationValueProvider[] configurationValueProviders)
Initialize this property with values in the given ConfigurationProvers. |
|
ConfigurationProperty |
setDefaultValue(Object defaultValue)
Sets the default value to use if no ConfigurationProviders override it. |
|
ConfigurationProperty |
setDescription(String description)
|
|
void |
setValue(Object value)
Overwrites the value currently stored in this property. |
|
protected Object |
valueOf(Object value)
Converts an object of a different type to the type used by this property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationProperty(String namespace, String propertyName, Class type)
Method Detail |
---|
protected void init(ConfigurationValueProvider[] configurationValueProviders)
setDefaultValue(Object)
.
If multiple configurationValueProviders contain values, the first in the list wins.
public String getName()
public String getNamespace()
ConfigurationContainer
public Class getType()
protected Object valueOf(Object value)
public Object getValue()
public <T> T getValue(Class<T> type)
public void setValue(Object value)
public ConfigurationProperty addAlias(String... aliases)
public String getDescription()
public ConfigurationProperty setDescription(String description)
public Object getDefaultValue()
public ConfigurationProperty setDefaultValue(Object defaultValue)
public boolean getWasOverridden()
setValue(Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |