Search in sources :

Example 1 with Expression

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

Aggregations

AttributeExpressionMappingType (eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.AttributeExpressionMappingType)1 Expression (eu.esdihumboldt.hale.io.appschema.impl.internal.generated.app_schema.AttributeExpressionMappingType.Expression)1