jbpm-form-modeler-ui 6.0.2-SNAPSHOT

org.jbpm.formModeler.core.processing.formProcessing
Class Functions

java.lang.Object
  extended by org.jbpm.formModeler.core.processing.formProcessing.Functions

@ApplicationScoped
public class Functions
extends Object

Util functions that can be used on field Formulas.


Field Summary
static org.apache.commons.lang.StringUtils String
          This enables using StringUtils functions by using something like Functions.String.replace(...)
static org.apache.commons.lang.WordUtils Word
          This enables using WordUtils functions by using something like Functions.String.replace(...)
 
Constructor Summary
Functions()
           
 
Method Summary
 Date getDateFromFields(String sDay, String sMonth, String sYear)
           
 Map getMonths()
           
 Map getValidDays()
           
 Map getValidDays(String value)
           
 Map getValidDays(String sMonth, String sYear)
           
 Map getYearsBetween(int min, int max)
           
 String str()
          Return an empty string.
 String str(String s)
          String given as argument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

String

public static final org.apache.commons.lang.StringUtils String
This enables using StringUtils functions by using something like Functions.String.replace(...)


Word

public static final org.apache.commons.lang.WordUtils Word
This enables using WordUtils functions by using something like Functions.String.replace(...)

Constructor Detail

Functions

public Functions()
Method Detail

getYearsBetween

public Map getYearsBetween(int min,
                           int max)
                    throws Exception
Throws:
Exception

getMonths

public Map getMonths()

getValidDays

public Map getValidDays()

getValidDays

public Map getValidDays(String value)

getValidDays

public Map getValidDays(String sMonth,
                        String sYear)

getDateFromFields

public Date getDateFromFields(String sDay,
                              String sMonth,
                              String sYear)

str

public String str()
Return an empty string. This method, in combination with str(s) serve as default string inside formulas.

Returns:
an empty string

str

public String str(String s)
String given as argument

Parameters:
s - string to return
Returns:
String given as argument

jbpm-form-modeler-ui 6.0.2-SNAPSHOT

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