public class CatalogBuilder
extends java.lang.Object
Constructor and Description |
---|
CatalogBuilder() |
CatalogBuilder(Catalog from) |
Modifier and Type | Method and Description |
---|---|
void |
addDataset(DatasetBuilder d) |
void |
addProperty(Property p) |
void |
addService(Service s) |
Catalog |
buildFromCatref(CatalogRef catref) |
Catalog |
buildFromJdom(org.jdom2.Element root,
java.net.URI docBaseUri) |
Catalog |
buildFromLocation(java.lang.String location,
java.net.URI baseURI) |
Catalog |
buildFromStream(java.io.InputStream stream,
java.net.URI docBaseUri) |
Catalog |
buildFromString(java.lang.String catalogAsString,
java.net.URI docBaseUri) |
Catalog |
buildFromURI(java.net.URI uri) |
java.lang.Iterable<DatasetBuilder> |
getDatasets() |
java.lang.String |
getErrorMessage() |
DatasetBuilder |
getTopDataset() |
java.lang.String |
getValidationMessage() |
boolean |
hasFatalError() |
boolean |
hasService(java.lang.String name) |
boolean |
hasServiceInDataset(java.lang.String name) |
Catalog |
makeCatalog() |
static ThreddsMetadata.Variable |
readVariable(org.jdom2.Element varElem) |
void |
removeAnyService() |
void |
setBaseURI(java.net.URI baseURI) |
void |
setExpires(CalendarDate expires) |
void |
setName(java.lang.String name) |
void |
setVersion(java.lang.String version) |
public CatalogBuilder()
public CatalogBuilder(Catalog from)
public void addDataset(DatasetBuilder d)
public void addProperty(Property p)
public void addService(Service s)
public Catalog buildFromCatref(CatalogRef catref)
public Catalog buildFromJdom(org.jdom2.Element root, java.net.URI docBaseUri)
public Catalog buildFromLocation(java.lang.String location, java.net.URI baseURI)
public Catalog buildFromStream(java.io.InputStream stream, java.net.URI docBaseUri)
public Catalog buildFromString(java.lang.String catalogAsString, java.net.URI docBaseUri)
public Catalog buildFromURI(java.net.URI uri)
public java.lang.Iterable<DatasetBuilder> getDatasets()
public java.lang.String getErrorMessage()
@Nullable public DatasetBuilder getTopDataset()
public java.lang.String getValidationMessage()
public boolean hasFatalError()
public boolean hasService(java.lang.String name)
public boolean hasServiceInDataset(java.lang.String name)
public Catalog makeCatalog()
public static ThreddsMetadata.Variable readVariable(org.jdom2.Element varElem)
public void removeAnyService()
public void setBaseURI(java.net.URI baseURI)
public void setExpires(CalendarDate expires)
public void setName(java.lang.String name)
public void setVersion(java.lang.String version)