public ActionInsertFactColumnDetails(final ActionInsertFactCol52 column) { super( column ); this.factType = column.getFactType(); this.factField = column.getFactField(); }
public ActionInsertFactColumnDetails(final ActionInsertFactCol52 column) { super( column ); this.factType = column.getFactType(); this.factField = column.getFactField(); }
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 ActionInsertFactCol52ActionInsertLogicalFactAdaptor(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 ActionInsertFactCol52ActionInsertLogicalFactAdaptor(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 String getType(ActionInsertFactCol52 col, SuggestionCompletionEngine sce) { // Columns with "Value Lists" etc are always Text (for now) if ( hasValueList( col ) ) { return SuggestionCompletionEngine.TYPE_STRING; } //Otherwise lookup from SuggestionCompletionEngine final String factType = col.getFactType(); final String fieldName = col.getFactField(); return getTypeFromSCE( factType, fieldName, sce ); }
private String getType(ActionInsertFactCol52 col, SuggestionCompletionEngine sce) { // Columns with "Value Lists" etc are always Text (for now) if ( hasValueList( col ) ) { return SuggestionCompletionEngine.TYPE_STRING; } //Otherwise lookup from SuggestionCompletionEngine final String factType = col.getFactType(); final String fieldName = col.getFactField(); return getTypeFromSCE( factType, fieldName, sce ); }
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 ); }
a1.getBoundName() ); assertEquals( "Cheese", a1.getFactType() ); assertEquals( "price", a1.getFactField() );
a1.getBoundName() ); assertEquals( "Cheese", a1.getFactType() ); assertEquals( "price", a1.getFactField() );
r[1] ); assertTrue( sce.hasEnums( ins.getFactType(), ins.getFactField() ) ); assertFalse( dt.hasValueList( ins ) ); r = sce.getEnums( ins.getFactType(), ins.getFactField(), currentValueMap ).fixedList; r[1] ); assertTrue( sce.hasEnums( ins_.getFactType(), ins_.getFactField() ) ); assertTrue( dt.hasValueList( ins_ ) );