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_KEYDOMAIN_OF_VALIDITY_KEY, SCOPE_KEYALIAS_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, isHeuristicMatchForNameprint, toString, toString, toWKTclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetAlias, getIdentifiers, getName, getRemarks, toWKTpublic 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 ReferenceSystemnull.DefaultExtentpublic InternationalString getScope()
null if unspecified.getScope in interface ReferenceSystemnull.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 LenientComparableequals in class AbstractIdentifiedObjectobject - 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 AbstractIdentifiedObjectCopyright © 2010–2017 The Apache Software Foundation. All rights reserved.