edu.nrao.sss.model.parameter
Class Parameter

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

Field Summary
static String BAND_FIELD
           
static String EFFECTIVEDATE_FIELD
           
static String ENTITY_FIELD
           
static String MODIFIEDBY_FIELD
           
static String PARAMETERNAME_FIELD
           
static String VALUE_FIELD
           
static String VERSION_FIELD
           
 
Constructor Summary
Parameter()
           
Parameter(Parameter parameter)
           
Parameter(String modifiedBy, String parameterName, String entity, String band, String value)
           
 
Method Summary
 void addValue(Parameter parameter)
           
 void clone(Parameter parameter)
           
 boolean equals(Object obj)
           
 String getBand()
           
 Date getEffectiveDate()
           
 String getEntity()
           
 EntityType getEntityType()
           
 int getId()
           
 String getModifiedBy()
           
 String getParameterName()
           
 ParameterRule getParameterRule()
           
 String getValue()
           
 BigDecimal getValueAsBigDecimal()
           
 int getValueAsDecimalInt()
           
 double getValueAsDouble()
           
 int getValueAsOctalInt()
           
 Date getVersion()
           
 int hashCode()
           
 boolean isNew()
           
 boolean isUpdate()
           
 void setBand(String band)
           
 void setEffectiveDate(Date effectiveDate)
           
 void setEntity(String entity)
           
 void setId(int id)
           
 void setModifiedBy(String modifiedBy)
           
 void setParameterName(String parameterName)
           
 void setUpdate(boolean update)
           
 void setValue(String value)
           
 void setVersion(Date version)
           
 String toString()
           
 String toXML()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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
Constructor Detail

Parameter

public Parameter()

Parameter

public Parameter(Parameter parameter)

Parameter

public Parameter(String modifiedBy,
                 String parameterName,
                 String entity,
                 String band,
                 String value)
Method Detail

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.