public class CCInbandInfo extends AbstractFieldsObject
InbandInfo ::= SEQUENCE { messageID MessageID, numberOfRepetitions INTEGER (1..127) OPTIONAL, duration INTEGER (0..32767) OPTIONAL, interval INTEGER (0..32767) OPTIONAL }
Used as field type by CCInformationToSend
.
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CCInbandInfo()
Constructs an object with uninitialised state.
|
Modifier and Type | Method and Description |
---|---|
CCInbandInfo |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCInbandInfo |
copyOf(CCInbandInfo 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 |
getDuration()
Gets the value of the field duration.
|
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 |
getInterval()
Gets the value of the field interval.
|
CCMessageID |
getMessageID()
Gets the value of the field messageID.
|
int |
getNumberOfRepetitions()
Gets the value of the field numberOfRepetitions.
|
boolean |
hasDuration()
Tests whether the field duration has a value.
|
boolean |
hasInterval()
Tests whether the field interval has a value.
|
boolean |
hasMessageID()
Tests whether the field messageID has a value.
|
boolean |
hasNumberOfRepetitions()
Tests whether the field numberOfRepetitions has a value.
|
CCInbandInfo |
setDuration(int value)
Sets the value of the field duration and marks the field as present.
|
CCInbandInfo |
setDurationPresent(boolean flag)
Sets the presence or absence of the optional field duration.
|
CCInbandInfo |
setInterval(int value)
Sets the value of the field interval and marks the field as present.
|
CCInbandInfo |
setIntervalPresent(boolean flag)
Sets the presence or absence of the optional field interval.
|
CCInbandInfo |
setMessageID(CCMessageID value)
Sets the value of the field messageID.
|
CCInbandInfo |
setNumberOfRepetitions(int value)
Sets the value of the field numberOfRepetitions and marks the field as present.
|
CCInbandInfo |
setNumberOfRepetitionsPresent(boolean flag)
Sets the presence or absence of the optional field numberOfRepetitions.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
equals, hashCode, toString
checkModify, isReadOnly
public CCInbandInfo()
public CCInbandInfo clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCInbandInfo copyOf(CCInbandInfo from)
from
- the object from which to copypublic int getDuration()
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 getInterval()
public CCMessageID getMessageID()
public int getNumberOfRepetitions()
public boolean hasDuration()
public boolean hasInterval()
public boolean hasMessageID()
public boolean hasNumberOfRepetitions()
public CCInbandInfo setDuration(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CCInbandInfo setDurationPresent(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 CCInbandInfo setInterval(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CCInbandInfo setIntervalPresent(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 CCInbandInfo setMessageID(CCMessageID value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CCInbandInfo setNumberOfRepetitions(int value) throws IllegalStateException
value
- the new value for the fieldIllegalStateException
- if this instance has been marked as read-onlypublic CCInbandInfo setNumberOfRepetitionsPresent(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 void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject