Class RecordSchemaSIS

java.lang.Object
org.apache.sis.util.iso.DefaultRecordSchema
org.apache.sis.internal.metadata.RecordSchemaSIS
All Implemented Interfaces:
Serializable, org.opengis.util.RecordSchema

public final class RecordSchemaSIS extends DefaultRecordSchema implements Serializable
The system-wide schema in the "SIS" namespace.
Since:
0.7
Version:
1.3
See Also:
  • Field Details

    • INSTANCE

      public static final DefaultRecordSchema INSTANCE
      The schema used in SIS for creating records.
    • MULTILINE

      public static final org.opengis.util.TypeName MULTILINE
      The type name for a record having an unknown number of fields. This is used at <gco:RecordType> unmarshalling time, where the type is not well defined, by assuming one field per line.
      See Also:
    • STRING

      public static final DefaultRecordType STRING
      The type of record instances for holding a single String value.
    • REAL

      public static final DefaultRecordType REAL
      The type of record instances for holding a single Double value.
  • Constructor Details

    • RecordSchemaSIS

      private RecordSchemaSIS()
      Creates the unique instance.
  • Method Details

    • singleton

      private static DefaultRecordType singleton(short typeName, org.opengis.util.InternationalString field, Class<?> valueClass)
      Creates a new record type of the given name, which will contain the given field.
      Parameters:
      typeName - the record type name as a Resources.Keys code.
      field - the name of the singleton record field.
      valueClass - the expected value type for the singleton field.
      Returns:
      a record type of the given name and field.
    • writeReplace

      protected Object writeReplace() throws ObjectStreamException
      On serialization, returns a proxy which will be resolved as INSTANCE on deserialization.
      Returns:
      the object to use after deserialization.
      Throws:
      ObjectStreamException - if the serialized object defines an unknown data type.