public class CCMessageID extends AbstractFieldsObject
MessageID ::= CHOICE { elementaryMessageID Integer4, text SEQUENCE { messageContent IA5String, attributes OCTET STRING OPTIONAL }, elementaryMessageIDs SEQUENCE OF Integer4, variableMessage SEQUENCE { elementaryMessageID Integer4, variableParts SEQUENCE OF VariablePart } } CC-DataTypes { MessageID { text { attributes { @extendible } } } }
Used as field type by CCInbandInfo
.
Modifier and Type | Class and Description |
---|---|
static class |
CCMessageID.Choice
API for CC-DataTypes.MessageID.Choice.
|
static class |
CCMessageID.Text
API for CC-DataTypes.MessageID.text.
|
static class |
CCMessageID.VariableMessage
API for CC-DataTypes.MessageID.variableMessage.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CCMessageID() |
Modifier and Type | Method and Description |
---|---|
CCMessageID |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCMessageID |
copyOf(CCMessageID 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.
|
CCMessageID.Choice |
getChoice()
Gets the discriminant of the current choice.
|
int |
getElementaryMessageID()
Gets the value of the elementaryMessageID choice.
|
int[] |
getElementaryMessageIDs()
Gets the value of the elementaryMessageIDs choice.
|
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 :discriminant-name to associated-value.
|
CCMessageID.Text |
getText()
Gets the value of the text choice.
|
CCMessageID.VariableMessage |
getVariableMessage()
Gets the value of the variableMessage choice.
|
boolean |
isElementaryMessageIDChosen()
Tests whether the choice is elementaryMessageID.
|
boolean |
isElementaryMessageIDsChosen()
Tests whether the choice is elementaryMessageIDs.
|
boolean |
isTextChosen()
Tests whether the choice is text.
|
boolean |
isVariableMessageChosen()
Tests whether the choice is variableMessage.
|
CCMessageID |
setElementaryMessageID(int value)
Sets the value of the elementaryMessageID choice.
|
CCMessageID |
setElementaryMessageIDs(int[] value)
Sets the value of the elementaryMessageIDs choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
CCMessageID |
setText(CCMessageID.Text value)
Sets the value of the text choice.
|
CCMessageID |
setVariableMessage(CCMessageID.VariableMessage value)
Sets the value of the variableMessage choice.
|
equals, hashCode, toString
checkModify, isReadOnly
public CCMessageID clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCMessageID copyOf(CCMessageID from)
from
- the object from which to copypublic CCMessageID.Choice getChoice()
public int getElementaryMessageID() throws IllegalStateException
IllegalStateException
- if choice is not elementaryMessageIDpublic int[] getElementaryMessageIDs()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic CCMessageID.Text getText()
public CCMessageID.VariableMessage getVariableMessage()
public boolean isElementaryMessageIDChosen()
public boolean isElementaryMessageIDsChosen()
public boolean isTextChosen()
public boolean isVariableMessageChosen()
public CCMessageID setElementaryMessageID(int value) throws IllegalStateException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlypublic CCMessageID setElementaryMessageIDs(int[] value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is nullpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public CCMessageID setText(CCMessageID.Text value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is nullpublic CCMessageID setVariableMessage(CCMessageID.VariableMessage value) throws IllegalStateException, NullPointerException
value
- the new value for the choiceIllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null