public class SubsetReportBlock extends java.lang.Object implements ReportDataBlock
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
noneStr |
java.lang.String |
statusLevelName |
java.lang.String |
subsetName |
long |
timeVal |
Constructor and Description |
---|
SubsetReportBlock(java.lang.String subsetName,
StatusLevelTag newSLevelTag,
long timeVal)
Creates a data block of items necessary for a report on a
subset change event.
|
SubsetReportBlock(java.lang.String subsetName,
java.lang.String statusLevelName,
long timeVal)
Creates a data block of items necessary for a report on a
subset change event.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(java.lang.Object cmpObj)
Compares this object with the given object for order.
|
java.lang.String |
getDetailDisplayString(boolean shortFlag,
java.lang.String indentStr)
Returns a report-format display string of the "detail" items in this
data block.
|
java.lang.String |
getDisplayString(boolean showTimeFlag)
Returns a report-format display string of the items in this data
block.
|
java.lang.String |
getDisplayString(boolean showTimeFlag,
boolean noNameFlag)
Returns a report-format display string of the items in this data
block.
|
java.lang.String |
getName()
Returns the subset name.
|
java.lang.String |
getShortDisplayString()
Returns a short-version report-format display string of the items in
this data block.
|
long |
getTimeVal()
Returns the time value associated with the data (in seconds
since 1/1/1970).
|
public static final java.lang.String noneStr
public final java.lang.String subsetName
public final java.lang.String statusLevelName
public final long timeVal
public SubsetReportBlock(java.lang.String subsetName, java.lang.String statusLevelName, long timeVal)
subsetName
- subset name.statusLevelName
- "old" usage level name.timeVal
- the time value associated with the data (in seconds
since 1/1/1970).public SubsetReportBlock(java.lang.String subsetName, StatusLevelTag newSLevelTag, long timeVal)
subsetName
- subset name.newSLevelTag
- "old" usage level tag object.timeVal
- the time value associated with the data (in seconds
since 1/1/1970).public java.lang.String getName()
getName
in interface ReportDataBlock
public long getTimeVal()
getTimeVal
in interface ReportDataBlock
public java.lang.String getDisplayString(boolean showTimeFlag, boolean noNameFlag)
getDisplayString
in interface ReportDataBlock
showTimeFlag
- true to display the time value with the data.noNameFlag
- true to not display the subset name and to put the
time value after the data, false to display the subset name and to
put the time value before the data.public java.lang.String getDisplayString(boolean showTimeFlag)
getDisplayString
in interface ReportDataBlock
showTimeFlag
- true to display the time value after the data.public java.lang.String getShortDisplayString()
getShortDisplayString
in interface ReportDataBlock
public java.lang.String getDetailDisplayString(boolean shortFlag, java.lang.String indentStr)
getDetailDisplayString
in interface ReportDataBlock
shortFlag
- if true then a short version of the display string
is returned.indentStr
- indentation to use, or null for default indentation.public int compareTo(java.lang.Object cmpObj)
compareTo
in interface ReportDataBlock
compareTo
in interface java.lang.Comparable
cmpObj
- a 'SubsetReportBlock' object to compare to.'ClassCastException'
- if the given object is not of
type 'SubsetReportBlock'.