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. |
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 |
---|---|
void |
freeze()
Declares this metadata and all its properties as unmodifiable.
|
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, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
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
public void freeze()
UnmodifiableMetadataException
.
If this metadata is already unmodifiable, then this method does nothing.
Subclasses usually do not need to override this method since the default implementation performs most of its work using Java reflection.
freeze
in class ModifiableMetadata
ModifiableMetadata.isModifiable()
,
ModifiableMetadata.checkWritePermission()
Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.