public class CCLegID extends AbstractFieldsObject
LegID ::= CHOICE { sendingSideID LegType, receivingSideID LegType } CC-DataTypes { LegID { @extendible } }
Used as field type by CCEventReportBCSMArg
.
Used as field type by CCSendChargingInformationArg
.
Used as field type by CCBCSMEvent
.
Used as field type by CCApplyChargingArg
.
Modifier and Type | Class and Description |
---|---|
static class |
CCLegID.Choice
API for CC-DataTypes.LegID.Choice.
|
FIELD_ABSENT, FIELD_UNINITIALISED
Constructor and Description |
---|
CCLegID() |
Modifier and Type | Method and Description |
---|---|
CCLegID |
clone()
Constructs a copy of this object and everything reachable from it.
|
static CCLegID |
copyOf(CCLegID 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.
|
CCLegID.Choice |
getChoice()
Gets the discriminant of the current 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.
|
LegType |
getReceivingSideID()
Gets the value of the receivingSideID choice.
|
LegType |
getSendingSideID()
Gets the value of the sendingSideID choice.
|
boolean |
isReceivingSideIDChosen()
Tests whether the choice is receivingSideID.
|
boolean |
isSendingSideIDChosen()
Tests whether the choice is sendingSideID.
|
protected void |
setChoice(CCLegID.Choice arg)
Sets the discriminant of the current choice.
|
void |
setReadOnly()
Sets this and all its fields to be immutable.
|
CCLegID |
setReceivingSideID(LegType value)
Sets the value of the receivingSideID choice.
|
CCLegID |
setSendingSideID(LegType value)
Sets the value of the sendingSideID choice.
|
equals, hashCode, toString
checkModify, isReadOnly
public CCLegID clone()
clone
in interface DataObject
clone
in class AbstractDataObject
public static CCLegID copyOf(CCLegID from)
from
- the object from which to copypublic CCLegID.Choice getChoice()
public static FieldAccessor[] getFieldAccessors()
public Map<String,Object> getFieldsMap(boolean withAbsents)
getFieldsMap
in class AbstractFieldsObject
withAbsents
- ignored, as value cannot be optionalpublic LegType getReceivingSideID()
public LegType getSendingSideID()
public boolean isReceivingSideIDChosen()
public boolean isSendingSideIDChosen()
protected void setChoice(CCLegID.Choice arg)
arg
- the new discriminantpublic void setReadOnly()
setReadOnly
in interface DataObject
setReadOnly
in class AbstractDataObject
public CCLegID setReceivingSideID(LegType 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 CCLegID setSendingSideID(LegType 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