public class CAP4BurstList extends AbstractFieldsObject
BurstList ::= SEQUENCE { warningPeriod INTEGER (1..1200) DEFAULT 30, bursts Burst, ... }
Used as field type by CAP4AudibleIndicator
.
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CAP4BurstList()
Constructs an object with uninitialised state.
|
Modifier and Type | Method and Description |
---|---|
CAP4BurstList |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CAP4BurstList |
copyOf(CAP4BurstList 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.
|
CAP4Burst |
getBursts()
Gets the value of the field bursts.
|
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 |
getWarningPeriod()
Gets the value of the field warningPeriod.
|
boolean |
hasBursts()
Tests whether the field bursts has a value.
|
boolean |
hasWarningPeriod()
Tests whether the field warningPeriod has a value.
|
CAP4BurstList |
setBursts(CAP4Burst value)
Sets the value of the field bursts.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
CAP4BurstList |
setWarningPeriod(int value)
Sets the value of the field warningPeriod and marks the field as present.
|
CAP4BurstList |
setWarningPeriodPresent(boolean flag)
Sets the presence or absence of the optional field warningPeriod.
|
equals, hashCode, toString
checkModify, isReadOnly
public CAP4BurstList()
public CAP4BurstList clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CAP4BurstList copyOf(CAP4BurstList from)
from
- the object from which to copypublic CAP4Burst getBursts()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- whether to put absent optional fields into Mappublic int getWarningPeriod()
public boolean hasBursts()
public boolean hasWarningPeriod()
public CAP4BurstList setBursts(CAP4Burst value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public CAP4BurstList setWarningPeriod(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4BurstList setWarningPeriodPresent(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-only