public class DateAndTimeDataBlock extends DataBlock
EMPTY_VIFE
Constructor and Description |
---|
DateAndTimeDataBlock() |
DateAndTimeDataBlock(Vif vif,
Vife... vifes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
accumulateDatatoJSON(net.sf.json.JSONObject json) |
void |
fromJSON(net.sf.json.JSONObject json) |
Date |
getValue() |
String |
getValueAsString() |
boolean |
isRes1() |
boolean |
isRes2() |
boolean |
isRes3() |
boolean |
isSummerTime() |
boolean |
isValid() |
void |
setRes1(boolean res1) |
void |
setRes2(boolean res2) |
void |
setRes3(boolean res3) |
void |
setSummerTime(boolean summerTime) |
void |
setValid(boolean valid) |
void |
setValue(Date value) |
void |
setValue(String text) |
void |
toString(StringBuilder sb,
String inset) |
addVife, clearVifes, formatBcdError, getAction, getCorrectionConstant, getCorrectionExponent, getDataBlockClass, getDataFieldCode, getExponent, getFunctionField, getParamDescr, getSiPrefix, getStorageNumber, getSubUnit, getTariff, getUnitOfMeasurement, getVif, getVif, getVife, getVifes, setAction, setDataFieldCode, setFunctionField, setStorageNumber, setSubUnit, setTariff, setVif, toJSON, toString, vifesFromJSON, vifFromJSON
public DateAndTimeDataBlock()
@Deprecated public DateAndTimeDataBlock(Vif vif, Vife... vifes)
public Date getValue()
public String getValueAsString()
getValueAsString
in class DataBlock
public boolean isRes1()
public boolean isRes2()
public boolean isRes3()
public boolean isSummerTime()
public boolean isValid()
public void setRes1(boolean res1)
res1
- the res1 to setpublic void setRes2(boolean res2)
res2
- the res2 to setpublic void setRes3(boolean res3)
res3
- the res3 to setpublic void setSummerTime(boolean summerTime)
summerTime
- the summerTime to setpublic void setValid(boolean valid)
public void setValue(Date value)
value
- the value to setpublic void toString(StringBuilder sb, String inset)
protected void accumulateDatatoJSON(net.sf.json.JSONObject json)
accumulateDatatoJSON
in class DataBlock
public void fromJSON(net.sf.json.JSONObject json)
fromJSON
in interface JSONSerializable
fromJSON
in class DataBlock
Copyright © 2009–2016 MBus4J. All rights reserved.