private void fixConnectiveConstraints(SingleFieldConstraint sfc) { if ( sfc.connectives == null ) { return; } for ( ConnectiveConstraint cc : sfc.connectives ) { if ( cc.getFieldName() == null ) { cc.setFieldName( sfc.getFieldName() ); cc.setFieldType( sfc.getFieldType() ); } } }
private void fixConnectiveConstraints(SingleFieldConstraint sfc) { if ( sfc.connectives == null ) { return; } for ( ConnectiveConstraint cc : sfc.connectives ) { if ( cc.getFieldName() == null ) { cc.setFieldName( sfc.getFieldName() ); cc.setFieldType( sfc.getFieldType() ); } } }
private ConnectiveConstraint visitConnectiveConstraint(ConnectiveConstraint cc) { ConnectiveConstraint clone = new ConnectiveConstraint(); clone.setConstraintValueType( cc.getConstraintValueType() ); clone.setExpressionValue( (ExpressionFormLine) visit( cc.getExpressionValue() ) ); clone.setFieldName( cc.getFieldName() ); clone.setFieldType( cc.getFieldType() ); clone.setOperator( cc.getOperator() ); for ( Map.Entry<String, String> entry : cc.getParameters().entrySet() ) { clone.setParameter( entry.getKey(), entry.getValue() ); } clone.setValue( cc.getValue() ); return clone; }
private ConnectiveConstraint visitConnectiveConstraint(ConnectiveConstraint cc) { ConnectiveConstraint clone = new ConnectiveConstraint(); clone.setConstraintValueType( cc.getConstraintValueType() ); clone.setExpressionValue( (ExpressionFormLine) visit( cc.getExpressionValue() ) ); clone.setFieldName( cc.getFieldName() ); clone.setFieldType( cc.getFieldType() ); clone.setOperator( cc.getOperator() ); for ( Map.Entry<String, String> entry : cc.getParameters().entrySet() ) { clone.setParameter( entry.getKey(), entry.getValue() ); } clone.setValue( cc.getValue() ); return clone; }
private void fixConstraints(FactPattern fp, SingleFieldConstraint sfc) { sfc.setFactType( fp.getFactType() ); sfc.setFieldName( fixFieldName( sfc.getFieldName() ) ); if ( sfc.connectives == null ) { return; } for ( ConnectiveConstraint cc : sfc.connectives ) { cc.setFactType( fp.getFactType() ); cc.setFieldName( fixFieldName( cc.getFieldName() ) ); } }
private void fixConstraints(FactPattern fp, SingleFieldConstraint sfc) { sfc.setFactType( fp.getFactType() ); sfc.setFieldName( fixFieldName( sfc.getFieldName() ) ); if ( sfc.connectives == null ) { return; } for ( ConnectiveConstraint cc : sfc.connectives ) { cc.setFactType( fp.getFactType() ); cc.setFieldName( fixFieldName( cc.getFieldName() ) ); } }
ConnectiveConstraint sfc0cc0 = sfc0.connectives[0]; sfc0cc0.setConstraintValueType( BaseSingleFieldConstraint.TYPE_LITERAL ); sfc0cc0.setFieldName( "sfc0" ); sfc0cc0.setFieldType( SuggestionCompletionEngine.TYPE_STRING ); sfc0cc0.setOperator( "|| ==" );