use of eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.AttributeMappingType.ClientProperty in project hale by halestudio.
the class AppSchemaMappingWrapper method cloneAttributeMapping.
static AttributeMappingType cloneAttributeMapping(AttributeMappingType attrMapping) {
AttributeMappingType clone = new AttributeMappingType();
clone.setEncodeIfEmpty(attrMapping.isEncodeIfEmpty());
clone.setIsList(attrMapping.isIsList());
clone.setIsMultiple(attrMapping.isIsMultiple());
for (ClientProperty clientProp : attrMapping.getClientProperty()) {
ClientProperty clientPropClone = new ClientProperty();
clientPropClone.setName(clientProp.getName());
clientPropClone.setValue(clientProp.getValue());
clone.getClientProperty().add(clientPropClone);
}
clone.setIdExpression(cloneAttributeExpression(attrMapping.getIdExpression()));
clone.setInstancePath(attrMapping.getInstancePath());
clone.setLabel(attrMapping.getLabel());
clone.setParentLabel(attrMapping.getParentLabel());
clone.setSourceExpression(cloneAttributeExpression(attrMapping.getSourceExpression()));
clone.setTargetAttribute(attrMapping.getTargetAttribute());
clone.setTargetAttributeNode(attrMapping.getTargetAttributeNode());
clone.setTargetQueryString(attrMapping.getTargetQueryString());
return clone;
}
Aggregations