예제 #1
0
 /**
  * Runs encode base 64 function with arguments.
  *
  * @return
  */
 public static String encodeBase64(String content) {
   return new EncodeBase64Function().execute(Collections.singletonList(content), null);
 }
예제 #2
0
 /**
  * Runs current date function with arguments.
  *
  * @return
  */
 public static String currentDate(String dateFormat) {
   return new CurrentDateFunction().execute(Collections.singletonList(dateFormat), null);
 }
예제 #3
0
 /**
  * Runs create CData section function with arguments.
  *
  * @return
  */
 public static String createCDataSection(String content) {
   return new CreateCDataSectionFunction().execute(Collections.singletonList(content), null);
 }
예제 #4
0
 /**
  * Runs current date function with arguments.
  *
  * @return
  */
 public static String currentDate() {
   return new CurrentDateFunction().execute(Collections.<String>emptyList(), null);
 }
예제 #5
0
 /**
  * Runs escape XML function with arguments.
  *
  * @return
  */
 public static String escapeXml(String content) {
   return new EscapeXmlFunction().execute(Collections.singletonList(content), null);
 }
예제 #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);
 }
예제 #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);
 }
예제 #8
0
 /**
  * Runs random UUID function with arguments.
  *
  * @return
  */
 public static String randomUUID() {
   return new RandomUUIDFunction().execute(Collections.<String>emptyList(), null);
 }