public class ISOMetadata extends ModifiableMetadata implements IdentifiedObject, Serializable
Limitations:
XML
instead.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
Deprecated.
Messages related to XML (un)marshalling are now logged to the
"org.apache.sis.xml" logger. |
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
@Deprecated public static final Logger LOGGER
"org.apache.sis.xml"
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()
getStandard
in class AbstractMetadata
public Collection<Identifier> getIdentifiers()
getIdentifiers
in interface IdentifiedObject
DefaultCitation.getIdentifiers()
,
DefaultObjective.getIdentifiers()
,
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–2015 The Apache Software Foundation. All rights reserved.