Package thredds.client.catalog.builder
Class DatasetBuilder
- java.lang.Object
-
- thredds.client.catalog.builder.DatasetBuilder
-
- Direct Known Subclasses:
CatalogRefBuilder
public class DatasetBuilder extends Object
Builder of client catalog Dataset- Since:
- 1/8/2015
-
-
Field Summary
Fields Modifier and Type Field Description protected List<AccessBuilder>
accessBuilders
protected List<DatasetBuilder>
datasetBuilders
protected Map<String,Object>
flds
protected String
name
protected DatasetBuilder
parent
protected List<Service>
services
-
Constructor Summary
Constructors Constructor Description DatasetBuilder(DatasetBuilder parent)
DatasetBuilder(DatasetBuilder parent, Dataset from)
-
Method Summary
-
-
-
Field Detail
-
parent
protected DatasetBuilder parent
-
name
protected String name
-
accessBuilders
protected List<AccessBuilder> accessBuilders
-
datasetBuilders
protected List<DatasetBuilder> datasetBuilders
-
-
Constructor Detail
-
DatasetBuilder
public DatasetBuilder(DatasetBuilder parent)
-
DatasetBuilder
public DatasetBuilder(DatasetBuilder parent, Dataset from)
-
-
Method Detail
-
addToList
public static void addToList(Map<String,Object> flds, String fldName, Object fldValue)
Utility routine to keep list of objects small. add fldValue to the fldName list in flds. fldValue may be a list or an object. if no list, just keep the object without creating a list (common case). otherwise add it to the existing list.
-
addToNewList
public static void addToNewList(Map<String,Object> flds, String fldName, Object fldValue)
-
getParent
public DatasetBuilder getParent()
-
setName
public void setName(String name)
-
getName
public String getName()
-
addDataset
public void addDataset(DatasetBuilder d)
-
addAccess
public void addAccess(AccessBuilder d)
-
addServiceToCatalog
public void addServiceToCatalog(Service s)
-
makeDataset
public Dataset makeDataset(DatasetNode parent)
-
copyDataset
public Dataset copyDataset(DatasetNode parent)
-
getDatasets
public Iterable<DatasetBuilder> getDatasets()
-
transferMetadata
public void transferMetadata(DatasetNode from, boolean parentsAlso)
-
transferInheritedMetadata
public void transferInheritedMetadata(DatasetNode from)
-
getInheritableMetadata
public ThreddsMetadata getInheritableMetadata()
-
-