Interface Record


  • @UML(identifier="Record",
         specification=ISO_19103)
    public interface Record
    A list of logically related elements as (name, value) pairs in a dictionary. A record may be used as an implementation representation for features.

    This class can be think as the equivalent of the Java Object class.

    Since:
    2.1
    Version:
    3.0
    See Also:
    RecordType
    • Method Detail

      • getRecordType

        @UML(identifier="recordType",
             obligation=OPTIONAL,
             specification=ISO_19103)
        RecordType getRecordType()
        Returns the type definition of record. All attributes named in this record must be defined in the returned record type. In other words, the following relationship must holds:

        This method can be think as the equivalent of the Java Object.getClass() method.

        Returns:
        The type definition of this record, or null.
      • set

        void set​(MemberName name,
                 java.lang.Object value)
          throws java.lang.UnsupportedOperationException
        Sets the value for the attribute of the specified name. This is functionally equivalent to getAttributes().put(name,value). Remind that name keys are constrained to record type members only.
        Parameters:
        name - The name of the attribute to modify.
        value - The new value for the attribute.
        Throws:
        java.lang.UnsupportedOperationException - if this record is not modifiable.