org.geotools.catalog
Interface CatalogEntry

All Known Subinterfaces:
TypeEntry, TypeEntry
All Known Implementing Classes:
DefaultTypeEntry, WMSLayerCatalogEntry

public interface CatalogEntry

The Catalog Entry contains all the metadata entities used to describe one resource. More specifically, an object of this class contains a collection of metadata entities which together describe the associated resource for the purpose of discovery. This collection of metadata entities is usually only a subset of all the MetaDataEntity that exists for the associated resource.

One or more of the metadata entities usually directly reference the associated resource, and provide the basic information needed to locate and subsequently access that resource, either directly or through an access service. When applicable, one or more of the included metadata entities may specify the spatial location of the resource. The spatial location could be defined by a (minimum bounding) rectangle, and/or by a polygon bounding the ground area covered. Perhaps the spatial location could be defined by any OpenGIS geometry. For example, the spatial location of a feature describing a single point could be defined by that point.

If the resource is a dataset, several of the included metadata entities may define the types of data included in the dataset, plus the quality of that data.

NOTE: The specification Catalog Services 1.1.1 does not specify the methods of the CatalogEntity interface. The methods in this interface were inferred from reading the abstract catalog specification: Catalog Services section 3.1.2

Version:
Catalog Services 1.1.1
Author:
OpenGIS® consortium

Method Summary
 java.lang.String getDataName()
          Used to obtain the name of Associated Data.
 java.lang.String[] getMetadataNames()
          Names of available metadata.
 java.util.Map metadata()
          Map of MetadataEntity by name Changes from GeoAPI Catalog discouver methods getNumMetadata() implemented as metadata().size() getMetadataNames() implemented as metadata().keys().toArray( new String[ map.size() ] ) getMetadata(String name) impelented as metadata().get( name ) iterator() implemented as metadata().values().iterator() MetadataEntity getMetadata(int index) not needed
 java.lang.Object resource()
          Each CatalogEntry describes a resource, this method provides access to that resource.
 

Method Detail

resource

public java.lang.Object resource()
Each CatalogEntry describes a resource, this method provides access to that resource.

Returns:
The resource described by current CatalogEntry.

getDataName

public java.lang.String getDataName()
Used to obtain the name of Associated Data.

Returns:
The name of the associated data.

metadata

public java.util.Map metadata()
Map of MetadataEntity by name

Changes from GeoAPI Catalog discouver methods


getMetadataNames

public java.lang.String[] getMetadataNames()
Names of available metadata.

Implemented as metadata().keys().toArray( new String[ metadata().size() ] )

Returns:
names of available metadata


Copyright © GeoTools. All Rights Reserved.