Package org.apache.sis.internal.metadata
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
The system-wide schema in the "SIS" namespace.
- Since:
- 0.7
- Version:
- 1.3
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
The object to serialize instead ofDefaultRecordSchema
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultRecordSchema
The schema used in SIS for creating records.static final org.opengis.util.TypeName
The type name for a record having an unknown number of fields.static final DefaultRecordType
The type of record instances for holding a singleDouble
value.static final DefaultRecordType
The type of record instances for holding a singleString
value.Fields inherited from class org.apache.sis.util.iso.DefaultRecordSchema
nameFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static DefaultRecordType
Creates a new record type of the given name, which will contain the given field.protected Object
On serialization, returns a proxy which will be resolved asINSTANCE
on deserialization.Methods inherited from class org.apache.sis.util.iso.DefaultRecordSchema
createRecordType, createRecordTypeName, getDescription, getSchemaName, locate, toString
-
Field Details
-
INSTANCE
The schema used in SIS for creating records. -
MULTILINE
public static final org.opengis.util.TypeName MULTILINEThe 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
The type of record instances for holding a singleString
value. -
REAL
The type of record instances for holding a singleDouble
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 aResources.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
On serialization, returns a proxy which will be resolved asINSTANCE
on deserialization.- Returns:
- the object to use after deserialization.
- Throws:
ObjectStreamException
- if the serialized object defines an unknown data type.
-