use of eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.AttributeExpressionMappingType.Expression in project hale by halestudio.
the class AppSchemaMappingWrapper method cloneAttributeExpression.
static AttributeExpressionMappingType cloneAttributeExpression(AttributeExpressionMappingType attrExpression) {
if (attrExpression == null) {
return attrExpression;
}
AttributeExpressionMappingType clone = new AttributeExpressionMappingType();
if (attrExpression.getExpression() != null) {
clone.setExpression(new Expression());
// TODO: Expression is xs:anyType, how can I make a copy of it?
clone.getExpression().setExpression(attrExpression.getExpression().getExpression());
}
clone.setIndex(attrExpression.getIndex());
clone.setInputAttribute(attrExpression.getInputAttribute());
clone.setLinkElement(attrExpression.getLinkElement());
clone.setLinkField(attrExpression.getLinkField());
clone.setOCQL(attrExpression.getOCQL());
return clone;
}
Aggregations