Codota Logo
DSLVariableValue.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.drools.guvnor.models.commons.shared.rule.DSLVariableValue
constructor

Best Java code snippets using org.drools.guvnor.models.commons.shared.rule.DSLVariableValue.<init> (Showing top 8 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public DSLVariableValue getSelectedValue() {
  int selectedIndex = resultWidget.getSelectedIndex();
  if ( selectedIndex != -1 ) {
    return new DSLVariableValue( resultWidget.getValue( selectedIndex ) );
  } else {
    return new DSLVariableValue( "" );
  }
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public void valueChanged( String newText,
               String newValue ) {
    makeDirty();
    selectedValue = new DSLVariableValue( newValue );
    //When the value changes we need to reset the content of *ALL* DSLSentenceWidget drop-downs.
    //An improvement would be to determine the chain of dependent drop-downs and only update
    //children of the one whose value changes. However in reality DSLSentences only contain
    //a couple of drop-downs so it's quicker to simply update them all.
    updateEnumDropDowns();
  }
};
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public DSLVariableValue getSelectedValue() {
    String value = this.resultWidget.getSelectedIndex() == 0 ? "true" : "false";
    return new DSLVariableValue( value );
  }
}
origin: org.drools/drools-guvnor-models-commons

private DSLVariableValue parseValue( String variable ) {
  //if the variable doesn't have a ':', then it is considered as a 
  //simple value
  if ( !variable.contains( ":" ) ) {
    return new DSLVariableValue( variable );
  }
  //if it does containt a ':', then the part before it is considered
  //as the real value (used to create the final drl) and the part
  //after it is considered as an id
  String value = variable.substring( 0,
                    variable.indexOf( ":" ) );
  String id = variable.substring( variable.indexOf( ":" ) + 1 );
  return new DSLComplexVariableValue( id, value );
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

  public DSLVariableValue getSelectedValue() {
    return new DSLVariableValue( resultWidget.getDateString() );
  }
}
origin: org.drools/drools-guvnor-models-commons

@Override
@SuppressWarnings({ "rawtypes", "unchecked" })
protected void addCurrentElementToCollection( HierarchicalStreamReader reader,
                       UnmarshallingContext context,
                       Collection collection,
                       Collection target ) {
  Object item = readItem( reader,
              context,
              collection );
  if ( item instanceof DSLVariableValue) {
    target.add( item );
  } else if ( item instanceof String ) {
    //The only other possible legacy type is a String, so using toString() should be OK
    DSLVariableValue value = new DSLVariableValue( item.toString() );
    target.add( value );
  }
}
origin: org.kie.guvnor/guvnor-guided-dtable-editor-client

private DSLVariableValue visitDSLVariableValue( DSLVariableValue value ) {
  DSLVariableValue clone = new DSLVariableValue();
  clone.setValue( value.getValue() );
  return clone;
}
origin: org.kie.guvnor/guvnor-guided-rule-editor-client

public DSLVariableValue getSelectedValue() {
  //if oldVariableValue was of type DSLComplexVariableValue, then return a
  //copy of it with only the 'value' part modified
  if ( oldVariableValue instanceof DSLComplexVariableValue) {
    return new DSLComplexVariableValue( ( (DSLComplexVariableValue) oldVariableValue ).getId(),
                      box.getText() );
  }
  return new DSLVariableValue( box.getText() );
}
org.drools.guvnor.models.commons.shared.ruleDSLVariableValue<init>

Popular methods of DSLVariableValue

  • getValue
  • setValue

Popular in Java

  • Creating JSON documents from java classes using gson
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
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