org.lsst.ccs.config
Class ParameterDescription

java.lang.Object
  extended by org.lsst.ccs.config.ParameterDescription
All Implemented Interfaces:
Serializable, PathObject

@MappedSuperclass
public abstract class ParameterDescription
extends Object
implements Serializable, PathObject

The base class for all Parameter descriptions

See Also:
Serialized Form

Field Summary
protected  String description
          possible details.
 
Fields inherited from interface org.lsst.ccs.config.PathObject
COMPARATOR
 
Constructor Summary
protected ParameterDescription()
           
protected ParameterDescription(ParameterBase parameterBase)
          builds a default Description out of a ParameterBase which is described in the original setup.
protected ParameterDescription(ParameterDescription other)
          copy constructor.
 
Method Summary
 Object checkValue(String value)
           
 boolean equals(Object o)
          equals is special: it works with any Path Object!
 String getCodeName()
           
 String getComponentName()
           
 String getConstraints()
           
 String getDefaultValue()
           
 String getDescription()
           
abstract  long getId()
           
 int getLevel()
           
 ParameterBase getParameterBase()
           
 String getParameterName()
           
 ParameterPath getPath()
           
 String getSimpleName()
           
 String getTypeName()
           
 int hashCode()
           
 boolean isNotModifiableAtRuntime()
           
 boolean isReadOnly()
           
 void setConstraints(String constraints)
           
 void setDescription(String description)
          this data is not essential to the logic so it is modifiable anyway.
protected abstract  void setId(long id)
           
 void setLevel(int level)
           
 void setNotModifiableAtRuntime(boolean notModifiableAtRuntime)
           
protected  void setParameterBase(ParameterBase parameterBase)
           
 void setSimpleName(String simpleName)
           
 String toPropertyString()
          default value is included in the text that describes the parameter as a property
 String toPropertyString(String value, boolean commentOutValue)
          creates a String to be included in a .preperties file
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

description

protected String description
possible details. Immutable in Ghost data

Constructor Detail

ParameterDescription

protected ParameterDescription()

ParameterDescription

protected ParameterDescription(ParameterBase parameterBase)
builds a default Description out of a ParameterBase which is described in the original setup.

Parameters:
parameterBase -

ParameterDescription

protected ParameterDescription(ParameterDescription other)
copy constructor. Beware: the id is copied so do not use to make a new Parameterdescription that is to be registered later.

Parameters:
other -
Method Detail

getId

public abstract long getId()

setId

protected abstract void setId(long id)

isReadOnly

public boolean isReadOnly()

getParameterBase

public ParameterBase getParameterBase()

setParameterBase

protected void setParameterBase(ParameterBase parameterBase)

getDescription

public String getDescription()

setDescription

public void setDescription(String description)
this data is not essential to the logic so it is modifiable anyway.

Parameters:
description -

getSimpleName

public String getSimpleName()

setSimpleName

public void setSimpleName(String simpleName)

getConstraints

public String getConstraints()

setConstraints

public void setConstraints(String constraints)

getLevel

public int getLevel()

setLevel

public void setLevel(int level)

isNotModifiableAtRuntime

public boolean isNotModifiableAtRuntime()

setNotModifiableAtRuntime

public void setNotModifiableAtRuntime(boolean notModifiableAtRuntime)

equals

public boolean equals(Object o)
equals is special: it works with any Path Object!

Overrides:
equals in class Object
Parameters:
o -
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getComponentName

public String getComponentName()

getCodeName

public String getCodeName()

getParameterName

public String getParameterName()

getDefaultValue

public String getDefaultValue()

getPath

public ParameterPath getPath()
Specified by:
getPath in interface PathObject

getTypeName

public String getTypeName()

checkValue

public Object checkValue(String value)

toPropertyString

public String toPropertyString(String value,
                               boolean commentOutValue)
creates a String to be included in a .preperties file

Parameters:
value - default value to be included in the text
Returns:

toPropertyString

public String toPropertyString()
default value is included in the text that describes the parameter as a property

Returns:


Copyright © 2013 LSST. All Rights Reserved.