org.lsst.ccs.config
Class ParameterConfiguration
java.lang.Object
org.lsst.ccs.config.ParameterConfiguration
- All Implemented Interfaces:
- Serializable, PathObject
@MappedSuperclass
public abstract class ParameterConfiguration
- extends Object
- implements Serializable, PathObject
abstract class for all parameter configurations
- Author:
- bamade
- See Also:
- Serialized Form
value
protected String value
ParameterConfiguration
protected ParameterConfiguration()
ParameterConfiguration
protected ParameterConfiguration(String value)
getId
public abstract long getId()
setId
protected abstract void setId(long id)
isReadOnly
public boolean isReadOnly()
getDescription
public abstract ParameterDescription getDescription()
getValueEvents
public abstract List<? extends ValueEvent> getValueEvents()
getValue
public String getValue()
checkValue
public Object checkValue(String value)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
modifyValue
public void modifyValue(String value)
- the value is modifiable only on objects not yet registered in the database
- Parameters:
value -
- Throws:
ImmutableStateException - if modification is for a registered object
IllegalArgumentException - if value is not coherent with type and constraints
modifyValueAfterCheck
public void modifyValueAfterCheck(String value)
- method for two phases commit: call only if check is ok.
- Parameters:
value -
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
toString
public String toString()
- Overrides:
toString in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
getPath
public ParameterPath getPath()
- Specified by:
getPath in interface PathObject
Copyright © 2013 LSST. All Rights Reserved.