public abstract class InvCatalog extends Object
Modifier and Type | Field and Description |
---|---|
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 |
Modifier | Constructor and Description |
---|---|
protected |
InvCatalog()
Protected constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public String getName()
public String getVersion()
public InvDatasetImpl getDataset()
public InvDataset findDatasetByID(String id)
id
- : dataset ID, case sensitivepublic List<InvDataset> getDatasets()
public List<InvService> getServices()
public List<InvProperty> getProperties()
public String findProperty(String name)
name
- match this namepublic DateType getExpires()
public InvService findService(String name)
name
- match this namepublic URI resolveUri(String uriString) throws URISyntaxException
uriString
- any url, reletive or absoluteURISyntaxException
- 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 herepublic 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.Copyright © 1999–2018 UCAR/Unidata. All rights reserved.