Search in sources :

Example 6 with Parameter

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;
}
Also used : Parameters(eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.SourceDataStoresPropertyType.DataStore.Parameters) DataStore(eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.SourceDataStoresPropertyType.DataStore) Parameter(eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.SourceDataStoresPropertyType.DataStore.Parameters.Parameter)

Aggregations

Parameter (eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.SourceDataStoresPropertyType.DataStore.Parameters.Parameter)6 DataStore (eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.SourceDataStoresPropertyType.DataStore)5 Parameters (eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.SourceDataStoresPropertyType.DataStore.Parameters)4 Element (org.w3c.dom.Element)2 ComplexValue (eu.esdihumboldt.hale.common.core.io.impl.ComplexValue)1 AppSchemaDataStore (eu.esdihumboldt.hale.io.geoserver.AppSchemaDataStore)1 DocumentBuilder (javax.xml.parsers.DocumentBuilder)1 DocumentBuilderFactory (javax.xml.parsers.DocumentBuilderFactory)1 ParserConfigurationException (javax.xml.parsers.ParserConfigurationException)1 Document (org.w3c.dom.Document)1 NodeList (org.w3c.dom.NodeList)1