Package com.reportmill.base
Class RMKeyChainFuncs
java.lang.Object
com.reportmill.base.RMKeyChainFuncs
This class holds all of RM's built-in key chain functions.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectReturns the absolute value of the given value.static Numberaverage(List aList, RMKeyChain aKeyChain) Returns the average resulting by evaluating the keychain on given list objects.static NumberaverageX(List aList, RMKeyChain aKeyChain) Returns the average resulting by evaluating the keychain on given list objects.static ObjectReturns the given value as a double rounded up to the nest largest integer.static Numbercount(List aList, RMKeyChain aKeyChain) Returns the count of the given list or if keychain is present, all true values.static NumbercountDeep(List aList, RMKeyChain aKeyChain) Returns the count of all leaf nodes in given list.static NumbercountUnique(List aList, RMKeyChain aKeyChain) Returns the count of the unique values for a given list and key chain.static booleanReturns true if given object string ends with given string.static Listfilter(List aList, RMKeyChain aKeyChain) Returns the original list with items that fail the given boolean key chain removed.static ObjectReturns the given value as a double truncated down to the nest smallest integer.static Objectget(List aList, RMKeyChain aKeyChain) Returns the specific object that meets the criteria.static Object[]getArgsForKeyChain(Object obj, RMKeyChain node) Returns an array of evaluated args for an RMKeyChain ARG_LIST, used when evaluating functions.static Listgroup(List aList, RMKeyChain aKeyChain) Returns the original list grouped by the given key chain.static ObjectReturns an xstring by interpreting html commands in the given string.static StringReturns the result of joining results of evaluating keychain on given list objects, separated by delimiter.static Stringjoin(List aList, RMKeyChain aKeyChain) Aggregator version of join.static ObjectReturns the maximum value of the two given values.static Objectmax(List aList, RMKeyChain aKeyChain) Returns the maximum result of evaluating the keychain on given list objects.static ObjectReturns the minimum value of the two given values.static Objectmin(List aList, RMKeyChain aKeyChain) Returns the minimum result of evaluating the keychain on given list objects.static ObjectReturns the first value raised to the power of the second value.static ObjectRMAllFontGlyphs(Object fontName) Returns all of the printable characters for the given font name.static ObjectRMConditional(Object condition, Object trueVal) Returns the trueVal if condition is true, otherwise null.static ObjectRMConditional(Object condition, Object trueVal, Object falseVal) Returns either the trueVal or falseValue depending on whether condition is true.static ObjectReturns the string resulting by applying a default format to the given value.static ObjectReturns the unicode character string for the given unicode value.static ObjectRMUnicodeRange(Object c1, Object c2) Returns the unicode string for the given range of unicode values.static ObjectReturns the given value as a double rounded to the nearest integer.static ObjectReturns an xstring by interpreting rtf commands in the given string.static booleanshouldRecurse(List aList, RMKeyChain aKeyChain) Returns whether given list should be recursed into for aggregate calculations.static booleanstartsWith(Object anObj, Object aString) Returns true if given object string starts with given string.static StringReturns the substring of the given string from the given index onward.static StringReturns the substring of the given string in the given start/end range.static Numbertotal(List aList, RMKeyChain aKeyChain) Returns the total resulting from evaluating given keychain on given list of objects (nulls are zero).static Numbertotal2(List aList, RMKeyChain aKeyChain) Returns the total resulting from evaluating given keychain on given list of objects (nulls are zero).static NumbertotalX(List aList, RMKeyChain aKeyChain) Returns the total resulting from evaluating given keychain on given list of objects (nulls short circuit).
- 
Constructor Details- 
RMKeyChainFuncspublic RMKeyChainFuncs()
 
- 
- 
Method Details- 
getArgsForKeyChainReturns an array of evaluated args for an RMKeyChain ARG_LIST, used when evaluating functions.
- 
ceilReturns the given value as a double rounded up to the nest largest integer.
- 
floorReturns the given value as a double truncated down to the nest smallest integer.
- 
roundReturns the given value as a double rounded to the nearest integer.
- 
absReturns the absolute value of the given value.
- 
maxReturns the maximum value of the two given values.
- 
minReturns the minimum value of the two given values.
- 
powReturns the first value raised to the power of the second value.
- 
htmlReturns an xstring by interpreting html commands in the given string.
- 
rtfReturns an xstring by interpreting rtf commands in the given string.
- 
RMConditionalReturns the trueVal if condition is true, otherwise null.
- 
RMConditionalReturns either the trueVal or falseValue depending on whether condition is true.
- 
startsWithReturns true if given object string starts with given string.
- 
endsWithReturns true if given object string ends with given string.
- 
substringReturns the substring of the given string from the given index onward.
- 
substringReturns the substring of the given string in the given start/end range.
- 
joinReturns the result of joining results of evaluating keychain on given list objects, separated by delimiter.
- 
RMFormatReturns the string resulting by applying a default format to the given value.
- 
RMUnicodeReturns the unicode character string for the given unicode value.
- 
RMUnicodeRangeReturns the unicode string for the given range of unicode values.
- 
RMAllFontGlyphsReturns all of the printable characters for the given font name.
- 
totalReturns the total resulting from evaluating given keychain on given list of objects (nulls are zero).
- 
total2Returns the total resulting from evaluating given keychain on given list of objects (nulls are zero).
- 
totalXReturns the total resulting from evaluating given keychain on given list of objects (nulls short circuit).
- 
countReturns the count of the given list or if keychain is present, all true values.
- 
countDeepReturns the count of all leaf nodes in given list.
- 
countUniqueReturns the count of the unique values for a given list and key chain.
- 
averageReturns the average resulting by evaluating the keychain on given list objects.
- 
averageXReturns the average resulting by evaluating the keychain on given list objects.
- 
minReturns the minimum result of evaluating the keychain on given list objects.
- 
maxReturns the maximum result of evaluating the keychain on given list objects.
- 
getReturns the specific object that meets the criteria.
- 
filterReturns the original list with items that fail the given boolean key chain removed.
- 
groupReturns the original list grouped by the given key chain.
- 
joinAggregator version of join. aKeyChain is an arglist with 2 args, as in join(getName, "\n") The first arg is the keychain to be evaluated for each object in the list, and the second arg is the separator string.
- 
shouldRecurseReturns whether given list should be recursed into for aggregate calculations.
 
-