public class ReferencingByIdentifiers extends AbstractReferenceSystem
ReferencingByIdentifiers
instances
created using only SIS factories and static constants can be shared by many objects and passed between threads
without synchronization.ModifiableLocationType
,
AbstractLocation
,
Serialized FormDefined in the sis-referencing-by-identifiers
module
Modifier and Type | Field and Description |
---|---|
static String |
OVERALL_OWNER_KEY
Key for the
"overallOwner" property to be given to the
object factory createFoo(…) methods. |
static String |
THEME_KEY
Key for the
"theme" property to be given to the
object factory createFoo(…) methods. |
DEPRECATED_KEY, LOCALE_KEY
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Constructor and Description |
---|
ReferencingByIdentifiers(Map<String,?> properties,
ModifiableLocationType... types)
Creates a reference system from the given properties.
|
Modifier and Type | Method and Description |
---|---|
protected long |
computeHashCode()
Invoked by
hashCode() for computing the hash code when first needed. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares this reference system with the specified object for equality.
|
protected String |
formatTo(Formatter formatter)
Formats a pseudo-Well Known Text (WKT) representation for this object.
|
List<? extends ModifiableLocationType> |
getLocationTypes()
Description of location type(s) in the spatial reference system.
|
AbstractParty |
getOverallOwner()
Authority with overall responsibility for the spatial reference system.
|
InternationalString |
getTheme()
Property used to characterize the spatial reference system.
|
getDomainOfValidity, getInterface, getScope
castOrCopy, equals, getAlias, getDescription, getIdentifiers, getName, getRemarks, hashCode, isDeprecated, isHeuristicMatchForName
print, toString, toString, toWKT
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAlias, getIdentifiers, getName, getRemarks, toWKT
public static final String THEME_KEY
"theme"
property to be given to the
object factory createFoo(…)
methods.
This is used for setting the value to be returned by getTheme()
.getTheme()
,
Constant Field Valuespublic static final String OVERALL_OWNER_KEY
"overallOwner"
property to be given to the
object factory createFoo(…)
methods.
This is used for setting the value to be returned by getOverallOwner()
.getOverallOwner()
,
Constant Field Valuespublic ReferencingByIdentifiers(Map<String,?> properties, ModifiableLocationType... types)
Property name | Value type | Returned by |
---|---|---|
"theme" | String or InternationalString |
getTheme() |
"overallOwner" | Party |
getOverallOwner() |
Defined in parent class (reminder) | ||
"name" | Identifier or String |
AbstractIdentifiedObject.getName() |
"alias" | GenericName or CharSequence (optionally as array) |
AbstractIdentifiedObject.getAlias() |
"identifiers" | Identifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
"remarks" | InternationalString or String |
AbstractIdentifiedObject.getRemarks() |
"domainOfValidity" | Extent |
AbstractReferenceSystem.getDomainOfValidity() |
"scope" | InternationalString or String |
AbstractReferenceSystem.getScope() |
LocationType
instances as per
ModifiableLocationType.snapshot(ReferenceSystemUsingIdentifiers, LocationType...)
.
Changes in the given location types after construction will not affect this ReferencingByIdentifiers
.
org.opengis.referencing.gazetteer.LocationType
interface.
This change is pending GeoAPI revision.properties
- the properties to be given to the reference system.types
- description of location type(s) in the spatial reference system.public InternationalString getTheme()
ModifiableLocationType.getTheme()
public AbstractParty getOverallOwner()
org.opengis.metadata.citation.Party
interface. This change is pending
GeoAPI revision for upgrade from ISO 19115:2003 to ISO 19115:2014.ModifiableLocationType.getOwner()
,
AbstractLocation.getAdministrator()
public List<? extends ModifiableLocationType> getLocationTypes()
org.opengis.referencing.gazetteer.Location
interface.
This change is pending GeoAPI revision.ModifiableLocationType.getReferenceSystem()
public boolean equals(Object object, ComparisonMode mode)
mode
argument value is STRICT
or
BY_CONTRACT
, then all available properties are
compared including the theme and
the overall owner.equals
in interface LenientComparable
equals
in class AbstractReferenceSystem
object
- the object to compare to this
.mode
- STRICT
for performing a strict comparison, or
IGNORE_METADATA
for comparing only
properties relevant to location identifications.true
if both objects are equal.AbstractIdentifiedObject.computeHashCode()
,
Utilities.deepEquals(Object, Object, ComparisonMode)
protected long computeHashCode()
hashCode()
for computing the hash code when first needed.
See AbstractIdentifiedObject.computeHashCode()
for more information.computeHashCode
in class AbstractReferenceSystem
@Debug protected String formatTo(Formatter formatter)
formatTo
in class AbstractIdentifiedObject
formatter
- the formatter where to format the inner content of this pseudo-WKT element.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.