Class MAPMAP_DialoguePDU
- java.lang.Object
-
- com.opencloud.util.AbstractDataObject
-
- com.opencloud.util.AbstractFieldsObject
-
- MAPMAP_DialoguePDU
-
- All Implemented Interfaces:
DataObject,Serializable
public class MAPMAP_DialoguePDU extends AbstractFieldsObject
API for MAP-DialogueInformation.MAP-DialoguePDU. Generated from the following ASN.1 type definition.MAP-DialoguePDU ::= CHOICE { map-open MAP-OpenInfo, map-accept MAP-AcceptInfo, map-close MAP-CloseInfo, map-refuse MAP-RefuseInfo, map-userAbort MAP-UserAbortInfo, map-providerAbort MAP-ProviderAbortInfo }Added in ph2. Spelt MAPMAP_DialoguePDU because it's generated from something in the MAP spec that's called MAP-DialoguePDU.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMAPMAP_DialoguePDU.ChoiceAPI for MAP-DialogueInformation.MAP-DialoguePDU.Choice.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPMAP_DialoguePDU()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPMAP_DialoguePDUclone()Constructs a copy of this object and everything reachable from it.static MAPMAP_DialoguePDUcopyOf(MAPMAP_DialoguePDU 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.MAPMAP_DialoguePDU.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.MAPMAP_AcceptInfogetMap_accept()Gets the value of the map-accept choice.MAPMAP_CloseInfogetMap_close()Gets the value of the map-close choice.MAPMAP_OpenInfogetMap_open()Gets the value of the map-open choice.MAPMAP_ProviderAbortInfogetMap_providerAbort()Gets the value of the map-providerAbort choice.MAPMAP_RefuseInfogetMap_refuse()Gets the value of the map-refuse choice.MAPMAP_UserAbortInfogetMap_userAbort()Gets the value of the map-userAbort choice.booleanisMap_acceptChosen()Tests whether the choice is map-accept.booleanisMap_closeChosen()Tests whether the choice is map-close.booleanisMap_openChosen()Tests whether the choice is map-open.booleanisMap_providerAbortChosen()Tests whether the choice is map-providerAbort.booleanisMap_refuseChosen()Tests whether the choice is map-refuse.booleanisMap_userAbortChosen()Tests whether the choice is map-userAbort.MAPMAP_DialoguePDUsetMap_accept(MAPMAP_AcceptInfo value)Sets the value of the map-accept choice.MAPMAP_DialoguePDUsetMap_close(MAPMAP_CloseInfo value)Sets the value of the map-close choice.MAPMAP_DialoguePDUsetMap_open(MAPMAP_OpenInfo value)Sets the value of the map-open choice.MAPMAP_DialoguePDUsetMap_providerAbort(MAPMAP_ProviderAbortInfo value)Sets the value of the map-providerAbort choice.MAPMAP_DialoguePDUsetMap_refuse(MAPMAP_RefuseInfo value)Sets the value of the map-refuse choice.MAPMAP_DialoguePDUsetMap_userAbort(MAPMAP_UserAbortInfo value)Sets the value of the map-userAbort 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 MAPMAP_DialoguePDU 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 MAPMAP_DialoguePDU copyOf(MAPMAP_DialoguePDU 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:
- MAPMAP_DialoguePDU
-
getChoice
public MAPMAP_DialoguePDU.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
-
getMap_accept
public MAPMAP_AcceptInfo getMap_accept()
Gets the value of the map-accept choice.- Returns:
- value of the choice, if choice is map-accept, else null
-
getMap_close
public MAPMAP_CloseInfo getMap_close()
Gets the value of the map-close choice.- Returns:
- value of the choice, if choice is map-close, else null
-
getMap_open
public MAPMAP_OpenInfo getMap_open()
Gets the value of the map-open choice.- Returns:
- value of the choice, if choice is map-open, else null
-
getMap_providerAbort
public MAPMAP_ProviderAbortInfo getMap_providerAbort()
Gets the value of the map-providerAbort choice.- Returns:
- value of the choice, if choice is map-providerAbort, else null
-
getMap_refuse
public MAPMAP_RefuseInfo getMap_refuse()
Gets the value of the map-refuse choice.- Returns:
- value of the choice, if choice is map-refuse, else null
-
getMap_userAbort
public MAPMAP_UserAbortInfo getMap_userAbort()
Gets the value of the map-userAbort choice.- Returns:
- value of the choice, if choice is map-userAbort, else null
-
isMap_acceptChosen
public boolean isMap_acceptChosen()
Tests whether the choice is map-accept.- Returns:
- true if chosen, false if not
-
isMap_closeChosen
public boolean isMap_closeChosen()
Tests whether the choice is map-close.- Returns:
- true if chosen, false if not
-
isMap_openChosen
public boolean isMap_openChosen()
Tests whether the choice is map-open.- Returns:
- true if chosen, false if not
-
isMap_providerAbortChosen
public boolean isMap_providerAbortChosen()
Tests whether the choice is map-providerAbort.- Returns:
- true if chosen, false if not
-
isMap_refuseChosen
public boolean isMap_refuseChosen()
Tests whether the choice is map-refuse.- Returns:
- true if chosen, false if not
-
isMap_userAbortChosen
public boolean isMap_userAbortChosen()
Tests whether the choice is map-userAbort.- Returns:
- true if chosen, false if not
-
setMap_accept
public MAPMAP_DialoguePDU setMap_accept(MAPMAP_AcceptInfo value) throws IllegalStateException, NullPointerException
Sets the value of the map-accept 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
-
setMap_close
public MAPMAP_DialoguePDU setMap_close(MAPMAP_CloseInfo value) throws IllegalStateException, NullPointerException
Sets the value of the map-close 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
-
setMap_open
public MAPMAP_DialoguePDU setMap_open(MAPMAP_OpenInfo value) throws IllegalStateException, NullPointerException
Sets the value of the map-open 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
-
setMap_providerAbort
public MAPMAP_DialoguePDU setMap_providerAbort(MAPMAP_ProviderAbortInfo value) throws IllegalStateException, NullPointerException
Sets the value of the map-providerAbort 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
-
setMap_refuse
public MAPMAP_DialoguePDU setMap_refuse(MAPMAP_RefuseInfo value) throws IllegalStateException, NullPointerException
Sets the value of the map-refuse 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
-
setMap_userAbort
public MAPMAP_DialoguePDU setMap_userAbort(MAPMAP_UserAbortInfo value) throws IllegalStateException, NullPointerException
Sets the value of the map-userAbort 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:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
-