@ThreadSafe public class ISOMetadata extends ModifiableMetadata implements IdentifiedObject, Serializable
Defined in the sis-metadata module
Modifier and Type | Field and Description |
---|---|
protected Collection<Identifier> |
identifiers
All identifiers associated with this metadata, or
null if none. |
static Logger |
LOGGER
The logger for warnings emitted by any class in the
org.apache.sis.metadata.iso.* packages. |
Modifier | Constructor and Description |
---|---|
protected |
ISOMetadata()
Constructs an initially empty metadata.
|
protected |
ISOMetadata(Object object)
Constructs a new metadata initialized with the values from the specified object.
|
Modifier and Type | Method and Description |
---|---|
IdentifierMap |
getIdentifierMap()
A map view of the identifiers collection
as (authority, code) entries.
|
Collection<Identifier> |
getIdentifiers()
Returns all identifiers associated to this object.
|
MetadataStandard |
getStandard()
Returns the metadata standard implemented by subclasses,
which is ISO 19115.
|
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public static final Logger LOGGER
org.apache.sis.metadata.iso.*
packages.
Warnings are emitted when an action causes the lost of data. For example the "distance"
and
"equivalentScale"
properties in DefaultResolution
are mutually exclusive: setting one discards the other. In such case, a warning is logged.protected Collection<Identifier> identifiers
null
if none.
This field is initialized to a non-null value when first needed.protected ISOMetadata()
protected ISOMetadata(Object object)
IdentifiedObject
, then this constructor
copies the collection of identifiers.object
- The metadata to copy values from, or null
if none.public MetadataStandard getStandard()
Note: Subclasses shall not override this method in a way that depends on the object state, since this method may be indirectly invoked by copy constructors (i.e. is may be invoked before this metadata object is fully constructed).
getStandard
in class AbstractMetadata
public Collection<Identifier> getIdentifiers()
getIdentifiers
in interface IdentifiedObject
DefaultCitation.getIdentifiers()
,
DefaultObjective.getIdentifiers()
,
org.apache.sis.referencing.AbstractIdentifiedObject#getIdentifiers()
public IdentifierMap getIdentifierMap()
There is usually a one-to-one relationship between the map entries and the identifier elements, but not always:
Map
view.Citation
interface defines separated attributes for ISBN, ISSN and other identifiers. This map
view may choose to unify all those attributes in a single view.put
operations
if and only if this IdentifiedObject
is modifiable.
The default implementation returns a wrapper around the identifiers
list.
That map is live: changes in the identifiers list will be reflected in the map,
and conversely.
getIdentifierMap
in interface IdentifiedObject
Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.