Interface Record

  • 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.

    GeoAPI 2.1
    Bryce Nordgren (USDA), Martin Desruisseaux (IRD)
    See Also:
    • Method Detail

      • getRecordType

        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.

      • getAttributes

        Map<MemberName,​Object> getAttributes()
        Returns the dictionary of all (name, value) pairs in this record. The returned map shall not allows key addition. It may allows the replacement of existing keys only.
        See Also:
      • set

        void set​(MemberName name,
                 Object value)
          throws UnsupportedOperationException
        Set 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.
        name - The name of the attribute to modify.
        value - The new value for the attribute.
        UnsupportedOperationException - if this record is not modifiable.