|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.referencing.NamedIdentifier
An identification of a CRS object. The main interface implemented by this class
is Identifier. However, this class also implements GenericName in
order to make it possible to give identifiers in the list of
aliases. Casting an alias's
generic name to an identifier
gives access to more informations, like the URL of the authority.
The generic name will be infered from identifier attributes. More specifically, a scoped name will be constructed using the shortest authority's alternate titles (or the main title if there is no alternate titles) as the scope, and the code as the head. This heuristic rule seems raisonable since, according ISO 19115, the alternate titles often contains abreviation (for example "DCW" as an alternative title for "Digital Chart of the World").
| Field Summary |
| Fields inherited from interface org.opengis.metadata.Identifier |
AUTHORITY_KEY, CODE_KEY, VERSION_KEY |
| Constructor Summary | |
NamedIdentifier(org.opengis.metadata.citation.Citation authority,
org.opengis.util.InternationalString code)
Constructs an identifier from an authority and code informations. |
|
NamedIdentifier(org.opengis.metadata.citation.Citation authority,
java.lang.String code)
Constructs an identifier from an authority and code informations. |
|
NamedIdentifier(org.opengis.metadata.citation.Citation authority,
java.lang.String code,
java.lang.String version)
Constructs an identifier from an authority and code informations. |
|
NamedIdentifier(java.util.Map properties)
Constructs an identifier from a set of properties. |
|
| Method Summary | |
org.opengis.util.LocalName |
asLocalName()
Returns a view of this object as a local name. |
org.opengis.util.ScopedName |
asScopedName()
Returns a view of this object as a scoped name, or if this name has no scope. |
int |
compareTo(java.lang.Object object)
Compares this name with the specified object for order. |
boolean |
equals(java.lang.Object object)
Compares this identifier with the specified object for equality. |
org.opengis.metadata.citation.Citation |
getAuthority()
Organization or party responsible for definition and maintenance of the code. |
java.lang.String |
getCode()
Identifier code or name, optionally from a controlled list or pattern. |
java.util.List |
getParsedNames()
Returns the sequence of local names making this generic name. |
org.opengis.util.InternationalString |
getRemarks()
Comments on or information about this identifier, or if none. |
org.opengis.util.GenericName |
getScope()
Returns the scope (name space) of this generic name. |
java.lang.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 identifier. |
org.opengis.util.InternationalString |
toInternationalString()
Returns a local-dependent string representation of this generic name. |
java.lang.String |
toString()
Returns a string representation of this generic name. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NamedIdentifier(java.util.Map properties)
throws java.lang.IllegalArgumentException
"code" property. Other properties listed
in the table below are optional.
| Property name | Value type | Value given to |
|---|---|---|
"code" |
String |
getCode() |
"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.
org.opengis.parameter.InvalidParameterValueException - if a property has an invalid value.
java.lang.IllegalArgumentException - if a property is invalid for some other reason.
public NamedIdentifier(org.opengis.metadata.citation.Citation authority,
org.opengis.util.InternationalString code)
authority - The authority (e.g. OGC or EPSG).code - The code. The English name is used
for the code, and the international string is used for the
generic name.
public NamedIdentifier(org.opengis.metadata.citation.Citation authority,
java.lang.String code)
authority - The authority (e.g. OGC or EPSG).code - The code. This parameter is mandatory.
public NamedIdentifier(org.opengis.metadata.citation.Citation authority,
java.lang.String code,
java.lang.String version)
authority - The authority (e.g. OGC or EPSG).code - The code. This parameter is mandatory.version - The version, or if none.| Method Detail |
public java.lang.String getCode()
getCode in interface org.opengis.metadata.Identifierpublic org.opengis.metadata.citation.Citation getAuthority()
getAuthority in interface org.opengis.metadata.Identifierpublic java.lang.String getVersion()
getVersion in interface org.opengis.metadata.Identifierpublic org.opengis.util.InternationalString getRemarks()
public org.opengis.util.GenericName getScope()
getScope in interface org.opengis.util.GenericNamepublic org.opengis.util.ScopedName asScopedName()
asScopedName in interface org.opengis.util.GenericNamepublic org.opengis.util.LocalName asLocalName()
asLocalName in interface org.opengis.util.GenericNamepublic java.util.List getParsedNames()
getParsedNames in interface org.opengis.util.GenericNamepublic org.opengis.util.InternationalString toInternationalString()
toString() except that each element has
been localized in the specified locale.
If no international string is available, then this method returns an implementation mapping
to toString() for all locales.
toInternationalString in interface org.opengis.util.GenericNamepublic java.lang.String toString()
getParsedNames()
separated by an arbitrary character (usually or ).
toString in interface org.opengis.util.GenericNamepublic int compareTo(java.lang.Object object)
compareTo in interface java.lang.Comparablepublic boolean equals(java.lang.Object object)
public int hashCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||