Class CCMessageID.Text
-
- All Implemented Interfaces:
DataObject,Serializable
- Enclosing class:
- CCMessageID
public static class CCMessageID.Text extends AbstractFieldsObject
API for CC-DataTypes.MessageID.text. Generated from the following ASN.1 type definition and the adaptations below.text ::= SEQUENCE { messageContent IA5String, attributes OCTET STRING OPTIONAL } CC-DataTypes { MessageID { text { attributes { @extendible } } } }Used as field type by
CCMessageID.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCCMessageID.Text.AttributesAPI for CC-DataTypes.MessageID.text.attributes.
-
Field Summary
-
Fields inherited from class com.opencloud.util.AbstractFieldsObject
FIELD_ABSENT, FIELD_UNINITIALISED
-
-
Constructor Summary
Constructors Constructor Description Text()Constructs an object with uninitialised state.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CCMessageID.Textclone()Constructs a copy of this object and everything reachable from it.static CCMessageID.TextcopyOf(CCMessageID.Text 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.CCMessageID.Text.AttributesgetAttributes()Gets the value of the field attributes.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.StringgetMessageContent()Gets the value of the field messageContent.booleanhasAttributes()Tests whether the field attributes has a value.booleanhasMessageContent()Tests whether the field messageContent has a value.CCMessageID.TextsetAttributes(CCMessageID.Text.Attributes value)Sets the value of the field attributes.CCMessageID.TextsetMessageContent(String value)Sets the value of the field messageContent.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 CCMessageID.Text 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 CCMessageID.Text copyOf(CCMessageID.Text 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:
- CCMessageID.Text
-
getAttributes
public CCMessageID.Text.Attributes getAttributes()
Gets the value of the field attributes.- Returns:
- value of field attributes, 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:
getFieldsMapin classAbstractFieldsObject- Parameters:
withAbsents- whether to put absent optional fields into Map- Returns:
- Map from field-name to field-value
-
getMessageContent
public String getMessageContent()
Gets the value of the field messageContent.- Returns:
- value of field messageContent, or null if not present
-
hasAttributes
public boolean hasAttributes()
Tests whether the field attributes has a value.- Returns:
- whether the field attributes has a value
-
hasMessageContent
public boolean hasMessageContent()
Tests whether the field messageContent has a value.- Returns:
- whether the field messageContent has a value
-
setAttributes
public CCMessageID.Text setAttributes(CCMessageID.Text.Attributes value) throws IllegalStateException
Sets the value of the field attributes. 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
-
setMessageContent
public CCMessageID.Text setMessageContent(String value) throws IllegalStateException
Sets the value of the field messageContent.- 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:
setReadOnlyin interfaceDataObject- Overrides:
setReadOnlyin classAbstractDataObject
-
-