moos.ssds.model
Class RecordVariable

java.lang.Object
  extended bymoos.ssds.model.RecordVariable
All Implemented Interfaces:
IDescription, IRecordVariable, java.io.Serializable, ValueObject

public class RecordVariable
extends java.lang.Object
implements java.io.Serializable, IDescription, ValueObject, IRecordVariable

Version:
Author:
brian
See Also:
Serialized Form

Constructor Summary
RecordVariable()
           
RecordVariable(IRecordVariable recordVariable)
          Copy constructor
 
Method Summary
 long getColumnIndex()
          Gets the columnIndex attribute of the RecordVariable object.
 java.lang.String getDescription()
           
 java.lang.String getFormat()
          Gets the format attribute of the RecordVariable object
 java.lang.Long getId()
          Gets the id attribute of the RecordVariable object
 java.lang.String getLongName()
          Gets the longName attribute of the RecordVariable object
 java.lang.String getMissingValue()
          Gets the missingValue attribute of the RecordVariable object
 java.lang.String getName()
          Gets the name attribute of the RecordVariable object
 java.lang.String getParseRegExp()
          Get the regular expression used to parse the data if is needs one
 IStandardUnit getStandardUnit()
           
 java.lang.Long getStandardUnitId()
           
 IStandardVariable getStandardVariable()
          Gets the variable attribute of the RecordVariable object
 java.lang.Long getStandardVariableId()
          Gets the variableId attribute of the RecordVariable object
 java.lang.String getUnits()
          Gets the units attribute of the RecordVariable object
 java.lang.String getValidMax()
          Gets the validMax attribute of the RecordVariable object
 java.lang.String getValidMin()
          Gets the validMin attribute of the RecordVariable object
 void setColumnIndex(long i)
          Sets the columnIndex attribute of the RecordVariable object
 void setDescription(java.lang.String description)
           
 void setFormat(java.lang.String s)
          Sets the format attribute of the RecordVariable object
 void setId(java.lang.Long id)
          Sets the id attribute of the RecordVariable object
 void setLongName(java.lang.String s)
          Sets the longName attribute of the RecordVariable object
 void setMissingValue(java.lang.String s)
          Sets the missingValue attribute of the RecordVariable object
 void setName(java.lang.String s)
          Sets the name attribute of the RecordVariable object
 void setParseRegExp(java.lang.String parseRegExp)
          This method sets the regular expression used to parse the variable
 void setRecordDescription(IRecordDescription rd)
          Sets the recordDescription attribute of the RecordVariable object.
 void setRecordDescriptionId(java.lang.Long id)
          Sets the recordDescriptionId attribute of the RecordVariable object
 void setStandardUnit(IStandardUnit standardUnit)
           
 void setStandardUnitId(java.lang.Long standardUnitId)
           
 void setStandardVariable(IStandardVariable v)
          Sets the variable attribute of the RecordVariable object
 void setStandardVariableId(java.lang.Long id)
          Sets the variableId attribute of the RecordVariable object
 void setUnits(java.lang.String units)
          Sets the units attribute of the RecordVariable object
 void setValidMax(java.lang.String s)
          Sets the validMax attribute of the RecordVariable object
 void setValidMin(java.lang.String s)
          Sets the validMin attribute of the RecordVariable object
 java.lang.String toString()
          If you don't know what toString() does you probaly shouldn't be writing Java code ;-) WARNING: The format of the string may change at anytime do the capricous whims of the developers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface moos.ssds.model.IRecordVariable
equals
 

Constructor Detail

RecordVariable

public RecordVariable()

RecordVariable

public RecordVariable(IRecordVariable recordVariable)
Copy constructor

Parameters:
recordVariable -
Method Detail

getColumnIndex

public long getColumnIndex()
Gets the columnIndex attribute of the RecordVariable object.

Specified by:
getColumnIndex in interface IRecordVariable
Returns:
The columnIndex value. -1 if it hasnot been defined. The indices are 1-based (i.e. NOT 0-based like java arrays)

getFormat

public java.lang.String getFormat()
Gets the format attribute of the RecordVariable object

Specified by:
getFormat in interface IRecordVariable
Returns:
The format value

getId

public java.lang.Long getId()
Gets the id attribute of the RecordVariable object

Specified by:
getId in interface ValueObject
Returns:
The id value

getLongName

public java.lang.String getLongName()
Gets the longName attribute of the RecordVariable object

Specified by:
getLongName in interface IRecordVariable
Returns:
The longName value

getMissingValue

public java.lang.String getMissingValue()
Gets the missingValue attribute of the RecordVariable object

Specified by:
getMissingValue in interface IRecordVariable
Returns:
The missingValue value

getName

public java.lang.String getName()
Gets the name attribute of the RecordVariable object

Specified by:
getName in interface IDescription
Returns:
The name value

getUnits

public java.lang.String getUnits()
Gets the units attribute of the RecordVariable object

Specified by:
getUnits in interface IRecordVariable
Returns:
The units value

getValidMax

public java.lang.String getValidMax()
Gets the validMax attribute of the RecordVariable object

Specified by:
getValidMax in interface IRecordVariable
Returns:
The validMax value

getValidMin

public java.lang.String getValidMin()
Gets the validMin attribute of the RecordVariable object

Specified by:
getValidMin in interface IRecordVariable
Returns:
The validMin value

getParseRegExp

public java.lang.String getParseRegExp()
Get the regular expression used to parse the data if is needs one

Specified by:
getParseRegExp in interface IRecordVariable
Returns:

getStandardVariable

public IStandardVariable getStandardVariable()
Gets the variable attribute of the RecordVariable object

Specified by:
getStandardVariable in interface IRecordVariable
Returns:
The variable value

getStandardVariableId

public java.lang.Long getStandardVariableId()
Gets the variableId attribute of the RecordVariable object

Specified by:
getStandardVariableId in interface IRecordVariable
Returns:
The variableId value

setColumnIndex

public void setColumnIndex(long i)
Sets the columnIndex attribute of the RecordVariable object

Specified by:
setColumnIndex in interface IRecordVariable
Parameters:
i - The new columnIndex value

setFormat

public void setFormat(java.lang.String s)
Sets the format attribute of the RecordVariable object

Specified by:
setFormat in interface IRecordVariable
Parameters:
s - The new format value

setId

public void setId(java.lang.Long id)
Sets the id attribute of the RecordVariable object

Specified by:
setId in interface ValueObject
Parameters:
id - The new id value

setLongName

public void setLongName(java.lang.String s)
Sets the longName attribute of the RecordVariable object

Specified by:
setLongName in interface IRecordVariable
Parameters:
s - The new longName value

setMissingValue

public void setMissingValue(java.lang.String s)
Sets the missingValue attribute of the RecordVariable object

Specified by:
setMissingValue in interface IRecordVariable
Parameters:
s - The new missingValue value

setName

public void setName(java.lang.String s)
Sets the name attribute of the RecordVariable object

Specified by:
setName in interface IDescription
Parameters:
s - The new name value

setRecordDescription

public void setRecordDescription(IRecordDescription rd)
Sets the recordDescription attribute of the RecordVariable object. This method should only be called by RecordDescription.addRecordVariable(), so access to this is package local

Specified by:
setRecordDescription in interface IRecordVariable
Parameters:
rd - The new recordDescription value

setRecordDescriptionId

public void setRecordDescriptionId(java.lang.Long id)
Sets the recordDescriptionId attribute of the RecordVariable object

Specified by:
setRecordDescriptionId in interface IRecordVariable
Parameters:
id - The new recordDescriptionId value

setUnits

public void setUnits(java.lang.String units)
Sets the units attribute of the RecordVariable object

Specified by:
setUnits in interface IRecordVariable
Parameters:
units - The new units value

setValidMax

public void setValidMax(java.lang.String s)
Sets the validMax attribute of the RecordVariable object

Specified by:
setValidMax in interface IRecordVariable
Parameters:
s - The new validMax value

setValidMin

public void setValidMin(java.lang.String s)
Sets the validMin attribute of the RecordVariable object

Specified by:
setValidMin in interface IRecordVariable
Parameters:
s - The new validMin value

setParseRegExp

public void setParseRegExp(java.lang.String parseRegExp)
This method sets the regular expression used to parse the variable

Specified by:
setParseRegExp in interface IRecordVariable
Parameters:
parseRegExp - is the string used to parse the variable

setStandardVariable

public void setStandardVariable(IStandardVariable v)
Sets the variable attribute of the RecordVariable object

Specified by:
setStandardVariable in interface IRecordVariable
Parameters:
v - The new variable value

setStandardVariableId

public void setStandardVariableId(java.lang.Long id)
Sets the variableId attribute of the RecordVariable object

Specified by:
setStandardVariableId in interface IRecordVariable
Parameters:
id - The new variableId value

toString

public java.lang.String toString()
If you don't know what toString() does you probaly shouldn't be writing Java code ;-) WARNING: The format of the string may change at anytime do the capricous whims of the developers. Do not write code that parses this toString for information. You have been warned.

Specified by:
toString in interface IRecordVariable
Returns:
A string

setDescription

public void setDescription(java.lang.String description)
Specified by:
setDescription in interface IDescription

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in interface IDescription

getStandardUnitId

public java.lang.Long getStandardUnitId()
Specified by:
getStandardUnitId in interface IRecordVariable
Returns:

setStandardUnitId

public void setStandardUnitId(java.lang.Long standardUnitId)
Specified by:
setStandardUnitId in interface IRecordVariable
Parameters:
standardUnitId -

getStandardUnit

public IStandardUnit getStandardUnit()
Specified by:
getStandardUnit in interface IRecordVariable
Returns:

setStandardUnit

public void setStandardUnit(IStandardUnit standardUnit)
Specified by:
setStandardUnit in interface IRecordVariable
Parameters:
standardUnit -