public class DodsDirDatasetSource extends DatasetSource
Title: Catalog Generator
Description: Tool for generating THREDDS catalogs.
Copyright: Copyright (c) 2001
Company: UCAR/Unidata
accessPointDataset, addDatasetSize, catalogRefInfoList, createCatalogRefs, datasetEnhancerList, datasetFilterList, datasetNamerList, datasetSorter, isValid, msgLog, resultingCatalog, type
Constructor and Description |
---|
DodsDirDatasetSource() |
Modifier and Type | Method and Description |
---|---|
protected InvDataset |
createDataset(java.lang.String datasetLocation,
java.lang.String prefixUrlPath)
Creates an InvDataset to represent the dataset at the given location
on this DatasetSource.
|
protected InvCatalog |
createSkeletonCatalog(java.lang.String prefixUrlPath)
Build an unnamed InvCatalog for this DatasetSource and return the
top-level InvDataset.
|
protected java.util.List |
expandThisLevel(InvDataset dataset,
java.lang.String prefixUrlPath)
Return a list of the InvDatasets contained in the given collection dataset
on this DatasetSource.
|
protected boolean |
isCollection(InvDataset dataset)
Return true if the given dataset is a collection dataset, false otherwise.
|
addDatasetEnhancer, addDatasetFilter, addDatasetNamer, equals, expand, expand, fullExpand, getAccessPoint, getCatalogRefInfoList, getDatasetEnhancerList, getDatasetFilterList, getDatasetNamerList, getDatasetSorter, getName, getPrefixUrlPath, getResultingCatalog, getResultService, getStructure, getType, hashCode, isAddDatasetSize, isCreateCatalogRefs, isFlatten, newDatasetSource, setAccessPoint, setAddDatasetSize, setCreateCatalogRefs, setDatasetSorter, setName, setPrefixUrlPath, setResultService, setStructure, toString, validate
protected InvDataset createDataset(java.lang.String datasetLocation, java.lang.String prefixUrlPath) throws java.io.IOException
DatasetSource
createDataset
in class DatasetSource
datasetLocation
- a String indicating the location of a dataset.prefixUrlPath
- a path name to be prefixed on the urlPathjava.io.IOException
- if the dataset location does not correspond to an actual dataset or is not below the accessPointHeader directory.protected InvCatalog createSkeletonCatalog(java.lang.String prefixUrlPath) throws java.io.IOException
createSkeletonCatalog
in class DatasetSource
java.io.IOException
- if top-level dataset does not exist or is not a collection dataset.protected boolean isCollection(InvDataset dataset)
isCollection
in class DatasetSource
dataset
- - the InvDataset to test for being a collection dataset.java.lang.NullPointerException
- if the given InvDataset is null.java.lang.ClassCastException
- if the given InvDataset is not a DodsDirInvDataset.protected java.util.List expandThisLevel(InvDataset dataset, java.lang.String prefixUrlPath)
expandThisLevel
in class DatasetSource
dataset
- - the collection dataset to be expanded.java.lang.IllegalArgumentException
- when given dataset is not a collection dataset.java.lang.NullPointerException
- if given dataset is null.java.lang.ClassCastException
- if the given InvDataset is not a DodsDirInvDataset.