Package org.geotools.temporal.reference
Class DefaultOrdinalReferenceSystem
- Object
-
- DefaultTemporalReferenceSystem
-
- DefaultOrdinalReferenceSystem
-
- All Implemented Interfaces:
IdentifiedObject
,ReferenceSystem
,OrdinalReferenceSystem
,TemporalReferenceSystem
public class DefaultOrdinalReferenceSystem extends DefaultTemporalReferenceSystem implements OrdinalReferenceSystem
- Author:
- Mehdi Sidhoum (Geomatys)
-
-
Field Summary
-
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
-
Fields inherited from interface ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
-
-
Constructor Summary
Constructors Constructor Description DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Collection<OrdinalEra>
getOrdinalEraSequence()
Get the set of ordinal eras of which this ordinal reference system consists of.int
hashCode()
String
toString()
String
toWKT()
Returns a Well Known Text (WKT) for this object.-
Methods inherited from class DefaultTemporalReferenceSystem
getAlias, getDomainOfValidity, getIdentifiers, getName, getRemarks, getScope, setDomainOfValidity, setName, setScope, setValidArea
-
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getRemarks
-
Methods inherited from interface ReferenceSystem
getScope
-
Methods inherited from interface TemporalReferenceSystem
getDomainOfValidity, getName
-
-
-
-
Constructor Detail
-
DefaultOrdinalReferenceSystem
public DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence)
-
-
Method Detail
-
getOrdinalEraSequence
public Collection<OrdinalEra> getOrdinalEraSequence()
Description copied from interface:OrdinalReferenceSystem
Get the set of ordinal eras of which this ordinal reference system consists of.- Specified by:
getOrdinalEraSequence
in interfaceOrdinalReferenceSystem
- Returns:
- A hierarchically-structured collection of ordinal eras.
-
toWKT
public String toWKT() throws UnsupportedOperationException
Description copied from interface:IdentifiedObject
Returns a Well Known Text (WKT) for this object. This operation may fails if an object is too complex for the WKT format capability (for example an engineering CRS with different unit for each axis).- Specified by:
toWKT
in interfaceIdentifiedObject
- Overrides:
toWKT
in classDefaultTemporalReferenceSystem
- Returns:
- The Well Know Text for this object.
- Throws:
UnsupportedOperationException
- If this object can't be formatted as WKT.
-
equals
public boolean equals(Object object)
- Overrides:
equals
in classDefaultTemporalReferenceSystem
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classDefaultTemporalReferenceSystem
-
toString
public String toString()
- Overrides:
toString
in classDefaultTemporalReferenceSystem
-
-