@Immutable public class Catalog extends DatasetNode
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATALOG_NAMESPACE_10 |
static org.jdom2.Namespace |
defNS |
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 |
XLINK_NAMESPACE |
static org.jdom2.Namespace |
xlinkNS |
static org.jdom2.Namespace |
xsiNS |
flds, name, parent
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(java.lang.String serviceName) |
java.net.URI |
getBaseURI() |
CalendarDate |
getExpires() |
java.util.List<Property> |
getProperties() |
java.util.List<Service> |
getServices() |
java.lang.String |
getUriString() |
java.lang.String |
getVersion() |
java.net.URI |
resolveUri(java.lang.String uriString)
Resolve reletive 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, getDatasets, getFlds, getName, getParent, getParentCatalog, getParentDataset, hasNestedDatasets
public static final java.lang.String CATALOG_NAMESPACE_10
public static final org.jdom2.Namespace defNS
public static final java.lang.String NJ22_NAMESPACE
public static final java.lang.String NJ22_NAMESPACE_HTTPS
public static final org.jdom2.Namespace ncmlNS
public static final org.jdom2.Namespace ncmlNSHttps
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 java.net.URI getBaseURI()
public CalendarDate getExpires()
public java.lang.String getVersion()
public java.util.List<Service> getServices()
public Service findService(java.lang.String serviceName)
public java.util.List<Property> getProperties()
public Dataset findDatasetByID(java.lang.String id)
public java.net.URI resolveUri(java.lang.String uriString) throws java.net.URISyntaxException
uriString
- any url, reletive or absolutejava.net.URISyntaxException
- if uriString violates RFC 2396URI.resolve(java.net.URI)
public static java.net.URI resolveUri(java.net.URI baseURI, java.lang.String uriString) throws java.net.URISyntaxException
java.net.URISyntaxException
public java.lang.String getUriString()