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