use of eu.esdihumboldt.hale.io.oml.internal.model.align.ext.IParameter in project hale by halestudio.
the class Property method deepCopy.
@Override
public IEntity deepCopy() {
Property result = new Property(new About(this.getAbout().getAbout()));
Transformation t = new Transformation(this.getTransformation().getService());
List<IParameter> parameters = new ArrayList<IParameter>();
for (IParameter p : this.getTransformation().getParameters()) {
parameters.add(new Parameter(p.getName(), p.getValue()));
}
t.setParameters(parameters);
result.setTransformation(t);
List<String> newLabels = new ArrayList<String>();
for (String label : this.getLabel()) {
newLabels.add(label);
}
result.setLabel(newLabels);
return result;
}
Aggregations