Class RecordDefinition.Adapter

java.lang.Object
org.apache.sis.util.iso.RecordDefinition
org.apache.sis.util.iso.RecordDefinition.Adapter
All Implemented Interfaces:
Serializable
Enclosing class:
RecordDefinition

static final class RecordDefinition.Adapter extends RecordDefinition implements Serializable
RecordDefinition implementation used as a fallback when the user supplied RecordType is not an instance of DefaultRecordType. So this adapter is used only if Apache SIS is mixed with other implementations.

Serialization

This class is serializable if the RecordType given to the constructor is also serializable.
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility.
      See Also:
    • recordType

      private final org.opengis.util.RecordType recordType
      The wrapped record type.
  • Constructor Details

    • Adapter

      Adapter(org.opengis.util.RecordType recordType)
      Creates a new adapter for the given record type.
  • Method Details

    • readObject

      private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
      Invoked on deserialization for restoring the transient fields.
      Parameters:
      in - the input stream from which to deserialize an attribute.
      Throws:
      IOException - if an I/O error occurred while reading or if the stream contains invalid data.
      ClassNotFoundException - if the class serialized on the stream is not on the classpath.
    • getRecordType

      org.opengis.util.RecordType getRecordType()
      Returns the wrapped record type.
      Specified by:
      getRecordType in class RecordDefinition