|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectNetcdfIdentifiedObject
public abstract class NetcdfIdentifiedObject
Base class of wrappers around NetCDF objects. All methods in this class delegate their work
to the wrapped NetCDF object. Consequently any change in the wrapped object is immediately
reflected in this NetcdfIdentifiedObject instance. However users are encouraged to not
change the wrapped object after construction, since GeoAPI referencing objects are expected
to be immutable.
This base class assumes that NetCDF objects have a single name and no alias. This assumption
allows us to implement directly the ReferenceIdentifier interface. The NetCDF object
name is returned by the getCode() method.
| coverage/geotk-coverageio-netcdf (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Fields inherited from interface ReferenceIdentifier |
|---|
CODESPACE_KEY, VERSION_KEY |
| Fields inherited from interface Identifier |
|---|
AUTHORITY_KEY, CODE_KEY |
| Constructor Summary | |
|---|---|
protected |
NetcdfIdentifiedObject()
Creates a new NetcdfIdentifiedObject instance. |
| Method Summary | |
|---|---|
abstract Object |
delegate()
Returns the wrapped NetCDF object on which operations are delegated. |
boolean |
equals(Object other)
Compares this object with the given object for equality. |
Collection<GenericName> |
getAlias()
Returns an empty set, since NetCDF objects don't provide alternative name. |
Citation |
getAuthority()
Returns the NETCDF citation. |
abstract String |
getCode()
Returns a code which identify this instance. |
String |
getCodeSpace()
Returns the "NetCDF" constant, which is used as the code space. |
Set<ReferenceIdentifier> |
getIdentifiers()
Returns an empty set, since NetCDF objects don't provide other identifiers than the name. |
ReferenceIdentifier |
getName()
Returns the name of this identified object. |
InternationalString |
getRemarks()
Returns the NetCDF object description, or null if none. |
String |
getVersion()
Returns the version of the NetCDF library. |
int |
hashCode()
Returns a hash code value for this object. |
String |
toString()
Returns a string representation of this object name. |
String |
toWKT()
Returns a Well Known Text representation of this object, if this operation is supported. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected NetcdfIdentifiedObject()
NetcdfIdentifiedObject instance.
| Method Detail |
|---|
public abstract Object delegate()
public Citation getAuthority()
getAuthority in interface Identifierpublic String getCodeSpace()
"NetCDF" constant, which is used as the code space.
getCodeSpace in interface ReferenceIdentifierpublic String getVersion()
META-INF/MANIFEST.MF file in
the NetCDF JAR file.
getVersion in interface ReferenceIdentifierpublic abstract String getCode()
getName() method of the wrapped NetCDF object.
getCode in interface Identifierpublic ReferenceIdentifier getName()
this, so subclasses shall returns the name in their implementation of
the getCode() method.
getName in interface IdentifiedObjectpublic Collection<GenericName> getAlias()
getAlias in interface IdentifiedObjectpublic Set<ReferenceIdentifier> getIdentifiers()
getIdentifiers in interface IdentifiedObjectpublic InternationalString getRemarks()
null if none.
The default implementation returns null.
getRemarks in interface IdentifiedObjectpublic boolean equals(Object other)
true if the given object is non-null, wraps an object of the same
class than this object and the wrapped NetCDF objects are equal.
equals in class Objectother - The other object to compare with this object.
true if both objects are equal.public int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
public String toWKT()
throws UnsupportedOperationException
toWKT in interface IdentifiedObjectUnsupportedOperationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||