Package org.apache.sis.util.iso
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
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 theRecordType
given to the constructor is also serializable.-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.util.iso.RecordDefinition
RecordDefinition.Adapter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.opengis.util.RecordType
The wrapped record type.private static final long
For cross-version compatibility. -
Constructor Summary
ConstructorsConstructorDescriptionAdapter
(org.opengis.util.RecordType recordType) Creates a new adapter for the given record type. -
Method Summary
Modifier and TypeMethodDescription(package private) org.opengis.util.RecordType
Returns the wrapped record type.private void
Invoked on deserialization for restoring the transient fields.Methods inherited from class org.apache.sis.util.iso.RecordDefinition
baseValueClass, computeTransientFields, fieldIndices, getName, getValueClass, indexOf, size, toString, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUIDFor cross-version compatibility.- See Also:
-
recordType
private final org.opengis.util.RecordType recordTypeThe wrapped record type.
-
-
Constructor Details
-
Adapter
Adapter(org.opengis.util.RecordType recordType) Creates a new adapter for the given record type.
-
-
Method Details
-
readObject
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 classRecordDefinition
-