|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthredds.catalog.CrawlableCatalog
public class CrawlableCatalog
Constructor Summary | |
---|---|
CrawlableCatalog(java.lang.String catalogURL,
java.lang.Object configObj)
Constructor. |
Method Summary | |
---|---|
boolean |
exists()
Return true if the dataset represented by this CrawlableDataset actually exists, null if it does not or an I/O error occurs. |
java.lang.Object |
getConfigObject()
Return the configuration Object (can be null). |
thredds.crawlabledataset.CrawlableDataset |
getDescendant(java.lang.String relativePath)
A factory method for getting a descendant of this datasets. |
java.lang.String |
getName()
Returns the dataset name, i.e., the last part of the dataset path. |
thredds.crawlabledataset.CrawlableDataset |
getParentDataset()
Returns the parent CrawlableDataset or null if this dataset has no parent. |
java.lang.String |
getPath()
Returns the dataset path. |
boolean |
isCollection()
Return true if the dataset is a collection dataset. |
java.util.Date |
lastModified()
Returns the date the dataset was last modified, null if unknown. |
long |
length()
Returns the size in bytes of the dataset, -1 if unknown. |
java.util.List<thredds.crawlabledataset.CrawlableDataset> |
listDatasets()
Returns the list of CrawlableDatasets contained in this collection dataset. |
java.util.List<thredds.crawlabledataset.CrawlableDataset> |
listDatasets(thredds.crawlabledataset.CrawlableDatasetFilter filter)
Returns the list of CrawlableDatasets contained in this collection dataset that satisfy the given filter. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CrawlableCatalog(java.lang.String catalogURL, java.lang.Object configObj)
catalogURL
- the catalog URLconfigObj
- a JDOM Element, example:
OPENDAP
Method Detail |
---|
public java.lang.Object getConfigObject()
thredds.crawlabledataset.CrawlableDataset
getConfigObject
in interface thredds.crawlabledataset.CrawlableDataset
public java.lang.String getPath()
thredds.crawlabledataset.CrawlableDataset
getPath
in interface thredds.crawlabledataset.CrawlableDataset
public java.lang.String getName()
thredds.crawlabledataset.CrawlableDataset
getName
in interface thredds.crawlabledataset.CrawlableDataset
public thredds.crawlabledataset.CrawlableDataset getParentDataset()
thredds.crawlabledataset.CrawlableDataset
getParentDataset
in interface thredds.crawlabledataset.CrawlableDataset
public boolean exists()
thredds.crawlabledataset.CrawlableDataset
exists
in interface thredds.crawlabledataset.CrawlableDataset
public boolean isCollection()
thredds.crawlabledataset.CrawlableDataset
isCollection
in interface thredds.crawlabledataset.CrawlableDataset
public thredds.crawlabledataset.CrawlableDataset getDescendant(java.lang.String relativePath)
thredds.crawlabledataset.CrawlableDataset
getDescendant
in interface thredds.crawlabledataset.CrawlableDataset
relativePath
- the path relative to this dataset of the requested dataset.
public java.util.List<thredds.crawlabledataset.CrawlableDataset> listDatasets() throws java.io.IOException
thredds.crawlabledataset.CrawlableDataset
listDatasets
in interface thredds.crawlabledataset.CrawlableDataset
java.io.IOException
- if an I/O error occurs while accessing the children datasets.public java.util.List<thredds.crawlabledataset.CrawlableDataset> listDatasets(thredds.crawlabledataset.CrawlableDatasetFilter filter) throws java.io.IOException
thredds.crawlabledataset.CrawlableDataset
listDatasets
in interface thredds.crawlabledataset.CrawlableDataset
filter
- a CrawlableDataset filter (if null, accept all datasets).
java.io.IOException
- if an I/O error occurs while accessing the children datasets.public long length()
thredds.crawlabledataset.CrawlableDataset
length
in interface thredds.crawlabledataset.CrawlableDataset
public java.util.Date lastModified()
thredds.crawlabledataset.CrawlableDataset
lastModified
in interface thredds.crawlabledataset.CrawlableDataset
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |