org.geotoolkit.metadata.iso
Class MetadataEntity

Object
  extended by AbstractMetadata
      extended by ModifiableMetadata
          extended by MetadataEntity
All Implemented Interfaces:
Serializable, Cloneable, LenientComparable, IdentifiedObject
Direct Known Subclasses:
AbstractContentInformation, AbstractElement, AbstractGeographicExtent, AbstractGeolocationInformation, AbstractIdentification, AbstractResult, AbstractSpatialRepresentation, DefaultAcquisitionInformation, DefaultAddress, DefaultAggregateInformation, DefaultAlgorithm, DefaultApplicationSchemaInformation, DefaultBrowseGraphic, DefaultCitation, DefaultCitationDate, DefaultConstraints, DefaultContact, DefaultDataFile, DefaultDataQuality, DefaultDigitalTransferOptions, DefaultDimension, DefaultDistribution, DefaultDistributor, DefaultEnvironmentalRecord, DefaultEvent, DefaultExtendedElementInformation, DefaultExtent, DefaultFeatureTypeList, DefaultFormat, DefaultGCP, DefaultGeometricObjects, DefaultIdentifier, DefaultInstrument, DefaultKeywords, DefaultLineage, DefaultMaintenanceInformation, DefaultMedium, DefaultMetadata, DefaultMetadataExtensionInformation, DefaultNominalResolution, DefaultObjective, DefaultOnlineResource, DefaultOperation, DefaultPlan, DefaultPlatform, DefaultPlatformPass, DefaultPortrayalCatalogueReference, DefaultProcessing, DefaultProcessStep, DefaultProcessStepReport, DefaultRangeDimension, DefaultRangeElementDescription, DefaultRequestedDate, DefaultRequirement, DefaultResolution, DefaultResponsibleParty, DefaultScope, DefaultScopeDescription, DefaultSeries, DefaultSource, DefaultStandardOrderProcess, DefaultTelephone, DefaultTemporalExtent, DefaultUsage, DefaultVerticalExtent

Deprecated. Moved to the org.apache.sis.metadata.iso package as ISOMetadata.

@ThreadSafe
public class MetadataEntity
extends ModifiableMetadata
implements IdentifiedObject, Serializable

The base class of ISO 19115 implementation classes. Each sub-classes implements one of the ISO Metadata interface provided by GeoAPI.

This base class implements the IdentifiedObject interface, which implies that every subclasses can be associated to one or many identifiers. Those identifiers fall in two categories:

Since:
2.1
Version:
3.19
Author:
Martin Desruisseaux (IRD, Geomatys), Jody Garnett (Refractions)
See Also:
Serialized Form
Module:
metadata/geotk-metadata (download)    View source code for this class

Field Summary
protected  Collection<Identifier> identifiers
          Deprecated. All identifiers associated with this metadata, or null if none.
 
Fields inherited from class AbstractMetadata
LOGGER
 
Constructor Summary
protected MetadataEntity()
          Deprecated. Constructs an initially empty metadata entity.
protected MetadataEntity(Object source)
          Deprecated. Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
 Identifier getIdentifier()
          Deprecated. Convenience method returning the first identifier which is not an ISO 19139 identifier.
 IdentifierMap getIdentifierMap()
          Deprecated. A map view of identifiers.
 Collection<Identifier> getIdentifiers()
          Deprecated. Returns all identifiers associated to this object.
 MetadataStandard getStandard()
          Deprecated. Returns the metadata standard implemented by subclasses, which is ISO 19115.
 
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, prune, unmodifiable
 
Methods inherited from class AbstractMetadata
asMap, asTree, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, parse, toString
 
Methods inherited from class Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

identifiers

protected Collection<Identifier> identifiers
Deprecated. 
All identifiers associated with this metadata, or null if none. This field is initialized to a non-null value when first needed.

Since:
3.19
See Also:
getIdentifiers()
Constructor Detail

MetadataEntity

protected MetadataEntity()
Deprecated. 
Constructs an initially empty metadata entity.


MetadataEntity

protected MetadataEntity(Object source)
                  throws ClassCastException
Deprecated. 
Constructs a metadata entity initialized with the values from the specified metadata. The source metadata must implements the same metadata interface than this class.

Parameters:
source - The metadata to copy values from, or null if none.
Throws:
ClassCastException - if the specified metadata don't implements the expected metadata interface.
Since:
2.4
Method Detail

getStandard

public MetadataStandard getStandard()
Deprecated. 
Returns the metadata standard implemented by subclasses, which is ISO 19115.

Specified by:
getStandard in class AbstractMetadata
Returns:
The metadata standard implemented.
Since:
2.4

getIdentifier

public Identifier getIdentifier()
Deprecated. 
Convenience method returning the first identifier which is not an ISO 19139 identifier. The default implementation iterates over the identifiers collection, ignoring the identifiers having one of the IdentifierSpace authority.

Returns:
The first ISO 19115 identifier, or null if none.
Since:
3.19

getIdentifiers

public Collection<Identifier> getIdentifiers()
Deprecated. 
Returns all identifiers associated to this object. Each identifier code shall be unique in the identifier authority name space. Examples of namespace are:

Note that XML ID attribute are actually unique only in the scope of the XML document being processed.

Specified by:
getIdentifiers in interface IdentifiedObject
Returns:
All identifiers associated to this object, or an empty collection if none.
Since:
3.19
See Also:
DefaultCitation.getIdentifiers(), DefaultObjective.getIdentifiers(), AbstractIdentifiedObject.getIdentifiers()

getIdentifierMap

public IdentifierMap getIdentifierMap()
Deprecated. 
A map view of identifiers. Each map entry is associated to an element from the identifier collection in which the key is the identifier authority and the value is the identifier code.

There is usually a one-to-one relationship between the map entries and the identifier elements, but not always:

The map supports put operations if and only if this IdentifiedObject is modifiable.

The default implementation returns a wrapper around the identifier collection. That map is live: changes in this metadata object will be reflected in the map, and conversely.

Specified by:
getIdentifierMap in interface IdentifiedObject
Returns:
The identifiers as a map of (authority, code) entries, or an empty map if none.
Since:
3.19


Copyright © 2009-2013 Geotoolkit.org. All Rights Reserved.