jbpm-form-modeler-ui 6.0.0.CR4

org.jbpm.formModeler.core.processing.formProcessing.replacers
Class ThisReplacer

java.lang.Object
  extended by org.jbpm.formModeler.core.processing.formProcessing.replacers.ThisReplacer
All Implemented Interfaces:
Serializable, FormulaReplacer

@ApplicationScoped
public class ThisReplacer
extends Object
implements FormulaReplacer

Replaces the {$this} token on formula.

See Also:
Serialized Form

Field Summary
static String THIS_TOKEN
           
 
Constructor Summary
ThisReplacer()
           
 
Method Summary
protected  boolean hasCloseQuote(String formula)
           
protected  boolean hasOpenQuote(String formula)
           
protected  boolean isFormulaSurroundedByQuotes(String formula)
           
 String replace(FormulaReplacementContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THIS_TOKEN

public static final String THIS_TOKEN
See Also:
Constant Field Values
Constructor Detail

ThisReplacer

public ThisReplacer()
Method Detail

replace

public String replace(FormulaReplacementContext ctx)
Specified by:
replace in interface FormulaReplacer

isFormulaSurroundedByQuotes

protected boolean isFormulaSurroundedByQuotes(String formula)

hasOpenQuote

protected boolean hasOpenQuote(String formula)

hasCloseQuote

protected boolean hasCloseQuote(String formula)

jbpm-form-modeler-ui 6.0.0.CR4

Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.