@MappedSuperclass public abstract class ParameterConfiguration extends Object implements Serializable, PathObject
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
changingStaticData
tells us if this configuration can be operated at runTime or not
|
protected Exception |
reConfigurationFailure
this transient field is to carry information about a failure in configuration "repair".
|
protected String |
value |
COMPARATOR| Modifier | Constructor and Description |
|---|---|
protected |
ParameterConfiguration() |
protected |
ParameterConfiguration(String value) |
| Modifier and Type | Method and Description |
|---|---|
Object |
checkValue(String value) |
boolean |
equals(Object o) |
abstract ParameterDescription |
getDescription() |
abstract long |
getId() |
ParameterPath |
getPath() |
Exception |
getReConfigurationFailure() |
String |
getValue() |
abstract List<? extends ValueEvent> |
getValueEvents() |
int |
hashCode() |
boolean |
isChangingStaticData() |
boolean |
isReadOnly() |
void |
modifyValue(String value)
the value is modifiable only on objects not yet registered in the database
|
void |
modifyValueAfterCheck(String value)
method for two phases commit: call only if check is ok.
|
protected abstract void |
setId(long id) |
void |
setReConfigurationFailure(Exception reConfigurationFail) |
String |
toString() |
protected String value
protected boolean changingStaticData
protected Exception reConfigurationFailure
protected ParameterConfiguration()
protected ParameterConfiguration(String value)
public abstract long getId()
protected abstract void setId(long id)
public boolean isReadOnly()
public Exception getReConfigurationFailure()
public void setReConfigurationFailure(Exception reConfigurationFail)
public abstract ParameterDescription getDescription()
public abstract List<? extends ValueEvent> getValueEvents()
public String getValue()
public boolean isChangingStaticData()
public Object checkValue(String value) throws IllegalArgumentException
IllegalArgumentExceptionpublic void modifyValue(String value)
value - ImmutableStateException - if modification is for a registered objectIllegalArgumentException - if value is not coherent with type and constraintspublic void modifyValueAfterCheck(String value)
value - public ParameterPath getPath()
getPath in interface PathObjectCopyright © 2015 LSST. All rights reserved.