public class AbstractReferenceSystem extends AbstractIdentifiedObject implements ReferenceSystem
AbstractCRS
subclass.
This class inherits the name, aliases, identifiers and remarks from the parent class, and adds the following information:
Default
instead.
ReferenceSystem
instances created using
only SIS factories and static constants can be shared by many objects and passed between threads without
synchronization.Defined in the sis-referencing
module
DEPRECATED_KEY, LOCALE_KEY
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Modifier | Constructor and Description |
---|---|
|
AbstractReferenceSystem(Map<String,?> properties)
Constructs a reference system from the given properties.
|
protected |
AbstractReferenceSystem(ReferenceSystem object)
Constructs a new reference system with the same values than the specified one.
|
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.
|
Extent |
getDomainOfValidity()
Returns the region or timeframe in which this reference system is valid, or
null if unspecified. |
Class<? extends ReferenceSystem> |
getInterface()
Returns the GeoAPI interface implemented by this class.
|
InternationalString |
getScope()
Returns the domain or limitations of usage, or
null if unspecified. |
castOrCopy, equals, formatTo, 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 AbstractReferenceSystem(Map<String,?> properties)
Property name | Value type | Returned by |
---|---|---|
"domainOfValidity" | Extent |
getDomainOfValidity() |
"scope" | String or InternationalString |
getScope() |
Defined in parent class (reminder) | ||
"name" | ReferenceIdentifier or String |
AbstractIdentifiedObject.getName() |
"alias" | GenericName or CharSequence (optionally as array) |
AbstractIdentifiedObject.getAlias() |
"identifiers" | ReferenceIdentifier (optionally as array) |
AbstractIdentifiedObject.getIdentifiers() |
"remarks" | InternationalString or String |
AbstractIdentifiedObject.getRemarks() |
properties
- the properties to be given to this object.protected AbstractReferenceSystem(ReferenceSystem object)
This constructor performs a shallow copy, i.e. the properties are not cloned.
object
- the reference system to copy.public Class<? extends ReferenceSystem> getInterface()
ReferenceSystem.class
.
Subclasses implementing a more specific GeoAPI interface shall override this method.getInterface
in class AbstractIdentifiedObject
@Workaround(library="JDK", version="1.8") public Extent getDomainOfValidity()
null
if unspecified.getDomainOfValidity
in interface ReferenceSystem
null
.DefaultExtent
public InternationalString getScope()
null
if unspecified.getScope
in interface ReferenceSystem
null
.public boolean equals(Object object, ComparisonMode mode)
mode
argument value is STRICT
or
BY_CONTRACT
, then all available properties are
compared including the domain of validity and
the scope.equals
in interface LenientComparable
equals
in class AbstractIdentifiedObject
object
- the object to compare to this
.mode
- STRICT
for performing a strict comparison, or
IGNORE_METADATA
for comparing only
properties relevant to coordinate transformations.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 AbstractIdentifiedObject
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.