| org.geotools.metadata.ModifiableMetadata org.geotools.metadata.iso.MetadataEntity
All known Subclasses: org.geotools.metadata.iso.lineage.LineageImpl, org.geotools.metadata.iso.identification.KeywordsImpl, org.geotools.metadata.iso.citation.AddressImpl, org.geotools.metadata.iso.distribution.DistributorImpl, org.geotools.metadata.iso.spatial.DimensionImpl, org.geotools.metadata.iso.citation.ContactImpl, org.geotools.metadata.iso.distribution.MediumImpl, org.geotools.metadata.iso.lineage.ProcessStepImpl, org.geotools.metadata.iso.citation.SeriesImpl, org.geotools.metadata.iso.ApplicationSchemaInformationImpl, org.geotools.metadata.iso.citation.OnLineResourceImpl, org.geotools.metadata.iso.citation.TelephoneImpl, org.geotools.metadata.iso.distribution.StandardOrderProcessImpl, org.geotools.metadata.iso.quality.ScopeImpl, org.geotools.metadata.iso.identification.IdentificationImpl, org.geotools.metadata.iso.citation.ResponsiblePartyImpl, org.geotools.metadata.iso.spatial.GeometricObjectsImpl, org.geotools.metadata.iso.identification.ResolutionImpl, org.geotools.metadata.iso.maintenance.ScopeDescriptionImpl, org.geotools.metadata.iso.quality.ResultImpl, org.geotools.metadata.iso.SpatialAttributeSupplementImpl, org.geotools.metadata.iso.spatial.SpatialRepresentationImpl, org.geotools.metadata.iso.extent.TemporalExtentImpl, org.geotools.metadata.iso.quality.ElementImpl, org.geotools.metadata.iso.identification.BrowseGraphicImpl, org.geotools.metadata.iso.IdentifierImpl, org.geotools.metadata.iso.extent.ExtentImpl, org.geotools.metadata.iso.distribution.FormatImpl, org.geotools.metadata.iso.identification.UsageImpl, org.geotools.metadata.iso.quality.DataQualityImpl, org.geotools.metadata.iso.distribution.DistributionImpl, org.geotools.metadata.iso.extent.VerticalExtentImpl, org.geotools.metadata.iso.maintenance.MaintenanceInformationImpl, org.geotools.metadata.iso.extent.GeographicExtentImpl, org.geotools.metadata.iso.PortrayalCatalogueReferenceImpl, org.geotools.metadata.iso.ExtendedElementInformationImpl, org.geotools.metadata.iso.MetadataExtensionInformationImpl, org.geotools.metadata.iso.citation.CitationDateImpl, org.geotools.metadata.iso.MetaDataImpl, org.geotools.metadata.iso.citation.CitationImpl, org.geotools.metadata.iso.FeatureTypeListImpl, org.geotools.metadata.iso.distribution.DigitalTransferOptionsImpl, org.geotools.metadata.iso.lineage.SourceImpl, org.geotools.metadata.iso.constraint.ConstraintsImpl, org.geotools.metadata.iso.content.ContentInformationImpl, org.geotools.metadata.iso.content.RangeDimensionImpl,
MetadataEntity | public class MetadataEntity extends ModifiableMetadata implements Serializable(Code) | | 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 25189 2007-04-17 13:23:47Z desruisseaux $ author: Jody Garnett author: Martin Desruisseaux |
Constructor Summary | |
protected | MetadataEntity() Constructs an initially empty metadata entity. | protected | MetadataEntity(Object source) Constructs a metadata entity initialized with the values from the specified metadata. |
MetadataEntity | protected MetadataEntity()(Code) | | Constructs an initially empty metadata entity.
|
MetadataEntity | protected MetadataEntity(Object source) throws ClassCastException(Code) | | 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: ClassCastException - if the specified metadata don't implements the expectedmetadata interface. since: 2.4 |
ensureNonNull | protected static void ensureNonNull(String name, Object object) throws InvalidMetadataException(Code) | | Makes sure that an argument is non-null. This is used for checking if
a mandatory attribute is presents.
Parameters: name - Argument name. Parameters: object - User argument. throws: InvalidMetadataException - if object is null. since: 2.4 |
getStandard | public MetadataStandard getStandard()(Code) | | Returns the metadata standard implemented by subclasses,
which is
.
since: 2.4 |
unmodifiable | protected static Object unmodifiable(Object object)(Code) | | Returns an unmodifiable copy of the the specified object. This method is used for
implementation of
MetadataEntity.freeze method by subclasses. This method performs the
following heuristic tests:
- If the specified object is an instance of
MetadataEntity , then
MetadataEntity.unmodifiable() is invoked on this object.
- Otherwise, if the object is a
, then the collection is cloned and all its
elements are replaced by their unmodifiable variant. If the collection is not
cloneable, then it is assumed immutable and returned unchanged.
- Otherwise, the object is assumed immutable and returned unchanged.
Parameters: object - The object to convert in an immutable one. A presumed immutable view of the specified object.MetadataEntity.freeze |
|
|