private ActionInsertFactCol52ActionInsertFactAdaptor(ActionInsertFactCol52 action) { if ( action == null ) { throw new NullPointerException( "action cannot be null" ); } this.action = action; this.factType = action.getFactType(); ActionFieldValue afv = new ActionFieldValue(); afv.field = action.getFactField(); afv.nature = BaseSingleFieldConstraint.TYPE_LITERAL; afv.type = action.getType(); super.addFieldValue( afv ); }
private ActionInsertFactCol52ActionInsertFactAdaptor(ActionInsertFactCol52 action) { if ( action == null ) { throw new NullPointerException( "action cannot be null" ); } this.action = action; this.factType = action.getFactType(); ActionFieldValue afv = new ActionFieldValue(); afv.field = action.getFactField(); afv.nature = BaseSingleFieldConstraint.TYPE_LITERAL; afv.type = action.getType(); super.addFieldValue( afv ); }
private void doAction(List<LabelledAction> actions, ActionWorkItemInsertFactCol52 ac, String cell) { if ( Boolean.TRUE.equals( Boolean.parseBoolean( cell ) ) ) { LabelledAction a = findByLabelledAction( actions, ac.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = ac.getBoundName(); if ( !ac.isInsertLogical() ) { ActionInsertFact ins = new ActionInsertFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } else { ActionInsertLogicalFact ins = new ActionInsertLogicalFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } actions.add( a ); } ActionInsertFact ins = (ActionInsertFact) a.action; ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( ac.getFactField(), ac.getType(), ac.getWorkItemName(), ac.getWorkItemResultParameterName(), ac.getParameterClassName() ); ins.addFieldValue( val ); } }
private void doAction(List<LabelledAction> actions, ActionWorkItemInsertFactCol52 ac, String cell) { if ( Boolean.TRUE.equals( Boolean.parseBoolean( cell ) ) ) { LabelledAction a = findByLabelledAction( actions, ac.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = ac.getBoundName(); if ( !ac.isInsertLogical() ) { ActionInsertFact ins = new ActionInsertFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } else { ActionInsertLogicalFact ins = new ActionInsertLogicalFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } actions.add( a ); } ActionInsertFact ins = (ActionInsertFact) a.action; ActionWorkItemFieldValue val = new ActionWorkItemFieldValue( ac.getFactField(), ac.getType(), ac.getWorkItemName(), ac.getWorkItemResultParameterName(), ac.getParameterClassName() ); ins.addFieldValue( val ); } }
private ActionInsertFact visitActionFieldList(ActionInsertFact afl) { ActionInsertFact clone = new ActionInsertFact(); clone.factType = afl.factType; clone.setBoundName( afl.getBoundName() ); for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
private ActionInsertFact visitActionFieldList(ActionInsertFact afl) { ActionInsertFact clone = new ActionInsertFact(); clone.factType = afl.factType; clone.setBoundName( afl.getBoundName() ); for ( ActionFieldValue afv : afl.fieldValues ) { ActionFieldValue afvClone = new ActionFieldValue(); afvClone.setField( afv.getField() ); afvClone.setNature( afv.getNature() ); afvClone.setType( afv.getType() ); afvClone.setValue( afv.getValue() ); clone.addFieldValue( afvClone ); } return clone; }
private void doAction(List<LabelledAction> actions, ActionInsertFactCol52 ac, String cell) { LabelledAction a = findByLabelledAction( actions, ac.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = ac.getBoundName(); if ( !ac.isInsertLogical() ) { ActionInsertFact ins = new ActionInsertFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } else { ActionInsertLogicalFact ins = new ActionInsertLogicalFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } actions.add( a ); } ActionInsertFact ins = (ActionInsertFact) a.action; ActionFieldValue val = new ActionFieldValue( ac.getFactField(), cell, ac.getType() ); ins.addFieldValue( val ); }
private void doAction(List<LabelledAction> actions, ActionInsertFactCol52 ac, String cell) { LabelledAction a = findByLabelledAction( actions, ac.getBoundName() ); if ( a == null ) { a = new LabelledAction(); a.boundName = ac.getBoundName(); if ( !ac.isInsertLogical() ) { ActionInsertFact ins = new ActionInsertFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } else { ActionInsertLogicalFact ins = new ActionInsertLogicalFact( ac.getFactType() ); ins.setBoundName( ac.getBoundName() ); a.action = ins; } actions.add( a ); } ActionInsertFact ins = (ActionInsertFact) a.action; ActionFieldValue val = new ActionFieldValue( ac.getFactField(), cell, ac.getType() ); ins.addFieldValue( val ); }
"BooleanResult", Boolean.class.getName() ); aif.addFieldValue( fv1 ); ActionWorkItemFieldValue fv2 = new ActionWorkItemFieldValue( "ResultsFloatResult", SuggestionCompletionEngine.TYPE_NUMERIC_FLOAT, "FloatResult", Float.class.getName() ); aif.addFieldValue( fv2 ); ActionWorkItemFieldValue fv3 = new ActionWorkItemFieldValue( "ResultsIntegerResult", SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER, "IntegerResult", Integer.class.getName() ); aif.addFieldValue( fv3 ); ActionWorkItemFieldValue fv4 = new ActionWorkItemFieldValue( "ResultsStringResult", SuggestionCompletionEngine.TYPE_STRING, "StringResult", String.class.getName() ); aif.addFieldValue( fv4 );
ai.addFieldValue( new ActionFieldValue( "dob", "31-Jan-2000", SuggestionCompletionEngine.TYPE_DATE ) );
SuggestionCompletionEngine.TYPE_STRING ); brl1DefinitionAction1FieldValue1.setNature( BaseSingleFieldConstraint.TYPE_LITERAL ); brl1DefinitionAction1.addFieldValue( brl1DefinitionAction1FieldValue1 ); brl1Definition.add( brl1DefinitionAction1 );
SuggestionCompletionEngine.TYPE_STRING ); aif0f0.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE ); aif0.addFieldValue( aif0f0 ); ActionFieldValue aif0f1 = new ActionFieldValue( "AIF0F1", "AIF0F1Value", SuggestionCompletionEngine.TYPE_STRING ); aif0f1.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE ); aif0.addFieldValue( aif0f1 ); model.rhs[0] = aif0; SuggestionCompletionEngine.TYPE_STRING ); aif1f0.setNature( BaseSingleFieldConstraint.TYPE_TEMPLATE ); aif1.addFieldValue( aif1f0 ); ActionFieldValue aif1f1 = new ActionFieldValue( "AIF1F1", "AIF1F1Value", SuggestionCompletionEngine.TYPE_STRING ); aif1f1.setNature( BaseSingleFieldConstraint.TYPE_LITERAL ); aif1.addFieldValue( aif1f1 ); model.rhs[1] = aif1;
ActionInsertFact aif = new ActionInsertFact( "Person" ); aif.setBoundName( "$aif" ); aif.addFieldValue( new ActionFieldValue( "rating", null, SuggestionCompletionEngine.TYPE_STRING ) );
ActionInsertFact aif1 = new ActionInsertFact( "Person" ); aif1.setBoundName( "$aif" ); aif1.addFieldValue( new ActionFieldValue( "rating", null, SuggestionCompletionEngine.TYPE_STRING ) ); ActionInsertFact aif2 = new ActionInsertFact( "Person" ); aif2.setBoundName( "$aif" ); aif2.addFieldValue( new ActionFieldValue( "rating", null, SuggestionCompletionEngine.TYPE_STRING ) );
ActionInsertFact aif = new ActionInsertFact( "Person" ); aif.setBoundName( "$aif" ); aif.addFieldValue( new ActionFieldValue( "rating", null, SuggestionCompletionEngine.TYPE_STRING ) );
ai.addFieldValue( new ActionFieldValue( "field1", "55", SuggestionCompletionEngine.TYPE_NUMERIC_BIGINTEGER ) );
ai.addFieldValue( new ActionFieldValue( "field1", "55", SuggestionCompletionEngine.TYPE_NUMERIC_BIGDECIMAL ) );
ai.addFieldValue( new ActionFieldValue( "field1", "55", SuggestionCompletionEngine.TYPE_NUMERIC_BIGDECIMAL ) );
ai.addFieldValue( new ActionFieldValue( "field1", "55", SuggestionCompletionEngine.TYPE_NUMERIC_BIGINTEGER ) );
SuggestionCompletionEngine.TYPE_STRING ); aif0f0.setNature( BaseSingleFieldConstraint.TYPE_LITERAL ); aif0.addFieldValue( aif0f0 ); ActionFieldValue aif0f1 = new ActionFieldValue( "AIF0F1", "AIF0F1Value", SuggestionCompletionEngine.TYPE_STRING ); aif0f1.setNature( BaseSingleFieldConstraint.TYPE_LITERAL ); aif0.addFieldValue( aif0f1 ); model.rhs[0] = aif0; SuggestionCompletionEngine.TYPE_STRING ); aif1f0.setNature( BaseSingleFieldConstraint.TYPE_LITERAL ); aif1.addFieldValue( aif1f0 ); ActionFieldValue aif1f1 = new ActionFieldValue( "AIF1F1", "AIF1F1Value", SuggestionCompletionEngine.TYPE_STRING ); aif1f1.setNature( BaseSingleFieldConstraint.TYPE_LITERAL ); aif1.addFieldValue( aif1f1 ); model.rhs[1] = aif1;