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