Tabnine Logo
ExpressionFormLine.getBinding
Code IndexAdd Tabnine to your IDE (free)

How to use
getBinding
method
in
org.drools.guvnor.models.commons.shared.rule.ExpressionFormLine

Best Java code snippets using org.drools.guvnor.models.commons.shared.rule.ExpressionFormLine.getBinding (Showing top 7 results out of 315)

origin: org.kie.guvnor/guvnor-guided-rule-editor-client

private String getBoundText() {
  if ( expression.isBound() ) {
    return "[" + expression.getBinding() + "] ";
  }
  return "";
}
origin: org.drools/drools-guvnor-models-commons

@Override
public String getFieldBinding() {
  return getExpressionLeftSide().getBinding();
}
origin: org.drools/drools-guvnor-models-commons

private String paramsToString( Map<String, ExpressionFormLine> params ) {
  if ( params.isEmpty() ) {
    return "";
  }
  ToStringVisitor stringVisitor = new ToStringVisitor();
  StringBuilder strParams = new StringBuilder();
  for ( ExpressionFormLine param : params.values() ) {
    strParams.append( ", " ).append( stringVisitor.buildString( param.getBinding(),
                                  param.getRootExpression() ) );
  }
  return strParams.substring( 2 );
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

private ExpressionFormLine visitExpressionFormLine( ExpressionFormLine efl ) {
  ExpressionFormLine clone = new ExpressionFormLine( efl );
  clone.setBinding( efl.getBinding() );
  return clone;
}
origin: org.drools/drools-guvnor-models-commons

public String getText( boolean renderBindVariable ) {
  return new ToStringVisitor().buildString( renderBindVariable ? getBinding() : null,
                       getRootExpression() );
}
origin: org.drools/drools-guvnor-models-commons

protected List<String> getFieldBinding( FieldConstraint f ) {
  List<String> result = new ArrayList<String>();
  if ( f instanceof SingleFieldConstraint ) {
    SingleFieldConstraint con = (SingleFieldConstraint) f;
    if ( con.isBound() ) {
      result.add( con.getFieldBinding() );
    }
    if ( con.getExpressionValue() != null && con.getExpressionValue().isBound() ) {
      result.add( con.getExpressionValue().getBinding() );
    }
    if ( con instanceof SingleFieldConstraintEBLeftSide ) {
      SingleFieldConstraintEBLeftSide exp = (SingleFieldConstraintEBLeftSide) con;
      if ( exp.getExpressionLeftSide() != null && exp.getExpressionLeftSide().isBound() ) {
        result.add( exp.getExpressionLeftSide().getBinding() );
      }
    }
  } else if ( f instanceof CompositeFieldConstraint ) {
    CompositeFieldConstraint cfc = (CompositeFieldConstraint) f;
    if ( cfc.getConstraints() != null ) {
      for ( FieldConstraint ss : cfc.getConstraints() ) {
        List<String> t = getFieldBinding( ss );
        result.addAll( t );
      }
    }
  }
  return result;
}
origin: org.drools/drools-guvnor-models-commons

SingleFieldConstraintEBLeftSide exp = (SingleFieldConstraintEBLeftSide) fc;
if ( exp.getExpressionLeftSide() != null && exp.getExpressionLeftSide().isBound() ) {
  result.add( exp.getExpressionLeftSide().getBinding() );
  result.add( con.getExpressionValue().getBinding() );
org.drools.guvnor.models.commons.shared.ruleExpressionFormLinegetBinding

Popular methods of ExpressionFormLine

  • <init>
  • appendPart
  • setBinding
  • getClassType
  • getFieldName
  • getGenericType
  • getParts
  • getPreviousGenericType
  • getRootExpression
  • getText
  • isBound
  • getParametricType
  • isBound,
  • getParametricType,
  • getPreviousClassType,
  • getPreviousPart,
  • isEmpty,
  • removeLast

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (ScheduledExecutorService)
  • onRequestPermissionsResult (Fragment)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now