|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectDefaultReferenceIdentifier
@Immutable public class DefaultReferenceIdentifier
An identification of a CoordinateReferenceSystem object.
| metadata/geotk-metadata (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from interface ReferenceIdentifier |
|---|
CODESPACE_KEY, VERSION_KEY |
| Fields inherited from interface Identifier |
|---|
AUTHORITY_KEY, CODE_KEY |
| Constructor Summary | |
|---|---|
DefaultReferenceIdentifier(Citation authority,
String codeSpace,
String code)
Creates a new identifier from the specified code and authority. |
|
DefaultReferenceIdentifier(Citation authority,
String codeSpace,
String code,
String version,
InternationalString remarks)
Creates a new identifier from the specified code and authority, with an optional version number and remarks. |
|
DefaultReferenceIdentifier(Map<String,?> properties)
Constructs an identifier from a set of properties. |
|
DefaultReferenceIdentifier(ReferenceIdentifier identifier)
Creates a new identifier from the specified one. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compares this object with the given one for equality. |
Citation |
getAuthority()
Organization or party responsible for definition and maintenance of the code. |
String |
getCode()
Identifier code or name, optionally from a controlled list or pattern. |
String |
getCodeSpace()
Name or identifier of the person or organization responsible for namespace. |
InternationalString |
getRemarks()
Comments on or information about this identifier, or null if none. |
String |
getVersion()
Identifier of the version of the associated code space or code, as specified by the code authority. |
int |
hashCode()
Returns a hash code value for this object. |
boolean |
isDeprecated()
Returns true if the object represented by this identifier is deprecated. |
String |
toString()
Returns a string representation of this identifier. |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultReferenceIdentifier(ReferenceIdentifier identifier)
identifier - The identifier to copy.
public DefaultReferenceIdentifier(Citation authority,
String codeSpace,
String code)
authority - Organization or party responsible for definition and maintenance of the code
space or code.codeSpace - Name or identifier of the person or organization responsible for namespace.
This is often an abbreviation of the authority name.code - Identifier code or name, optionally from a controlled list or pattern defined by
a code space. The code can not be null.
public DefaultReferenceIdentifier(Citation authority,
String codeSpace,
String code,
String version,
InternationalString remarks)
authority - Organization or party responsible for definition and maintenance of the code
space or code, or null if not available.codeSpace - Name or identifier of the person or organization responsible for namespace, or
null if not available. This is often an abbreviation of the authority name.code - Identifier code or name, optionally from a controlled list or pattern defined by
a code space. The code can not be null.version - The version of the associated code space or code as specified by the code authority,
or null if none.remarks - Comments on or information about this identifier, or null if none.
public DefaultReferenceIdentifier(Map<String,?> properties)
throws IllegalArgumentException
"code" property. Other properties listed in
the table below are optional.
| Property name | Value type | Value given to |
|---|---|---|
| "code" | String |
getCode() |
| "codespace" | String |
getCodeSpace() |
| "authority" | String or Citation |
getAuthority() |
| "version" | String |
getVersion() |
| "remarks" | String or InternationalString |
getRemarks() |
"remarks" is a localizable attributes which may have a language and country
code suffix. For example the "remarks_fr" property stands for remarks in
French and the "remarks_fr_CA" property stands
for remarks in French Canadian.
properties - The properties to be given to this identifier.
InvalidParameterValueException - if a property has an invalid value.
IllegalArgumentException - if a property is invalid for some other reason.| Method Detail |
|---|
public String getCode()
getCode in interface Identifiernull.NamedIdentifier.tip()public String getCodeSpace()
getCodeSpace in interface ReferenceIdentifiernull if not available.NamedIdentifier.head(),
NamedIdentifier.scope()public Citation getAuthority()
getAuthority in interface Identifiernull if not available.Citations.EPSGpublic String getVersion()
getVersion in interface ReferenceIdentifiernull if not available.public InternationalString getRemarks()
null if none.
public boolean isDeprecated()
true if the object represented by this identifier is deprecated. In such
case, the remarks may contains the new identifier to use.
The default implementation returns false in all cases.
isDeprecated in interface Deprecabletrue if this code is deprecated.AbstractIdentifiedObject.isDeprecated()public int hashCode()
hashCode in class Objectpublic boolean equals(Object object)
equals in class Objectobject - The object to compare with this identifier.
true if both objects are equal.public String toString()
Note: TheNamedIdentifiersubclass overrides this method with a different behavior, in order to be compliant with the contract of theGenericNameinterface.
toString in class ObjectIdentifiedObjects.toString(Identifier),
NamedIdentifier.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||