@Immutable public class Catalog extends DatasetNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATALOG_NAMESPACE_10 |
static java.lang.String |
DatasetHash |
static java.lang.String |
DatasetRoots |
static org.jdom2.Namespace |
defNS |
static java.lang.String |
Expires |
static org.jdom2.Namespace |
ncmlNS |
static org.jdom2.Namespace |
ncmlNSHttps |
static java.lang.String |
NJ22_NAMESPACE |
static java.lang.String |
NJ22_NAMESPACE_HTTPS |
static java.lang.String |
Services |
static java.lang.String |
Version |
static java.lang.String |
XLINK_NAMESPACE |
static org.jdom2.Namespace |
xlinkNS |
static org.jdom2.Namespace |
xsiNS |
Constructor and Description |
---|
Catalog(java.net.URI baseURI,
java.lang.String name,
java.util.Map<java.lang.String,java.lang.Object> flds,
java.util.List<DatasetBuilder> datasets) |
Modifier and Type | Method and Description |
---|---|
Dataset |
findDatasetByID(java.lang.String id) |
Service |
findService(ServiceType type) |
Service |
findService(java.lang.String serviceName) |
java.lang.Iterable<Dataset> |
getAllDatasets() |
java.net.URI |
getBaseURI() |
CalendarDate |
getExpires() |
java.util.List<Property> |
getProperties() |
java.util.List<Service> |
getServices() |
java.lang.String |
getUriString() |
java.lang.String |
getVersion() |
boolean |
hasService(java.lang.String name) |
java.net.URI |
resolveUri(java.lang.String uriString)
Resolve relative URIs, using the catalog's base URI.
|
static java.net.URI |
resolveUri(java.net.URI baseURI,
java.lang.String uriString) |
Catalog |
subsetCatalogOnDataset(Dataset dataset) |
findDatasetByName, get, getDatasets, getDatasetsLocal, getDatasetsLogical, getFldIterator, getLocalFieldAsList, getName, getParent, getParentCatalog, getParentDataset, hasNestedDatasets
public static final java.lang.String CATALOG_NAMESPACE_10
public static final java.lang.String DatasetHash
public static final java.lang.String DatasetRoots
public static final org.jdom2.Namespace defNS
public static final java.lang.String Expires
public static final org.jdom2.Namespace ncmlNS
public static final org.jdom2.Namespace ncmlNSHttps
public static final java.lang.String NJ22_NAMESPACE
public static final java.lang.String NJ22_NAMESPACE_HTTPS
public static final java.lang.String Services
public static final java.lang.String Version
public static final java.lang.String XLINK_NAMESPACE
public static final org.jdom2.Namespace xlinkNS
public static final org.jdom2.Namespace xsiNS
public Catalog(java.net.URI baseURI, java.lang.String name, java.util.Map<java.lang.String,java.lang.Object> flds, java.util.List<DatasetBuilder> datasets)
public Dataset findDatasetByID(java.lang.String id)
public Service findService(ServiceType type)
public Service findService(java.lang.String serviceName)
public java.lang.Iterable<Dataset> getAllDatasets()
public java.net.URI getBaseURI()
public CalendarDate getExpires()
public java.util.List<Property> getProperties()
public java.util.List<Service> getServices()
public java.lang.String getUriString()
public java.lang.String getVersion()
public boolean hasService(java.lang.String name)
public java.net.URI resolveUri(java.lang.String uriString) throws java.net.URISyntaxException
uriString
- any url, relative or absolutejava.net.URISyntaxException
- if uriString violates RFC 2396public static java.net.URI resolveUri(java.net.URI baseURI, java.lang.String uriString) throws java.net.URISyntaxException
java.net.URISyntaxException