Class CCConnectToResourceArg.ResourceAddress
-
- All Implemented Interfaces:
DataObject,Serializable
- Enclosing class:
- CCConnectToResourceArg
public static class CCConnectToResourceArg.ResourceAddress extends AbstractFieldsObject
API for CC-DataTypes.ConnectToResourceArg.resourceAddress. Generated from the following ASN.1 type definition and the adaptations below.resourceAddress ::= CHOICE { ipRoutingAddress IPRoutingAddress, none NULL } CC-DataTypes { ConnectToResourceArg { resourceAddress { @extendible } } }Used as field type by
CCConnectToResourceArg.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCCConnectToResourceArg.ResourceAddress.ChoiceAPI for CC-DataTypes.ConnectToResourceArg.resourceAddress.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description ResourceAddress()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CCConnectToResourceArg.ResourceAddressclone()Constructs a copy of this object and everything reachable from it.static CCConnectToResourceArg.ResourceAddresscopyOf(CCConnectToResourceArg.ResourceAddress 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.CCConnectToResourceArg.ResourceAddress.ChoicegetChoice()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.CalledPartyNumbergetIpRoutingAddress()Gets the value of the ipRoutingAddress choice.booleanisIpRoutingAddressChosen()Tests whether the choice is ipRoutingAddress.booleanisNoneChosen()Tests whether the choice is none.protected voidsetChoice(CCConnectToResourceArg.ResourceAddress.Choice arg)Sets the discriminant of the current choice.CCConnectToResourceArg.ResourceAddresssetIpRoutingAddress(CalledPartyNumber value)Sets the value of the ipRoutingAddress choice.CCConnectToResourceArg.ResourceAddresssetNone()Sets the none choice.voidsetReadOnly()Sets this and all its fields to be immutable.-
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 CCConnectToResourceArg.ResourceAddress clone()
Constructs a copy of this object and everything reachable from it.- Specified by:
clonein interfaceDataObject- Specified by:
clonein classAbstractDataObject- Returns:
- copy of object
-
copyOf
public static CCConnectToResourceArg.ResourceAddress copyOf(CCConnectToResourceArg.ResourceAddress 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:
- CCConnectToResourceArg.ResourceAddress
-
getChoice
public CCConnectToResourceArg.ResourceAddress.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:
getFieldsMapin classAbstractFieldsObject- Parameters:
withAbsents- ignored, as value cannot be optional- Returns:
- Map from :discriminant-name to associated-value
-
getIpRoutingAddress
public CalledPartyNumber getIpRoutingAddress()
Gets the value of the ipRoutingAddress choice.- Returns:
- value of the choice, if choice is ipRoutingAddress, else null
-
isIpRoutingAddressChosen
public boolean isIpRoutingAddressChosen()
Tests whether the choice is ipRoutingAddress.- Returns:
- true if chosen, false if not
-
isNoneChosen
public boolean isNoneChosen()
Tests whether the choice is none.- Returns:
- true if chosen, false if not
-
setChoice
protected void setChoice(CCConnectToResourceArg.ResourceAddress.Choice arg)
Sets the discriminant of the current choice.- Parameters:
arg- the new discriminant
-
setIpRoutingAddress
public CCConnectToResourceArg.ResourceAddress setIpRoutingAddress(CalledPartyNumber value) throws IllegalStateException, NullPointerException
Sets the value of the ipRoutingAddress 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
-
setNone
public CCConnectToResourceArg.ResourceAddress setNone() throws IllegalStateException
Sets the none choice.- Returns:
- this
- Throws:
IllegalStateException- if this instance has been marked as read-only
-
setReadOnly
public void setReadOnly()
Sets this and all its fields to be immutable.- Specified by:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
-