com.isti.trinetwatch.emailer
Class ParameterDataBlock

java.lang.Object
  extended by com.isti.trinetwatch.emailer.ParameterDataBlock

public class ParameterDataBlock
extends java.lang.Object

Class ParameterDataBlock contains the data items necessary for a report item on a station detail parameter change event.


Field Summary
 java.lang.String curStatusStr
           
 java.lang.String curValueStr
           
static java.lang.String noneStr
           
 java.lang.String paramName
           
 java.lang.String prevStatusStr
           
 java.lang.String prevValueStr
           
 
Constructor Summary
ParameterDataBlock(java.lang.String paramName, java.lang.String prevValueStr, java.lang.String prevStatusStr, java.lang.String curValueStr, java.lang.String curStatusStr)
          Creates a data block of items necessary for a report on a station detail parameter change event.
 
Method Summary
 java.lang.String getDisplayString()
          Returns a report-format display string of the items in this data block.
 java.lang.String getDisplayString(boolean shortFlag)
          Returns a report-format display string of the items in this data block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

noneStr

public static final java.lang.String noneStr
See Also:
Constant Field Values

paramName

public final java.lang.String paramName

prevValueStr

public final java.lang.String prevValueStr

prevStatusStr

public final java.lang.String prevStatusStr

curValueStr

public final java.lang.String curValueStr

curStatusStr

public final java.lang.String curStatusStr
Constructor Detail

ParameterDataBlock

public ParameterDataBlock(java.lang.String paramName,
                          java.lang.String prevValueStr,
                          java.lang.String prevStatusStr,
                          java.lang.String curValueStr,
                          java.lang.String curStatusStr)
Creates a data block of items necessary for a report on a station detail parameter change event.

Parameters:
paramName - parameter name.
prevValueStr - previous value string.
prevStatusStr - previous status level name.
curValueStr - current value string.
curStatusStr - current status level name.
Method Detail

getDisplayString

public java.lang.String getDisplayString(boolean shortFlag)
Returns a report-format display string of the items in this data block.

Parameters:
shortFlag - if true then a short version of the display string is returned.

getDisplayString

public java.lang.String getDisplayString()
Returns a report-format display string of the items in this data block.