Class MAPEPC_AV
-
- All Implemented Interfaces:
DataObject
,Serializable
public class MAPEPC_AV extends AbstractFieldsObject
API for MAP-MS-DataTypes.EPC-AV. Generated from the following ASN.1 type definition.EPC-AV ::= SEQUENCE { rand RAND, xres XRES, autn AUTN, kasme KASME, extensionContainer ExtensionContainer OPTIONAL, ... }
Added in release 8.Used in array as field type by
MAPSendAuthenticationInfoRes_v3
.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description MAPEPC_AV()
Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MAPEPC_AV
clone()
Constructs a copy of this object and everything reachable from it.static MAPEPC_AV
copyOf(MAPEPC_AV 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.byte[]
getAutn()
Gets the value of the field autn.MAPExtensionContainer
getExtensionContainer()
Gets the value of the field extensionContainer.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 field-name to field-value.byte[]
getKasme()
Gets the value of the field kasme.byte[]
getRand()
Gets the value of the field rand.byte[]
getXres()
Gets the value of the field xres.boolean
hasAutn()
Tests whether the field autn has a value.boolean
hasExtensionContainer()
Tests whether the field extensionContainer has a value.boolean
hasKasme()
Tests whether the field kasme has a value.boolean
hasRand()
Tests whether the field rand has a value.boolean
hasXres()
Tests whether the field xres has a value.MAPEPC_AV
setAutn(byte[] value)
Sets the value of the field autn.MAPEPC_AV
setExtensionContainer(MAPExtensionContainer value)
Sets the value of the field extensionContainer.MAPEPC_AV
setKasme(byte[] value)
Sets the value of the field kasme.MAPEPC_AV
setRand(byte[] value)
Sets the value of the field rand.void
setReadOnly()
Sets this and all its fields to be immutable.MAPEPC_AV
setXres(byte[] value)
Sets the value of the field xres.-
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 MAPEPC_AV 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 MAPEPC_AV copyOf(MAPEPC_AV 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:
- MAPEPC_AV
-
getAutn
public byte[] getAutn()
Gets the value of the field autn.- Returns:
- value of field autn, or null if not present
-
getExtensionContainer
public MAPExtensionContainer getExtensionContainer()
Gets the value of the field extensionContainer.- Returns:
- value of field extensionContainer, or null if not present
-
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 field-name to field-value. For a field of primitive type, the field-value is boxed. For an absent optional field, the field-value is AbstractFieldsObject.FIELD_ABSENT. For an unitialised mandatory field, the field-value is AbstractFieldsObject.FIELD_UNINITIALISED.- Specified by:
getFieldsMap
in classAbstractFieldsObject
- Parameters:
withAbsents
- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getKasme
public byte[] getKasme()
Gets the value of the field kasme.- Returns:
- value of field kasme, or null if not present
-
getRand
public byte[] getRand()
Gets the value of the field rand.- Returns:
- value of field rand, or null if not present
-
getXres
public byte[] getXres()
Gets the value of the field xres.- Returns:
- value of field xres, or null if not present
-
hasAutn
public boolean hasAutn()
Tests whether the field autn has a value.- Returns:
- whether the field autn has a value
-
hasExtensionContainer
public boolean hasExtensionContainer()
Tests whether the field extensionContainer has a value.- Returns:
- whether the field extensionContainer has a value
-
hasKasme
public boolean hasKasme()
Tests whether the field kasme has a value.- Returns:
- whether the field kasme has a value
-
hasRand
public boolean hasRand()
Tests whether the field rand has a value.- Returns:
- whether the field rand has a value
-
hasXres
public boolean hasXres()
Tests whether the field xres has a value.- Returns:
- whether the field xres has a value
-
setAutn
public MAPEPC_AV setAutn(byte[] value) throws IllegalStateException
Sets the value of the field autn.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setExtensionContainer
public MAPEPC_AV setExtensionContainer(MAPExtensionContainer value) throws IllegalStateException
Sets the value of the field extensionContainer. If null, marks the field as absent.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setKasme
public MAPEPC_AV setKasme(byte[] value) throws IllegalStateException
Sets the value of the field kasme.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
setRand
public MAPEPC_AV setRand(byte[] value) throws IllegalStateException
Sets the value of the field rand.- Parameters:
value
- the new value for the field- 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:
setReadOnly
in interfaceDataObject
- Overrides:
setReadOnly
in classAbstractDataObject
-
setXres
public MAPEPC_AV setXres(byte[] value) throws IllegalStateException
Sets the value of the field xres.- Parameters:
value
- the new value for the field- Returns:
- this
- Throws:
IllegalStateException
- if this instance has been marked as read-only
-
-