public class CAP2TimeIfTariffSwitch extends AbstractFieldsObject
TimeIfTariffSwitch ::=
SEQUENCE {
timeSinceTariffSwitch INTEGER (0..864000),
tariffSwitchInterval INTEGER (1..864000) OPTIONAL
}
Used as field type by CAP2TimeInformation.
FIELD_ABSENT, FIELD_UNINITIALISED| Constructor and Description |
|---|
CAP2TimeIfTariffSwitch()
Constructs an object with uninitialised state.
|
| Modifier and Type | Method and Description |
|---|---|
CAP2TimeIfTariffSwitch |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CAP2TimeIfTariffSwitch |
copyOf(CAP2TimeIfTariffSwitch from)
Creates a new object of this type, cloning the values of common fields from the given object of any subclass of the same base type.
|
static FieldAccessor[] |
getFieldAccessors()
Gets a new array of the accessors for fields of this type.
|
Map<String,Object> |
getFieldsMap(boolean withAbsents)
Gets a Map from field-name to field-value.
|
int |
getTariffSwitchInterval()
Gets the value of the field tariffSwitchInterval.
|
int |
getTimeSinceTariffSwitch()
Gets the value of the field timeSinceTariffSwitch.
|
boolean |
hasTariffSwitchInterval()
Tests whether the field tariffSwitchInterval has a value.
|
boolean |
hasTimeSinceTariffSwitch()
Tests whether the field timeSinceTariffSwitch has a value.
|
CAP2TimeIfTariffSwitch |
setTariffSwitchInterval(int value)
Sets the value of the field tariffSwitchInterval and marks the field as present.
|
CAP2TimeIfTariffSwitch |
setTariffSwitchIntervalPresent(boolean flag)
Sets the presence or absence of the optional field tariffSwitchInterval.
|
CAP2TimeIfTariffSwitch |
setTimeSinceTariffSwitch(int value)
Sets the value of the field timeSinceTariffSwitch and marks the field as present.
|
equals, hashCode, toStringcheckModify, isReadOnly, setReadOnlypublic CAP2TimeIfTariffSwitch()
public CAP2TimeIfTariffSwitch clone()
clone in interface DataObjectclone in class AbstractDataObjectpublic static CAP2TimeIfTariffSwitch copyOf(CAP2TimeIfTariffSwitch from)
from - the object from which to copypublic static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap in class AbstractFieldsObjectwithAbsents - whether to put absent optional fields into Mappublic int getTariffSwitchInterval()
public int getTimeSinceTariffSwitch()
public boolean hasTariffSwitchInterval()
public boolean hasTimeSinceTariffSwitch()
public CAP2TimeIfTariffSwitch setTariffSwitchInterval(int value) throws IllegalStateException
value - the new value for the fieldIllegalStateException - if this instance has been marked as read-onlypublic CAP2TimeIfTariffSwitch setTariffSwitchIntervalPresent(boolean flag) throws IllegalStateException
flag - either true if the field should be marked as present or false if the field should be marked as absentIllegalStateException - if this instance has been marked as read-onlypublic CAP2TimeIfTariffSwitch setTimeSinceTariffSwitch(int value) throws IllegalStateException
value - the new value for the fieldIllegalStateException - if this instance has been marked as read-only