Esempio n. 1
0
 /**
  * Runs encode base 64 function with arguments.
  *
  * @return
  */
 public static String encodeBase64(String content) {
   return new EncodeBase64Function().execute(Collections.singletonList(content), null);
 }
Esempio n. 2
0
 /**
  * Runs current date function with arguments.
  *
  * @return
  */
 public static String currentDate(String dateFormat) {
   return new CurrentDateFunction().execute(Collections.singletonList(dateFormat), null);
 }
Esempio n. 3
0
 /**
  * Runs create CData section function with arguments.
  *
  * @return
  */
 public static String createCDataSection(String content) {
   return new CreateCDataSectionFunction().execute(Collections.singletonList(content), null);
 }
Esempio n. 4
0
 /**
  * Runs current date function with arguments.
  *
  * @return
  */
 public static String currentDate() {
   return new CurrentDateFunction().execute(Collections.<String>emptyList(), null);
 }
Esempio n. 5
0
 /**
  * Runs escape XML function with arguments.
  *
  * @return
  */
 public static String escapeXml(String content) {
   return new EscapeXmlFunction().execute(Collections.singletonList(content), null);
 }
Esempio n. 6
0
 /**
  * Runs random string function with arguments.
  *
  * @param numberOfLetters
  * @return
  */
 public static String randomString(Long numberOfLetters) {
   return new RandomStringFunction()
       .execute(Collections.singletonList(String.valueOf(numberOfLetters)), null);
 }
Esempio n. 7
0
 /**
  * Runs random number function with arguments.
  *
  * @param length
  * @return
  */
 public static String randomNumber(Long length) {
   return new RandomNumberFunction()
       .execute(Collections.singletonList(String.valueOf(length)), null);
 }
Esempio n. 8
0
 /**
  * Runs random UUID function with arguments.
  *
  * @return
  */
 public static String randomUUID() {
   return new RandomUUIDFunction().execute(Collections.<String>emptyList(), null);
 }