congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
ExpressionFormLine.isBound
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: org.drools/drools-guvnor-models-commons

/**
 * Returns true of there is a field binding.
 */
public boolean isBound() {
  return expLeftSide != null && expLeftSide.isBound();
}
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

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

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

Popular methods of ExpressionFormLine

  • <init>
  • appendPart
  • getBinding
  • setBinding
  • getClassType
  • getFieldName
  • getGenericType
  • getParts
  • getPreviousGenericType
  • getRootExpression
  • getText
  • getParametricType
  • getText,
  • 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
  • requestLocationUpdates (LocationManager)
  • getContentResolver (Context)
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Table (org.hibernate.mapping)
    A relational table
  • Option (scala)
  • Best IntelliJ 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