public AttributeColumnDetails(final AttributeCol52 column) { super( column ); this.attribute = column.getAttribute(); }
public AttributeColumnDetails(final AttributeCol52 column) { super( column ); this.attribute = column.getAttribute(); }
private String[] getValueList(AttributeCol52 col) { if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) { return new String[]{"true", "false"}; } return new String[0]; }
public boolean hasValueList(AttributeCol52 col) { if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) { return true; } return false; }
public boolean hasValueList(AttributeCol52 col) { if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) { return true; } return false; }
private String[] getValueList(AttributeCol52 col) { if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) { return new String[]{"true", "false"}; } return new String[0]; }
private String getType(AttributeCol52 col, SuggestionCompletionEngine sce) { String type = SuggestionCompletionEngine.TYPE_STRING; String attrName = col.getAttribute(); if ( attrName.equals( GuidedDecisionTable52.SALIENCE_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER; } else if ( attrName.equals( GuidedDecisionTable52.ENABLED_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.NO_LOOP_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.DURATION_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_NUMERIC_LONG; } else if ( attrName.equals( GuidedDecisionTable52.TIMER_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_STRING; } else if ( attrName.equals( GuidedDecisionTable52.CALENDARS_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_STRING; } else if ( attrName.equals( GuidedDecisionTable52.AUTO_FOCUS_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.LOCK_ON_ACTIVE_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.DATE_EFFECTIVE_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_DATE; } else if ( attrName.equals( GuidedDecisionTable52.DATE_EXPIRES_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_DATE; } else if ( attrName.equals( GuidedDecisionTable52.DIALECT_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_STRING; } return type; }
private String getType(AttributeCol52 col, SuggestionCompletionEngine sce) { String type = SuggestionCompletionEngine.TYPE_STRING; String attrName = col.getAttribute(); if ( attrName.equals( GuidedDecisionTable52.SALIENCE_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_NUMERIC_INTEGER; } else if ( attrName.equals( GuidedDecisionTable52.ENABLED_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.NO_LOOP_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.DURATION_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_NUMERIC_LONG; } else if ( attrName.equals( GuidedDecisionTable52.TIMER_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_STRING; } else if ( attrName.equals( GuidedDecisionTable52.CALENDARS_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_STRING; } else if ( attrName.equals( GuidedDecisionTable52.AUTO_FOCUS_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.LOCK_ON_ACTIVE_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_BOOLEAN; } else if ( attrName.equals( GuidedDecisionTable52.DATE_EFFECTIVE_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_DATE; } else if ( attrName.equals( GuidedDecisionTable52.DATE_EXPIRES_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_DATE; } else if ( attrName.equals( GuidedDecisionTable52.DIALECT_ATTR ) ) { type = SuggestionCompletionEngine.TYPE_STRING; } return type; }
void doAttribs(List<BaseColumn> allColumns, List<AttributeCol52> attributeCols, List<DTCellValue52> row, RuleModel rm) { List<RuleAttribute> attribs = new ArrayList<RuleAttribute>(); for ( int j = 0; j < attributeCols.size(); j++ ) { AttributeCol52 at = attributeCols.get( j ); int index = allColumns.indexOf( at ); String cell = GuidedDTDRLUtilities.convertDTCellValueToString( row.get( index ) ); if ( validCell( cell ) ) { //If instance of "otherwise" column then flag RuleModel as being negated if ( at.getAttribute().equals( GuidedDecisionTable52.NEGATE_RULE_ATTR ) ) { rm.setNegated( Boolean.valueOf( cell ) ); } else { attribs.add( new RuleAttribute( at.getAttribute(), cell ) ); } } } if ( attribs.size() > 0 ) { rm.attributes = attribs.toArray( new RuleAttribute[attribs.size()] ); } }
public DeleteColumnAuditLogEntry(final String userName, final BaseColumn column) { super( userName ); if ( column instanceof MetadataCol52 ) { this.columnHeader = ((MetadataCol52) column).getMetadata(); } else if ( column instanceof AttributeCol52 ) { this.columnHeader = ((AttributeCol52) column).getAttribute(); } else { this.columnHeader = column.getHeader(); } }
void doAttribs(List<BaseColumn> allColumns, List<AttributeCol52> attributeCols, List<DTCellValue52> row, RuleModel rm) { List<RuleAttribute> attribs = new ArrayList<RuleAttribute>(); for ( int j = 0; j < attributeCols.size(); j++ ) { AttributeCol52 at = attributeCols.get( j ); int index = allColumns.indexOf( at ); String cell = GuidedDTDRLUtilities.convertDTCellValueToString( row.get( index ) ); if ( validCell( cell ) ) { //If instance of "otherwise" column then flag RuleModel as being negated if ( at.getAttribute().equals( GuidedDecisionTable52.NEGATE_RULE_ATTR ) ) { rm.setNegated( Boolean.valueOf( cell ) ); } else { attribs.add( new RuleAttribute( at.getAttribute(), cell ) ); } } } if ( attribs.size() > 0 ) { rm.attributes = attribs.toArray( new RuleAttribute[attribs.size()] ); } }
public DeleteColumnAuditLogEntry(final String userName, final BaseColumn column) { super( userName ); if ( column instanceof MetadataCol52 ) { this.columnHeader = ((MetadataCol52) column).getMetadata(); } else if ( column instanceof AttributeCol52 ) { this.columnHeader = ((AttributeCol52) column).getAttribute(); } else { this.columnHeader = column.getHeader(); } }
if ( column instanceof AttributeCol52 ) { AttributeCol52 attributeCol = (AttributeCol52) column; final String attributeName = attributeCol.getAttribute(); if ( GuidedDecisionTable52.SALIENCE_ATTR.equals( attributeName ) ) { iSalienceColumnIndex = iCol;
if ( column instanceof AttributeCol52 ) { AttributeCol52 attributeCol = (AttributeCol52) column; final String attributeName = attributeCol.getAttribute(); if ( GuidedDecisionTable52.SALIENCE_ATTR.equals( attributeName ) ) { iSalienceColumnIndex = iCol;
tsdt.getAttributeCols().size() ); assertEquals( "salience", tsdt.getAttributeCols().get( 0 ).getAttribute() ); assertEquals( "66", tsdt.getAttributeCols().get( 0 ).getDefaultValue().getStringValue() );
tsdt.getAttributeCols().size() ); assertEquals( "salience", tsdt.getAttributeCols().get( 0 ).getAttribute() ); assertEquals( "66", tsdt.getAttributeCols().get( 0 ).getDefaultValue().getStringValue() );