org.lsst.ccs.config
Class ParameterConfiguration

java.lang.Object
  extended by 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

Field Summary
protected  String value
           
 
Fields inherited from interface org.lsst.ccs.config.PathObject
COMPARATOR
 
Constructor Summary
protected ParameterConfiguration()
           
protected ParameterConfiguration(String value)
           
 
Method Summary
 Object checkValue(String value)
           
 boolean equals(Object o)
           
abstract  ParameterDescription getDescription()
           
abstract  long getId()
           
 ParameterPath getPath()
           
 String getValue()
           
abstract  List<? extends ValueEvent> getValueEvents()
           
 int hashCode()
           
 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)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

value

protected String value
Constructor Detail

ParameterConfiguration

protected ParameterConfiguration()

ParameterConfiguration

protected ParameterConfiguration(String value)
Method Detail

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.