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 classThe object to serialize instead ofDefaultRecordSchema. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DefaultRecordSchemaThe schema used in SIS for creating records.static final org.opengis.util.TypeNameThe type name for a record having an unknown number of fields.static final DefaultRecordTypeThe type of record instances for holding a singleDoublevalue.static final DefaultRecordTypeThe type of record instances for holding a singleStringvalue.Fields inherited from class org.apache.sis.util.iso.DefaultRecordSchema
nameFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static DefaultRecordTypeCreates a new record type of the given name, which will contain the given field.protected ObjectOn serialization, returns a proxy which will be resolved asINSTANCEon 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 singleStringvalue. -
REAL
The type of record instances for holding a singleDoublevalue.
-
-
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.Keyscode.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 asINSTANCEon deserialization.- Returns:
- the object to use after deserialization.
- Throws:
ObjectStreamException- if the serialized object defines an unknown data type.
-