org.geotools.temporal.reference
Class DefaultOrdinalReferenceSystem

Object
  extended by DefaultTemporalReferenceSystem
      extended by 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 ReferenceSystem
DOMAIN_OF_VALIDITY_KEY, SCOPE_KEY
 
Fields inherited from interface IdentifiedObject
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
 
Constructor Summary
DefaultOrdinalReferenceSystem(ReferenceIdentifier name, Extent domainOfValidity, Collection<OrdinalEra> ordinalEraSequence)
           
 
Method Summary
 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, getValidArea, setDomainOfValidity, setName, setScope, setValidArea
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface TemporalReferenceSystem
getDomainOfValidity, getName
 
Methods inherited from interface ReferenceSystem
getScope
 
Methods inherited from interface IdentifiedObject
getAlias, getIdentifiers, getRemarks
 

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 interface OrdinalReferenceSystem
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 interface IdentifiedObject
Overrides:
toWKT in class DefaultTemporalReferenceSystem
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 class DefaultTemporalReferenceSystem

hashCode

public int hashCode()
Overrides:
hashCode in class DefaultTemporalReferenceSystem

toString

public String toString()
Overrides:
toString in class DefaultTemporalReferenceSystem


Copyright © 1996-2014 Geotools. All Rights Reserved.