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
    • Constructor Detail

      • Text

        public Text()
        Constructs an object with uninitialised state.
    • Method Detail

      • 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:
        getFieldsMap in class AbstractFieldsObject
        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