|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectthredds.catalog.InvCatalog
public abstract class InvCatalog
Public interface to a thredds catalog, a virtual directory of datasets. A catalog consists of nested collections of InvDatasets.
Field Summary | |
---|---|
protected URI |
baseURI
|
protected List<InvDataset> |
datasets
|
protected Map<String,InvDataset> |
dsHash
|
protected DateType |
expires
|
protected String |
name
|
protected List<InvProperty> |
properties
|
protected Map<String,InvService> |
serviceHash
|
protected List<InvService> |
services
|
protected InvDatasetImpl |
topDataset
|
protected String |
version
|
Constructor Summary | |
---|---|
protected |
InvCatalog()
Protected constructor. |
Method Summary | |
---|---|
boolean |
check(StringBuilder out)
Check internal data structures. |
abstract boolean |
check(StringBuilder out,
boolean show)
Check internal data structures. |
abstract void |
filter(DatasetFilter filter)
Munge this catalog to remove any dataset that doesnt pass through the filter. |
InvDataset |
findDatasetByID(String id)
Find a contained dataset by its ID. |
String |
findProperty(String name)
Find named property. |
InvService |
findService(String name)
Find the named service declared in the top level of this catalog. |
InvDatasetImpl |
getDataset()
Deprecated. use getDatasets() |
List<InvDataset> |
getDatasets()
Get top-level datasets. |
DateType |
getExpires()
Get date catalog expires, or null if none given. |
String |
getName()
Get the name of the catalog |
List<InvProperty> |
getProperties()
Get catalog properties. |
List<InvService> |
getServices()
Get top-level services. |
String |
getUriString()
Get the base URI as a String |
String |
getVersion()
Get the version of the catalog |
URI |
resolveUri(String uriString)
Resolve reletive URIs, using the catalog's base URI. |
abstract void |
subset(InvDataset dataset)
Munge this catalog so the given dataset is the top catalog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String name
protected String version
protected URI baseURI
protected InvDatasetImpl topDataset
protected Map<String,InvDataset> dsHash
protected Map<String,InvService> serviceHash
protected List<InvService> services
protected List<InvProperty> properties
protected List<InvDataset> datasets
protected DateType expires
Constructor Detail |
---|
protected InvCatalog()
Method Detail |
---|
public String getName()
public String getVersion()
public InvDatasetImpl getDataset()
public InvDataset findDatasetByID(String id)
id
- : dataset ID
public List<InvDataset> getDatasets()
public List<InvService> getServices()
public List<InvProperty> getProperties()
public String findProperty(String name)
name
- match this name
public DateType getExpires()
public InvService findService(String name)
name
- match this name
public URI resolveUri(String uriString) throws URISyntaxException
uriString
- any uri, reletive or absolute
URISyntaxException
- if uriString violates RFC 2396URI.resolve(java.net.URI)
public String getUriString()
public abstract boolean check(StringBuilder out, boolean show)
out
- : print errors hereshow
- : print messages for each object (debug)
public boolean check(StringBuilder out)
out
- : print errors here
public abstract void subset(InvDataset dataset)
dataset
- make this top; must be existing dataset in this catalog.public abstract void filter(DatasetFilter filter)
filter
- remove datasets that dont pass this filter.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |