|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectthredds.cataloggen.config.DatasetSource
thredds.cataloggen.config.LocalDatasetSource
public class LocalDatasetSource
Concrete implementation of DatasetSource for local disk sources.
| Field Summary |
|---|
| Fields inherited from class thredds.cataloggen.config.DatasetSource |
|---|
accessPointDataset, addDatasetSize, catalogRefInfoList, createCatalogRefs, datasetEnhancerList, datasetFilterList, datasetNamerList, datasetSorter, isValid, msgLog, resultingCatalog, type |
| Method Summary | |
|---|---|
protected InvDataset |
createDataset(String datasetLocation,
String prefixUrlPath)
Creates an InvDataset to represent the dataset at the given location on this DatasetSource. |
protected InvCatalog |
createSkeletonCatalog(String prefixUrlPath)
Build an unnamed InvCatalog for this DatasetSource and return the top-level InvDataset. |
protected List |
expandThisLevel(InvDataset dataset,
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. |
| Methods inherited from class thredds.cataloggen.config.DatasetSource |
|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
protected InvDataset createDataset(String datasetLocation,
String prefixUrlPath)
throws IOException
DatasetSource
createDataset in class DatasetSourcedatasetLocation - a String indicating the location of a dataset.prefixUrlPath - a path name to be prefixed on the urlPath
IOException - if the dataset location does not correspond to an actual dataset or is not below the accessPointHeader directory.
protected InvCatalog createSkeletonCatalog(String prefixUrlPath)
throws IOException
createSkeletonCatalog in class DatasetSourceIOException - if top-level dataset does not exist or is not a collection dataset.protected boolean isCollection(InvDataset dataset)
isCollection in class DatasetSourcedataset - - the InvDataset to test for being a collection dataset.
NullPointerException - if the given InvDataset is null.
ClassCastException - if the given InvDataset is not a LocalInvDataset.
protected List expandThisLevel(InvDataset dataset,
String prefixUrlPath)
expandThisLevel in class DatasetSourcedataset - - the collection dataset to be expanded.
IllegalArgumentException - when given dataset is not a collection dataset.
NullPointerException - if given dataset is null.
ClassCastException - if the given InvDataset is not a LocalInvDataset.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||