public interface IdentifiedObject
Stringin a namespace identified by a
Citation. The namespace can be some organization like EPSG for Coordinate Reference System objects, or a well-known acronym like ISBN for International Standard Book Number.
When an identified object is marshalled in a ISO 19139 compliant XML document, some identifiers
are handled in a special way: they appear as
attributes of the XML element. Those identifiers can be specified using the
enum values as below:
IdentifiedObject object = ...; object.getIdentifierMap().put(IdentifierSpace.ID, "myID");
Processing, etc.) have an explicit single identifier attribute, while other GeoAPI objects (
IdentifiedObject, etc.) allow an arbitrary number of identifiers. However GeoAPI does not define explicit methods for handling the
hrefattributes, since they are specific to XML marshalling (they do not appear in OGC/ISO abstract specifications). This
IdentifiedObjectinterface provides a way to handle those identifiers.
Note that GeoAPI defines a similar interface, also named
However that GeoAPI interface is not of general use, since it contains methods like
toWKT() that are specific to referencing
or geometric objects. In addition, the GeoAPI interface defines some attributes
remarks) that are not needed
for the purpose of handling XML
ReferenceResolver.newIdentifiedObject(MarshalContext, Class, Identifier)
Defined in the
|Modifier and Type||Method and Description|
A map view of the identifiers collection as (authority, code) entries.
Returns all identifiers associated to this object.
Collection<? extends Identifier> getIdentifiers()
There is usually a one-to-one relationship between the map entries and the identifier elements, but not always:
Citationinterface defines separated attributes for ISBN, ISSN and other identifiers. This map view may choose to unify all those attributes in a single view.
putoperations if and only if this
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.