Class LegacyFeatureType
java.lang.Object
org.apache.sis.metadata.iso.maintenance.LegacyFeatureType
- All Implemented Interfaces:
CharSequence
,org.opengis.feature.type.AttributeType
,org.opengis.feature.type.FeatureType
@Deprecated
public final class LegacyFeatureType
extends Object
implements org.opengis.feature.type.FeatureType, org.opengis.feature.type.AttributeType, CharSequence
Deprecated.
To be removed after migration to GeoAPI 4.0.
Bridges between deprecated
FeatureType
/ AttributeType
and CharSequence
.
FeatureType
and AttributeType
were used in ISO 19115:2003, but have been replaced
by CharSequence
in ISO 19115:2014. The corresponding GeoAPI 3.0 interfaces are empty since
they were placeholder for future work. We use this LegacyFeatureType
as a temporary bridge,
to be removed with GeoAPI 4.0.- Since:
- 1.0
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final CharSequenceAdapter
Deprecated.The adapter doing most of the actual work of convertingFeatureType
orAttributeType
to<gco:CharacterSequence>
elements.private final CharSequence
Deprecated.The value to wrap as aFeatureType
orAttributeType
. -
Constructor Summary
ConstructorsConstructorDescriptionLegacyFeatureType
(CharSequence value) Deprecated.Creates a new type for the given value, which must be non-null. -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int index) Deprecated.boolean
Deprecated.int
hashCode()
Deprecated.int
length()
Deprecated.Delegates to the value given at construction time.subSequence
(int start, int end) Deprecated.toString()
Deprecated.(package private) static CharSequence
Deprecated.Wraps the givenFeatureType
orAttributeType
as aCharSequence
.(package private) static Set<LegacyFeatureType>
wrapAll
(Iterable<? extends CharSequence> values) Deprecated.Returns a list with all content of the given collection wrapped asLegacyFeatureType
.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints, isEmpty
-
Field Details
-
ADAPTER
Deprecated.The adapter doing most of the actual work of convertingFeatureType
orAttributeType
to<gco:CharacterSequence>
elements. -
value
Deprecated.The value to wrap as aFeatureType
orAttributeType
.
-
-
Constructor Details
-
LegacyFeatureType
Deprecated.Creates a new type for the given value, which must be non-null.- Parameters:
value
- the text to wrap in a legacy feature type.
-
-
Method Details
-
wrap
Deprecated.Wraps the givenFeatureType
orAttributeType
as aCharSequence
. -
wrapAll
Deprecated.Returns a list with all content of the given collection wrapped asLegacyFeatureType
. -
length
public int length()Deprecated.Delegates to the value given at construction time.- Specified by:
length
in interfaceCharSequence
-
charAt
public char charAt(int index) Deprecated.- Specified by:
charAt
in interfaceCharSequence
-
subSequence
Deprecated.- Specified by:
subSequence
in interfaceCharSequence
-
toString
Deprecated.- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
hashCode
public int hashCode()Deprecated. -
equals
Deprecated.
-