public class CatalogBuilder extends 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,
URI docBaseUri) |
Catalog |
buildFromLocation(String location,
URI baseURI) |
Catalog |
buildFromStream(InputStream stream,
URI docBaseUri) |
Catalog |
buildFromString(String catalogAsString,
URI docBaseUri) |
Catalog |
buildFromURI(URI uri) |
Iterable<DatasetBuilder> |
getDatasets() |
String |
getErrorMessage() |
DatasetBuilder |
getTopDataset() |
String |
getValidationMessage() |
boolean |
hasFatalError() |
boolean |
hasService(String name) |
boolean |
hasServiceInDataset(String name) |
Catalog |
makeCatalog() |
static ThreddsMetadata.Variable |
readVariable(org.jdom2.Element varElem) |
void |
removeAnyService() |
void |
setBaseURI(URI baseURI) |
void |
setExpires(CalendarDate expires) |
void |
setName(String name) |
void |
setVersion(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 buildFromStream(InputStream stream, URI docBaseUri)
public Iterable<DatasetBuilder> getDatasets()
public String getErrorMessage()
@Nullable public DatasetBuilder getTopDataset()
public String getValidationMessage()
public boolean hasFatalError()
public boolean hasService(String name)
public boolean hasServiceInDataset(String name)
public Catalog makeCatalog()
public static ThreddsMetadata.Variable readVariable(org.jdom2.Element varElem)
public void removeAnyService()
public void setBaseURI(URI baseURI)
public void setExpires(CalendarDate expires)
public void setName(String name)
public void setVersion(String version)