public class CAP4Burst extends AbstractFieldsObject
Burst ::= SEQUENCE { numberOfBursts INTEGER (1..3) DEFAULT 1, burstInterval INTEGER (1..1200) DEFAULT 2, numberOfTonesInBurst INTEGER (1..3) DEFAULT 3, toneDuration INTEGER (1..20) DEFAULT 2, toneInterval INTEGER (1..20) DEFAULT 2, ... }
Used as field type by CAP4BurstList
.
Used as field type by CAP4PlayToneArg
.
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CAP4Burst()
Constructs an object with uninitialised state.
|
Modifier and Type | Method and Description |
---|---|
CAP4Burst |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CAP4Burst |
copyOf(CAP4Burst 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.
|
int |
getBurstInterval()
Gets the value of the field burstInterval.
|
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 |
getNumberOfBursts()
Gets the value of the field numberOfBursts.
|
int |
getNumberOfTonesInBurst()
Gets the value of the field numberOfTonesInBurst.
|
int |
getToneDuration()
Gets the value of the field toneDuration.
|
int |
getToneInterval()
Gets the value of the field toneInterval.
|
boolean |
hasBurstInterval()
Tests whether the field burstInterval has a value.
|
boolean |
hasNumberOfBursts()
Tests whether the field numberOfBursts has a value.
|
boolean |
hasNumberOfTonesInBurst()
Tests whether the field numberOfTonesInBurst has a value.
|
boolean |
hasToneDuration()
Tests whether the field toneDuration has a value.
|
boolean |
hasToneInterval()
Tests whether the field toneInterval has a value.
|
CAP4Burst |
setBurstInterval(int value)
Sets the value of the field burstInterval and marks the field as present.
|
CAP4Burst |
setBurstIntervalPresent(boolean flag)
Sets the presence or absence of the optional field burstInterval.
|
CAP4Burst |
setNumberOfBursts(int value)
Sets the value of the field numberOfBursts and marks the field as present.
|
CAP4Burst |
setNumberOfBurstsPresent(boolean flag)
Sets the presence or absence of the optional field numberOfBursts.
|
CAP4Burst |
setNumberOfTonesInBurst(int value)
Sets the value of the field numberOfTonesInBurst and marks the field as present.
|
CAP4Burst |
setNumberOfTonesInBurstPresent(boolean flag)
Sets the presence or absence of the optional field numberOfTonesInBurst.
|
CAP4Burst |
setToneDuration(int value)
Sets the value of the field toneDuration and marks the field as present.
|
CAP4Burst |
setToneDurationPresent(boolean flag)
Sets the presence or absence of the optional field toneDuration.
|
CAP4Burst |
setToneInterval(int value)
Sets the value of the field toneInterval and marks the field as present.
|
CAP4Burst |
setToneIntervalPresent(boolean flag)
Sets the presence or absence of the optional field toneInterval.
|
equals, hashCode, toString
checkModify, isReadOnly, setReadOnly
public CAP4Burst clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CAP4Burst copyOf(CAP4Burst from)
from
- the object from which to copypublic int getBurstInterval()
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 getNumberOfBursts()
public int getNumberOfTonesInBurst()
public int getToneDuration()
public int getToneInterval()
public boolean hasBurstInterval()
public boolean hasNumberOfBursts()
public boolean hasNumberOfTonesInBurst()
public boolean hasToneDuration()
public boolean hasToneInterval()
public CAP4Burst setBurstInterval(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4Burst setBurstIntervalPresent(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 CAP4Burst setNumberOfBursts(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4Burst setNumberOfBurstsPresent(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 CAP4Burst setNumberOfTonesInBurst(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4Burst setNumberOfTonesInBurstPresent(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 CAP4Burst setToneDuration(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4Burst setToneDurationPresent(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 CAP4Burst setToneInterval(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CAP4Burst setToneIntervalPresent(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