org.geotools.metadata.iso
Class MetadataEntity

java.lang.Object
  extended by org.geotools.metadata.AbstractMetadata
      extended by org.geotools.metadata.ModifiableMetadata
          extended by org.geotools.metadata.iso.MetadataEntity
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable
Direct Known Subclasses:
AddressImpl, ApplicationSchemaInformationImpl, BrowseGraphicImpl, CitationDateImpl, CitationImpl, ConstraintsImpl, ContactImpl, ContentInformationImpl, DataQualityImpl, DigitalTransferOptionsImpl, DimensionImpl, DistributionImpl, DistributorImpl, ElementImpl, ExtendedElementInformationImpl, ExtentImpl, FeatureTypeListImpl, FormatImpl, GeographicExtentImpl, GeometricObjectsImpl, IdentificationImpl, IdentifierImpl, KeywordsImpl, LineageImpl, MaintenanceInformationImpl, MediumImpl, MetadataExtensionInformationImpl, MetaDataImpl, OnLineResourceImpl, PortrayalCatalogueReferenceImpl, ProcessStepImpl, RangeDimensionImpl, ResolutionImpl, ResponsiblePartyImpl, ResultImpl, ScopeDescriptionImpl, ScopeImpl, SeriesImpl, SourceImpl, SpatialAttributeSupplementImpl, SpatialRepresentationImpl, StandardOrderProcessImpl, TelephoneImpl, TemporalExtentImpl, UsageImpl, VerticalExtentImpl

public class MetadataEntity
extends ModifiableMetadata
implements java.io.Serializable

A superclass for implementing ISO 19115 metadata interfaces. Subclasses must implement at least one of the ISO MetaData interface provided by GeoAPI.

Since:
2.1
Version:
$Id: MetadataEntity.java 31557 2008-09-19 20:02:35Z desruisseaux $
Author:
Jody Garnett, Martin Desruisseaux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.geotools.metadata.AbstractMetadata
LOGGER
 
Constructor Summary
protected MetadataEntity()
          Constructs an initially empty metadata entity.
protected MetadataEntity(java.lang.Object source)
          Constructs a metadata entity initialized with the values from the specified metadata.
 
Method Summary
protected static void ensureNonNull(java.lang.String name, java.lang.Object object)
          Makes sure that an argument is non-null.
 MetadataStandard getStandard()
          Returns the metadata standard implemented by subclasses, which is ISO 19115.
 
Methods inherited from class org.geotools.metadata.ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
 
Methods inherited from class org.geotools.metadata.AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetadataEntity

protected MetadataEntity()
Constructs an initially empty metadata entity.


MetadataEntity

protected MetadataEntity(java.lang.Object source)
                  throws java.lang.ClassCastException
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.
Throws:
java.lang.ClassCastException - if the specified metadata don't implements the expected metadata interface.
Since:
2.4
Method Detail

getStandard

public MetadataStandard getStandard()
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

ensureNonNull

protected static void ensureNonNull(java.lang.String name,
                                    java.lang.Object object)
                             throws InvalidMetadataException
Makes sure that an argument is non-null. This is used for checking if a mandatory attribute is presents.

Parameters:
name - Argument name.
object - User argument.
Throws:
InvalidMetadataException - if object is null.
Since:
2.4


Copyright © 1996-2010 Geotools. All Rights Reserved.