Class MAPExtendedRoutingInfo
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPExtendedRoutingInfo
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPExtendedRoutingInfo extends AbstractFieldsObject
API for MAP-CH-DataTypes.ExtendedRoutingInfo. Generated from the following ASN.1 type definition.ExtendedRoutingInfo ::= CHOICE { roamingNumber ISDN-AddressString, forwardingData ForwardingData, camelRoutingInfo CamelRoutingInfo }
Extended in R96.Used as field type by
MAPSendRoutingInfoRes
.Used as field type by
MAPSendRoutingInfoRes_v3
.Used as field type by
MAPSendRoutingInfoRes_v3
.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MAPExtendedRoutingInfo.Choice
API for MAP-CH-DataTypes.ExtendedRoutingInfo.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPExtendedRoutingInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPExtendedRoutingInfo
clone()
Constructs a copy of this object and everything reachable from it.static MAPExtendedRoutingInfo
copyOf(MAPExtendedRoutingInfo 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.MAPCamelRoutingInfo
getCamelRoutingInfo()
Gets the value of the camelRoutingInfo choice.MAPExtendedRoutingInfo.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.MAPForwardingData
getForwardingData()
Gets the value of the forwardingData choice.AddressString
getRoamingNumber()
Gets the value of the roamingNumber choice.boolean
isCamelRoutingInfoChosen()
Tests whether the choice is camelRoutingInfo.boolean
isForwardingDataChosen()
Tests whether the choice is forwardingData.boolean
isRoamingNumberChosen()
Tests whether the choice is roamingNumber.MAPExtendedRoutingInfo
setCamelRoutingInfo(MAPCamelRoutingInfo value)
Sets the value of the camelRoutingInfo choice.MAPExtendedRoutingInfo
setForwardingData(MAPForwardingData value)
Sets the value of the forwardingData choice.void
setReadOnly()
Sets this and all its fields to be immutable.MAPExtendedRoutingInfo
setRoamingNumber(AddressString value)
Sets the value of the roamingNumber 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 MAPExtendedRoutingInfo 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 MAPExtendedRoutingInfo copyOf(MAPExtendedRoutingInfo 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:
- MAPExtendedRoutingInfo
-
getCamelRoutingInfo
public MAPCamelRoutingInfo getCamelRoutingInfo()
Gets the value of the camelRoutingInfo choice.- Returns:
- value of the choice, if choice is camelRoutingInfo, else null
-
getChoice
public MAPExtendedRoutingInfo.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
-
getForwardingData
public MAPForwardingData getForwardingData()
Gets the value of the forwardingData choice.- Returns:
- value of the choice, if choice is forwardingData, else null
-
getRoamingNumber
public AddressString getRoamingNumber()
Gets the value of the roamingNumber choice.- Returns:
- value of the choice, if choice is roamingNumber, else null
-
isCamelRoutingInfoChosen
public boolean isCamelRoutingInfoChosen()
Tests whether the choice is camelRoutingInfo.- Returns:
- true if chosen, false if not
-
isForwardingDataChosen
public boolean isForwardingDataChosen()
Tests whether the choice is forwardingData.- Returns:
- true if chosen, false if not
-
isRoamingNumberChosen
public boolean isRoamingNumberChosen()
Tests whether the choice is roamingNumber.- Returns:
- true if chosen, false if not
-
setCamelRoutingInfo
public MAPExtendedRoutingInfo setCamelRoutingInfo(MAPCamelRoutingInfo value) throws IllegalStateException, NullPointerException
Sets the value of the camelRoutingInfo 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
-
setForwardingData
public MAPExtendedRoutingInfo setForwardingData(MAPForwardingData value) throws IllegalStateException, NullPointerException
Sets the value of the forwardingData 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
-
setRoamingNumber
public MAPExtendedRoutingInfo setRoamingNumber(AddressString value) throws IllegalStateException, NullPointerException
Sets the value of the roamingNumber 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
-
-