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 ReferencingByIdentifiersThe reference system of the original type. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateModifiableLocationTypeAdapter(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 ModifiableLocationTypecopy(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 ModifiableLocationType
addIdentification, addParent, getChildren, getDefinition, getIdentifications, getName, getOwner, getParents, getTerritoryOfUse, getTheme, removeIdentification, removeParent, setDefinition, setOwner, setOwner, setTerritoryOfUse, setTerritoryOfUse, setThemeMethods inherited from class 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:
getReferenceSystemin classModifiableLocationType- Returns:
null.- See Also:
-