public class DatasetBuilder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.util.List<AccessBuilder> |
accessBuilders |
protected java.util.List<DatasetBuilder> |
datasetBuilders |
protected java.util.Map<java.lang.String,java.lang.Object> |
flds |
protected java.lang.String |
name |
protected DatasetBuilder |
parent |
protected java.util.List<Service> |
services |
Constructor and Description |
---|
DatasetBuilder(DatasetBuilder parent) |
DatasetBuilder(DatasetBuilder parent,
Dataset from) |
Modifier and Type | Method and Description |
---|---|
void |
addAccess(AccessBuilder d) |
void |
addDataset(DatasetBuilder d) |
void |
addServiceToCatalog(Service s) |
static void |
addToList(java.util.Map<java.lang.String,java.lang.Object> flds,
java.lang.String fldName,
java.lang.Object fldValue)
Utility routine to keep list of objects small.
|
void |
addToList(java.lang.String fldName,
java.lang.Object fldValue) |
static void |
addToNewList(java.util.Map<java.lang.String,java.lang.Object> flds,
java.lang.String fldName,
java.lang.Object fldValue) |
Dataset |
copyDataset(DatasetNode parent) |
java.lang.Object |
get(java.lang.String fldName) |
java.lang.Iterable<DatasetBuilder> |
getDatasets() |
java.lang.Object |
getFldOrInherited(java.lang.String fldName) |
ThreddsMetadata |
getInheritableMetadata() |
java.lang.String |
getName() |
DatasetBuilder |
getParent() |
java.lang.Iterable<Service> |
getServices() |
Dataset |
makeDataset(DatasetNode parent) |
void |
put(java.lang.String fldName,
java.lang.Object fldValue) |
void |
putInheritedField(java.lang.String fldName,
java.lang.Object fldValue) |
void |
setName(java.lang.String name) |
void |
transferInheritedMetadata(DatasetNode from) |
void |
transferMetadata(DatasetNode from,
boolean parentsAlso) |
protected DatasetBuilder parent
protected java.lang.String name
protected java.util.Map<java.lang.String,java.lang.Object> flds
protected java.util.List<AccessBuilder> accessBuilders
protected java.util.List<DatasetBuilder> datasetBuilders
protected java.util.List<Service> services
public DatasetBuilder(DatasetBuilder parent)
public DatasetBuilder(DatasetBuilder parent, Dataset from)
public static void addToList(java.util.Map<java.lang.String,java.lang.Object> flds, java.lang.String fldName, java.lang.Object fldValue)
public static void addToNewList(java.util.Map<java.lang.String,java.lang.Object> flds, java.lang.String fldName, java.lang.Object fldValue)
public DatasetBuilder getParent()
public java.lang.Object getFldOrInherited(java.lang.String fldName)
public java.lang.Object get(java.lang.String fldName)
public void put(java.lang.String fldName, java.lang.Object fldValue)
public void putInheritedField(java.lang.String fldName, java.lang.Object fldValue)
public void addToList(java.lang.String fldName, java.lang.Object fldValue)
public void setName(java.lang.String name)
public java.lang.String getName()
public void addDataset(DatasetBuilder d)
public void addAccess(AccessBuilder d)
public void addServiceToCatalog(Service s)
public Dataset makeDataset(DatasetNode parent)
public Dataset copyDataset(DatasetNode parent)
public java.lang.Iterable<DatasetBuilder> getDatasets()
public java.lang.Iterable<Service> getServices()
public void transferMetadata(DatasetNode from, boolean parentsAlso)
public void transferInheritedMetadata(DatasetNode from)
public ThreddsMetadata getInheritableMetadata()