Ejemplo 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);
 }
Ejemplo n.º 2
0
 /**
  * Runs create CData section function with arguments.
  *
  * @return
  */
 public static String createCDataSection(String content) {
   return new CreateCDataSectionFunction().execute(Collections.singletonList(content), null);
 }
Ejemplo n.º 3
0
 /**
  * Runs current date function with arguments.
  *
  * @return
  */
 public static String currentDate(String dateFormat) {
   return new CurrentDateFunction().execute(Collections.singletonList(dateFormat), null);
 }
Ejemplo n.º 4
0
 /**
  * Runs escape XML function with arguments.
  *
  * @return
  */
 public static String escapeXml(String content) {
   return new EscapeXmlFunction().execute(Collections.singletonList(content), null);
 }
Ejemplo n.º 5
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);
 }
Ejemplo n.º 6
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);
 }