clone.setValue( cc.getValue() );
return clone;
}
private SingleFieldConstraintEBLeftSide visitSingleFieldConstraint( SingleFieldConstraintEBLeftSide sfexp ) {
SingleFieldConstraintEBLeftSide clone = new SingleFieldConstraintEBLeftSide();
clone.setConstraintValueType( sfexp.getConstraintValueType() );
clone.setExpressionLeftSide( (ExpressionFormLine) visit( sfexp.getExpressionLeftSide() ) );
clone.setExpressionValue( (ExpressionFormLine) visit( sfexp.getExpressionValue() ) );
clone.setFieldBinding( sfexp.getFieldBinding() );
clone.setFactType( sfexp.getFactType() );
clone.setFieldName( sfexp.getFieldName() );
clone.setFieldType( sfexp.getFieldType() );
clone.setOperator( sfexp.getOperator() );
for ( Map.Entry<String, String> entry : sfexp.getParameters().entrySet() ) {
clone.setParameter( entry.getKey(),
entry.getValue() );
}
clone.setParent( sfexp.getParent() );
clone.setValue( sfexp.getValue() );
if ( sfexp.getConnectives() != null ) {
clone.setConnectives( new ConnectiveConstraint[ sfexp.getConnectives().length ] );
for ( int i = 0; i < sfexp.getConnectives().length; i++ ) {
clone.getConnectives()[ i ] = (ConnectiveConstraint) visit( sfexp.getConnectives()[ i ] );
}
}
return clone;
}