Class MAPServingNodeAddress
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPServingNodeAddress
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPServingNodeAddress extends AbstractFieldsObject
API for MAP-LCS-DataTypes.ServingNodeAddress. Generated from the following ASN.1 type definition.ServingNodeAddress ::= CHOICE { msc-Number ISDN-AddressString, sgsn-Number ISDN-AddressString, mme-Number DiameterIdentity }
Added in release 9.Used as field type by
MAPProvideSubscriberLocation_Res
.Used as field type by
MAPSubscriberLocationReport_Arg
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPServingNodeAddress.Choice
API for MAP-LCS-DataTypes.ServingNodeAddress.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPServingNodeAddress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPServingNodeAddress
clone()
Constructs a copy of this object and everything reachable from it.static MAPServingNodeAddress
copyOf(MAPServingNodeAddress 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.MAPServingNodeAddress.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.byte[]
getMme_Number()
Gets the value of the mme-Number choice.AddressString
getMsc_Number()
Gets the value of the msc-Number choice.AddressString
getSgsn_Number()
Gets the value of the sgsn-Number choice.boolean
isMme_NumberChosen()
Tests whether the choice is mme-Number.boolean
isMsc_NumberChosen()
Tests whether the choice is msc-Number.boolean
isSgsn_NumberChosen()
Tests whether the choice is sgsn-Number.MAPServingNodeAddress
setMme_Number(byte[] value)
Sets the value of the mme-Number choice.MAPServingNodeAddress
setMsc_Number(AddressString value)
Sets the value of the msc-Number choice.void
setReadOnly()
Sets this and all its fields to be immutable.MAPServingNodeAddress
setSgsn_Number(AddressString value)
Sets the value of the sgsn-Number choice.-
Methods inherited from class com.opencloud.util.AbstractFieldsObject
equals, hashCode, toString
-
Methods inherited from class com.opencloud.util.AbstractDataObject
checkModify, isReadOnly
-
-
-
-
Method Detail
-
clone
public MAPServingNodeAddress clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clone
in interfaceDataObject
- Specified by:
clone
in classAbstractDataObject
- Returns:
- copy of object
-
copyOf
public static MAPServingNodeAddress copyOf(MAPServingNodeAddress 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.- Parameters:
from
- the object from which to copy- Returns:
- MAPServingNodeAddress
-
getChoice
public MAPServingNodeAddress.Choice getChoice()
Gets the discriminant of the current choice.- Returns:
- the current discriminant
-
getFieldAccessors
public static FieldAccessor[] getFieldAccessors()
Gets a new array of the accessors for fields of this type.- Returns:
- FieldAccessor[]
-
getFieldsMap
public Map<String,Object> getFieldsMap(boolean withAbsents)
Gets a Map from :discriminant-name to associated-value. For a value of primitive type, the value is boxed. If choice is not set, returns a map from : to AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
getMme_Number
public byte[] getMme_Number()
Gets the value of the mme-Number choice.- Returns:
- value of the choice, if choice is mme-Number, else null
-
getMsc_Number
public AddressString getMsc_Number()
Gets the value of the msc-Number choice.- Returns:
- value of the choice, if choice is msc-Number, else null
-
getSgsn_Number
public AddressString getSgsn_Number()
Gets the value of the sgsn-Number choice.- Returns:
- value of the choice, if choice is sgsn-Number, else null
-
isMme_NumberChosen
public boolean isMme_NumberChosen()
Tests whether the choice is mme-Number.- Returns:
- true if chosen, false if not
-
isMsc_NumberChosen
public boolean isMsc_NumberChosen()
Tests whether the choice is msc-Number.- Returns:
- true if chosen, false if not
-
isSgsn_NumberChosen
public boolean isSgsn_NumberChosen()
Tests whether the choice is sgsn-Number.- Returns:
- true if chosen, false if not
-
setMme_Number
public MAPServingNodeAddress setMme_Number(byte[] value) throws IllegalStateException, NullPointerException
Sets the value of the mme-Number choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setMsc_Number
public MAPServingNodeAddress setMsc_Number(AddressString value) throws IllegalStateException, NullPointerException
Sets the value of the msc-Number choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setSgsn_Number
public MAPServingNodeAddress setSgsn_Number(AddressString value) throws IllegalStateException, NullPointerException
Sets the value of the sgsn-Number choice.- Parameters:
value
- the new value for the choice- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-onlyNullPointerException
- if the given value is null
-
-