Class ModifiableLocationTypeAdapter
java.lang.Object
org.apache.sis.referencing.gazetteer.AbstractLocationType
org.apache.sis.referencing.gazetteer.ModifiableLocationType
org.apache.sis.referencing.gazetteer.ModifiableLocationTypeAdapter
- All Implemented Interfaces:
LenientComparable
Workaround for the lack of
LocationType
interface in GeoAPI 3.0.
This workaround will be removed if a future GeoAPI version publish that interface,
or if AbstractLocationType
is made public.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ReferencingByIdentifiers
The reference system of the original type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
ModifiableLocationTypeAdapter
(AbstractLocationType type, Map<AbstractLocationType, ModifiableLocationTypeAdapter> previous) Copies all information from the given type. -
Method Summary
Modifier and TypeMethodDescription(package private) static List<ModifiableLocationType>
copy
(List<? extends AbstractLocationType> types) Copies a list of location types.(package private) static ModifiableLocationType
copy
(AbstractLocationType type) Returns type type as-is if it is already an instance ofModifiableLocationType
, or returns a copy otherwise.Returns the reference system of the type given to the constructor.Methods inherited from class org.apache.sis.referencing.gazetteer.ModifiableLocationType
addIdentification, addParent, getChildren, getDefinition, getIdentifications, getName, getOwner, getParents, getTerritoryOfUse, getTheme, removeIdentification, removeParent, setDefinition, setOwner, setOwner, setTerritoryOfUse, setTerritoryOfUse, setTheme
Methods inherited from class org.apache.sis.referencing.gazetteer.AbstractLocationType
checkForCycles, equals, equals, hashCode, snapshot, toString
-
Field Details
-
referenceSystem
The reference system of the original type. This is the only information not stored inModifiableLocationType
.
-
-
Constructor Details
-
ModifiableLocationTypeAdapter
private ModifiableLocationTypeAdapter(AbstractLocationType type, Map<AbstractLocationType, ModifiableLocationTypeAdapter> previous) Copies all information from the given type.
-
-
Method Details
-
copy
Returns type type as-is if it is already an instance ofModifiableLocationType
, or returns a copy otherwise. -
copy
Copies a list of location types. -
getReferenceSystem
Returns the reference system of the type given to the constructor.- Overrides:
getReferenceSystem
in classModifiableLocationType
- Returns:
null
.- See Also:
-