|
jbpm-form-modeler-ui 6.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbpm.formModeler.core.processing.formProcessing.Functions
@ApplicationScoped public class Functions
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 | |
|---|---|
boolean |
checkCCC(String CCC)
|
boolean |
checkCIF(String CIF)
|
boolean |
checkIBAN(String numIBAN)
|
boolean |
checkNIF(String dni)
|
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 |
semaphor(Number value,
Number low,
Number high)
Returns a color depending on the supplied values. |
String |
str()
Return an empty string. |
String |
str(String s)
String given as argument |
int |
yearsOld(Date birthDate)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final org.apache.commons.lang.StringUtils String
public static final org.apache.commons.lang.WordUtils Word
| Constructor Detail |
|---|
public Functions()
| Method Detail |
|---|
public boolean checkNIF(String dni)
public boolean checkIBAN(String numIBAN)
public boolean checkCCC(String CCC)
public boolean checkCIF(String CIF)
public int yearsOld(Date birthDate)
throws ParseException
ParseException
public Map getYearsBetween(int min,
int max)
throws Exception
Exceptionpublic Map getMonths()
public Map getValidDays()
public Map getValidDays(String value)
public Map getValidDays(String sMonth,
String sYear)
public Date getDateFromFields(String sDay,
String sMonth,
String sYear)
public String str()
public String str(String s)
s - string to return
public String semaphor(Number value,
Number low,
Number high)
value - value to considerlow - lower limithigh - upper limit
|
jbpm-form-modeler-ui 6.0.0.CR1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||