use of eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.SourceDataStoresPropertyType.DataStore.Parameters.Parameter in project hale by halestudio.
the class AppSchemaMappingWrapper method cloneDataStore.
static DataStore cloneDataStore(DataStore ds) {
DataStore clone = new DataStore();
clone.setParameters(new Parameters());
clone.setId(ds.getId());
clone.setIdAttribute(ds.getIdAttribute());
if (ds.getParameters() != null) {
for (Parameter param : ds.getParameters().getParameter()) {
Parameter paramClone = new Parameter();
paramClone.setName(param.getName());
paramClone.setValue(param.getValue());
clone.getParameters().getParameter().add(paramClone);
}
}
return clone;
}
Aggregations