|
Method DetailString avg(String key, String number, int places) Adds the number to internal counter and outputs the average. Returns null on failure.
Parameters:
Returns: String Since: 11-03-2011 String chop(String value, int size, boolean ellipses) If the value exceeds the given size, this method chops and returns it the value, optionally with ellipses (...).
Parameters:
Returns: String Since: 12-03-2008 String chopLeft(String value, int size, boolean ellipses) If the value exceeds the given size, this method chops and returns the right-most characters, optionally with ellipses (...).
Parameters:
Returns: String Since: 08-05-2021 String dec(String key) Decrements the internal counter by 1 and outputs the number. Returns null on failure.
Parameters:
Returns: String Since: 11-03-2011 String encodeURI(String uri) Does a URI encoding on the supplied value.
Parameters:
Returns: String Since: 10-01-2010 String formatCurrency(String value) Formats the given string to currency notation.
Parameters:
Returns: String Since: 03-08-2007 String formatCurrencyAsWords(String num) Formats the currency as words (ex: 32.50 converts to thirty two dollars and fifty cents)
Parameters:
Returns: String Since: 07-01-2010 String formatCurrencyAsWords(double num) Formats the currency as words (ex: 32.50 converts to thirty two dollars and fifty cents)
Parameters:
Returns: String Since: 11-15-2007 String formatDate(Date date, String pattern) Formats the given date using the given java date pattern (see java.text.SimpleDateFormat for sample patterns)
Parameters:
Returns: String Since: 03-08-2007 String formatDate(Date date, String pattern, String timeZone) Formats the given date using the given java date pattern (see java.text.SimpleDateFormat for sample patterns) and the given time zone code (e.g. PST).
Parameters:
Returns: String Since: 10-07-2021 String formatDateString(String date, String pattern) Formats the given date string using the given java date pattern (see java.text.SimpleDateFormat for sample patterns)
Parameters:
Returns: String Since: 08-22-2007 String formatDateString(String date, String pattern, String timeZone) Formats the given date string using the given java date pattern (see java.text.SimpleDateFormat for sample patterns) and the given time zone code (e.g. PST).
Parameters:
Returns: String Since: 10-07-2021 String formatEIN(String ein) Formats a 9 digit EIN. (ex: 123456789 converts to 12-3456789). Returns the parameter without formatting if the length of the string is not 9.
Parameters:
Returns: String Since: 06-24-2010 String formatFullCurrency(String value) Formats the given string to currency notation. Preserves full decimal places up to 9 places to the right.
Parameters:
Returns: String Since: 04-01-2011 String formatNumber(String num, String places) Returns the given number as comma-formatted string to the specified decimal places.
Parameters:
Returns: String Since: 07-01-2010 String formatNumber(double num, int places) Returns the given number as comma-formatted string to the specified decimal places.
Parameters:
Returns: String Since: 11-15-2007 String formatPhone(String phone) Formats a 10 digit phone number. (ex: 1234567890 converts to (123) 456-7890). Returns phone parameter without formatting if the length of the string is not 10.
Parameters:
Returns: String Since: 11-04-2009 String formatPhone1(String phone) Formats a phone to a dashed digit phone number. (ex: converts (123) 456-7890 to 123-456-7890).
Parameters:
Returns: String Since: 06-27-2020 String formatPhone2(String phone) Formats a phone to a 10 digit phone number. (ex: converts (123) 456-7890 to 1234567890).
Parameters:
Returns: String Since: 06-27-2020 String formatSSN(String ssn) Formats a 9 digit social security number. (ex: 123456789 converts to 123-45-6789). Returns ssn parameter without formatting if the length of the string is not 9.
Parameters:
Returns: String Since: 11-04-2009 String formatXMLDate(Date date) Returns the date in xsd:date compliant format in UTC. The format will be yyyy-MM-ddTHH:mm:ssZ
Parameters:
Returns: String Since: 03-21-2013 String formatXMLDateString(String date) Attempts to create a Date from the string then returns the date in xsd:date compliant format in UTC. The format will be yyyy-MM-ddTHH:mm:ssZ. Returns null if the date cannot be determined from the input string.
Parameters:
Returns: String Since: 03-21-2013 String formatZipCode(String zipCode) Formats a 5 or 9 digit US Zip code. (ex: 123456789 converts to 12345-6789). Returns the parameter without formatting if the length of the string is not 9.
Parameters:
Returns: String Since: 06-24-2010 String getContinent(String isoCont) Returns the full name of the continent from the iso code.
Parameters:
Returns: String Since: 02-24-2021 String getCountry(String countryCode) Returns the full name of the country from the iso code.
Parameters:
Returns: String Since: 02-24-2021 String getDayOfWeekAsWord(String day) Returns the name of the day of week based on the number. 1 is Sunday, 7 is Saturday
Parameters:
Returns: String Since: 01-08-2015 String getMonthAsWord(String num) Converts a number 1-12 to month. (ex: 11 converts to 'November')
Parameters:
Returns: String Since: 01-14-2009 String getNumberAsOrdinal(String num) Converts number to ordinal value. (ex: 2 converts to '2nd')
Parameters:
Returns: String Since: 07-01-2010 String getNumberAsOrdinal(int num) Converts number to ordinal value. (ex: 2 converts to '2nd')
Parameters:
Returns: String Since: 11-08-2007 String getNumberAsWord(String num) Converts number to word. (ex: 123 converts to 'one hundred twenty three')
Parameters:
Returns: String Since: 07-01-2010 String getNumberAsWord(int num) Converts number to word. (ex: 123 converts to 'one hundred twenty three')
Parameters:
Returns: String Since: 03-08-2007 String getRandomEasyNumber(String length) Returns a random number sequence including numbers 2-9 of size length. Maximum length is 50, minimum is 1.
Parameters:
Returns: String Since: 04-08-2011 String getRandomEasyNumber(int length) Returns a random number sequence including numbers 2-9 of size length. Maximum length is 50, minimum is 1.
Parameters:
Returns: String Since: 04-08-2011 String getRandomNumber(String length) Returns a random number sequence including numbers 0-9 of size length. Maximum length is 50, minimum is 1.
Parameters:
Returns: String Since: 04-08-2011 String getRandomNumber(int length) Returns a random number sequence including numbers 0-9 of size length. Maximum length is 50, minimum is 1.
Parameters:
Returns: String Since: 04-08-2011 String getShortMonthAsWord(String num) Converts a number 1-12 to abbreviated month. (ex: 11 converts to 'Nov')
Parameters:
Returns: String Since: 01-14-2009 String getState(String countryCode, String stateCode) Returns the full name of the state from the state and country iso code.
Parameters:
Returns: String Since: 02-24-2021 String getState(String stateCode) Returns the full name of the state from the US iso code.
Parameters:
Returns: String Since: 02-24-2021 String getValidSigningRole(String role) Returns a valid role for signing purposes. Roles have a size and content restriction. If role is empty, this returns the String 'role'. A valid signing role is alpha-numeric with zero or more of the following characters (including space): @.-_${}. Keep in mind, a JEXL role requires a JEXL rendering cycle to translate and may result in an error if you don't provide the translation. See Packet.addDocument(String,Data).
Parameters:
Returns: String Since: 11-10-2010 String inc(String key) Increments the internal counter by 1 and outputs the number. Returns null on failure.
Parameters:
Returns: String Since: 11-03-2011 String inject(String text, String value, int size) If the text exceeds the given size, this method injects the specified value at every size interval and returns the new text. Used for injecting whitespace.
Parameters:
Returns: String Since: 01-28-2016 double parseDouble(String value) Parses the given value into a double. Throws an error if the value cannot be converted.
Parameters:
Returns: double Since: 04-26-2007 int parseInt(String value) Parses the given value into an integer. Throws an error if the value cannot be converted.
Parameters:
Returns: int Since: 04-26-2007 String removeNonAsciiChars(String content) Removes all characters outside of the UTF-8 C1 Controls and Latin1 Supplement (keeps characters in the range 0-255 decimal).
Parameters:
Returns: String Since: 03-10-2021 String replace(String content, String find, String replace, boolean all) Replaces the first occurrence of 'find' in 'content' with 'replace' or all occurances if all is true and returns the modified content.
Parameters:
Returns: String Since: 04-26-2007 String substring(String string, int start, int numCharacters) Returns a sub-string of the given string starting at the specified location. Returns null if the starting point is greater than the length.
Parameters:
Returns: String Since: 06-24-2010 String sum(String key, String number, int places) Adds the number to internal counter and outputs the sum. Returns null on failure.
Parameters:
Returns: String Since: 11-03-2011 String toGigaBytes(String num, String places) Returns the given number (bytes) as gigabytes to the specified decimal places.
Parameters:
Returns: String Since: 07-01-2010 String toGigaBytes(double num, int places) Returns the given number (bytes) as gigabytes to the specified decimal places.
Parameters:
Returns: String Since: 05-11-2010 String toKiloBytes(String num, String places) Returns the given number (bytes) as kilobytes to the specified decimal places.
Parameters:
Returns: String Since: 07-01-2010 String toKiloBytes(double num, int places) Returns the given number (bytes) as kilobytes to the specified decimal places.
Parameters:
Returns: String Since: 09-17-2007 String toLowerCase(String value) Returns the value as all lower case.
Parameters:
Returns: String Since: 11-18-2008 String toMegaBytes(String num, String places) Returns the given number (bytes) as megabytes to the specified decimal places.
Parameters:
Returns: String Since: 07-01-2010 String toMegaBytes(double num, int places) Returns the given number (bytes) as megabytes to the specified decimal places.
Parameters:
Returns: String Since: 09-17-2007 String toUpperCase(String value) Returns the value as all upper case.
Parameters:
Returns: String Since: 11-18-2008 String trim(String value) Returns the value with leading and trailing whitespace removed.
Parameters:
Returns: String Since: 10-15-2009 String trimAll(String value) Returns the value with leading and trailing whitespace removed, including non breaking spaces.
Parameters:
Returns: String Since: 06-16-2011 |
Copyright © 2006 - 2024, ContractPal, Inc. All rights reserved. | API Date: Nov 22, 2024 11:54 AM |