Codota Logo
AttributeCol52.getAttribute
Code IndexAdd Codota to your IDE (free)

How to use
getAttribute
method
in
org.drools.ide.common.client.modeldriven.dt52.AttributeCol52

Best Java code snippets using org.drools.ide.common.client.modeldriven.dt52.AttributeCol52.getAttribute (Showing top 16 results out of 315)

  • Common ways to obtain AttributeCol52
private void myMethod () {
AttributeCol52 a =
  • Codota Iconnew AttributeCol52()
  • Smart code suggestions by Codota
}
origin: org.drools/droolsjbpm-ide-common

public AttributeColumnDetails(final AttributeCol52 column) {
  super( column );
  this.attribute = column.getAttribute();
}
origin: org.chtijbug.drools/droolsjbpm-ide-common

public AttributeColumnDetails(final AttributeCol52 column) {
  super( column );
  this.attribute = column.getAttribute();
}
origin: org.chtijbug.drools/droolsjbpm-ide-common

private String[] getValueList(AttributeCol52 col) {
  if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) {
    return new String[]{"true", "false"};
  }
  return new String[0];
}
origin: org.drools/droolsjbpm-ide-common

public boolean hasValueList(AttributeCol52 col) {
  if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) {
    return true;
  }
  return false;
}
origin: org.chtijbug.drools/droolsjbpm-ide-common

public boolean hasValueList(AttributeCol52 col) {
  if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) {
    return true;
  }
  return false;
}
origin: org.drools/droolsjbpm-ide-common

private String[] getValueList(AttributeCol52 col) {
  if ( "no-loop".equals( col.getAttribute() ) || "enabled".equals( col.getAttribute() ) ) {
    return new String[]{"true", "false"};
  }
  return new String[0];
}
origin: org.drools/droolsjbpm-ide-common

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;
}
origin: org.chtijbug.drools/droolsjbpm-ide-common

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;
}
origin: org.drools/droolsjbpm-ide-common

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()] );
  }
}
origin: org.chtijbug.drools/droolsjbpm-ide-common

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();
  }
}
origin: org.chtijbug.drools/droolsjbpm-ide-common

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()] );
  }
}
origin: org.drools/droolsjbpm-ide-common

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();
  }
}
origin: org.drools/droolsjbpm-ide-common

if ( column instanceof AttributeCol52 ) {
  AttributeCol52 attributeCol = (AttributeCol52) column;
  final String attributeName = attributeCol.getAttribute();
  if ( GuidedDecisionTable52.SALIENCE_ATTR.equals( attributeName ) ) {
    iSalienceColumnIndex = iCol;
origin: org.chtijbug.drools/droolsjbpm-ide-common

if ( column instanceof AttributeCol52 ) {
  AttributeCol52 attributeCol = (AttributeCol52) column;
  final String attributeName = attributeCol.getAttribute();
  if ( GuidedDecisionTable52.SALIENCE_ATTR.equals( attributeName ) ) {
    iSalienceColumnIndex = iCol;
origin: org.drools/droolsjbpm-ide-common

       tsdt.getAttributeCols().size() );
assertEquals( "salience",
       tsdt.getAttributeCols().get( 0 ).getAttribute() );
assertEquals( "66",
       tsdt.getAttributeCols().get( 0 ).getDefaultValue().getStringValue() );
origin: org.drools/droolsjbpm-ide-common

       tsdt.getAttributeCols().size() );
assertEquals( "salience",
       tsdt.getAttributeCols().get( 0 ).getAttribute() );
assertEquals( "66",
       tsdt.getAttributeCols().get( 0 ).getDefaultValue().getStringValue() );
org.drools.ide.common.client.modeldriven.dt52AttributeCol52getAttribute

Popular methods of AttributeCol52

  • <init>
  • setAttribute
  • setDefaultValue
  • setHideColumn
  • setReverseOrder
  • setUseRowNumber
  • setWidth
  • getDefaultValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • URI (java.net)
    Represents a Uniform Resource Identifier (URI) reference. Aside from some minor deviations noted bel
  • Vector (java.util)
    The Vector class implements a growable array of objects. Like an array, it contains components that
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now