Interface DatasetCatalogue
-
- All Known Subinterfaces:
WmsCatalogue
- All Known Implementing Classes:
DataCatalogue
public interface DatasetCatalogueA catalogue ofDatasets and the default plotting information for the Variables contained within them- Author:
- Guy Griffiths
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Dataset>getAllDatasets()DatasetgetDatasetFromId(String datasetId)Returns aDatasetfrom its IDorg.joda.time.DateTimegetLastUpdateTime()EnhancedVariableMetadatagetLayerMetadata(VariableMetadata variableMetadata)ReturnsEnhancedVariableMetadatagiving for a given layer.
-
-
-
Method Detail
-
getAllDatasets
Collection<Dataset> getAllDatasets()
- Returns:
- All available
Datasets in thisDatasetCatalogue. Will returnnullin cases where this information is not available (e.g. allDatasets are dynamically generated)
-
getDatasetFromId
Dataset getDatasetFromId(String datasetId)
Returns aDatasetfrom its ID- Parameters:
datasetId- The ID of the dataset- Returns:
- The desired dataset, or
nullif it doesn't exist in the catalogue
-
getLayerMetadata
EnhancedVariableMetadata getLayerMetadata(VariableMetadata variableMetadata) throws EdalLayerNotFoundException
ReturnsEnhancedVariableMetadatagiving for a given layer. This gives default values for scale range, palette etc., as well as metadata such as title, description, etc.- Parameters:
variableMetadata- TheVariableMetadataof the desired layer- Returns:
- Default metadata values for the desired layer
- Throws:
EdalLayerNotFoundException
-
getLastUpdateTime
org.joda.time.DateTime getLastUpdateTime()
- Returns:
- The
DateTimeat which thisDatasetCataloguewas last updated
-
-