edu.nrao.sss.model.parameter
Class Parameter
java.lang.Object
edu.nrao.sss.model.parameter.Parameter
- All Implemented Interfaces:
- Serializable
public class Parameter
- extends Object
- implements Serializable
A Parameter consists of an Entity, an optional Band, a Name, the Value of the
parameter, the name of the person who last updated it, the version of the
parameter (a date), and the date it is to take effect.
Version Info:
$Revision$ |
$Date$ |
$Author$ |
- Since:
- 2007-10-22
- Author:
- Stephan Witz
- See Also:
- Serialized Form
ENTITY_FIELD
public static final String ENTITY_FIELD
- See Also:
- Constant Field Values
BAND_FIELD
public static final String BAND_FIELD
- See Also:
- Constant Field Values
PARAMETERNAME_FIELD
public static final String PARAMETERNAME_FIELD
- See Also:
- Constant Field Values
VALUE_FIELD
public static final String VALUE_FIELD
- See Also:
- Constant Field Values
MODIFIEDBY_FIELD
public static final String MODIFIEDBY_FIELD
- See Also:
- Constant Field Values
VERSION_FIELD
public static final String VERSION_FIELD
- See Also:
- Constant Field Values
EFFECTIVEDATE_FIELD
public static final String EFFECTIVEDATE_FIELD
- See Also:
- Constant Field Values
Parameter
public Parameter()
Parameter
public Parameter(Parameter parameter)
Parameter
public Parameter(String modifiedBy,
String parameterName,
String entity,
String band,
String value)
addValue
public void addValue(Parameter parameter)
throws IllegalArgumentException,
IllegalStateException
- Throws:
IllegalArgumentException
IllegalStateException
clone
public void clone(Parameter parameter)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
getBand
public String getBand()
getEffectiveDate
public Date getEffectiveDate()
getEntity
public String getEntity()
getEntityType
public EntityType getEntityType()
getId
public int getId()
getModifiedBy
public String getModifiedBy()
getParameterName
public String getParameterName()
getParameterRule
public ParameterRule getParameterRule()
getValue
public String getValue()
getValueAsBigDecimal
public BigDecimal getValueAsBigDecimal()
getValueAsDecimalInt
public int getValueAsDecimalInt()
throws NumberFormatException
- Throws:
NumberFormatException
getValueAsDouble
public double getValueAsDouble()
throws NumberFormatException
- Throws:
NumberFormatException
getValueAsOctalInt
public int getValueAsOctalInt()
throws NumberFormatException
- Throws:
NumberFormatException
getVersion
public Date getVersion()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
isNew
public boolean isNew()
isUpdate
public boolean isUpdate()
setBand
public void setBand(String band)
setEffectiveDate
public void setEffectiveDate(Date effectiveDate)
setEntity
public void setEntity(String entity)
setId
public void setId(int id)
setModifiedBy
public void setModifiedBy(String modifiedBy)
setParameterName
public void setParameterName(String parameterName)
setUpdate
public void setUpdate(boolean update)
setValue
public void setValue(String value)
setVersion
public void setVersion(Date version)
toString
public String toString()
- Overrides:
toString
in class Object
toXML
public String toXML()
Copyright © 2009. All Rights Reserved.