Class FunctionLib
- java.lang.Object
- 
- org.pentaho.libformula.editor.function.FunctionLib
 
- 
 public class FunctionLib extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description FunctionLib(String filename)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getFunctionCategories()FunctionDescriptiongetFunctionDescription(String functionName)String[]getFunctionNames()List<FunctionDescription>getFunctions()String[]getFunctionsForACategory(String category)Get all the function names for a certain categoryvoidsetFunctions(List<FunctionDescription> functions)
 
- 
- 
- 
Constructor Detail- 
FunctionLibpublic FunctionLib(String filename) throws org.pentaho.di.core.exception.KettleXMLException - Throws:
- org.pentaho.di.core.exception.KettleXMLException
 
 
- 
 - 
Method Detail- 
getFunctionspublic List<FunctionDescription> getFunctions() - Returns:
- the functions
 
 - 
setFunctionspublic void setFunctions(List<FunctionDescription> functions) - Parameters:
- functions- the functions to set
 
 - 
getFunctionNamespublic String[] getFunctionNames() - Returns:
- A sorted array of function names, extracted from the function descriptions...
 
 - 
getFunctionCategoriespublic String[] getFunctionCategories() - Returns:
- A sorted array of unique categories, extracted from the function descriptions...
 
 - 
getFunctionsForACategorypublic String[] getFunctionsForACategory(String category) Get all the function names for a certain category- Parameters:
- category- the category name to look for
- Returns:
- the sorted array of function names for the specified category
 
 - 
getFunctionDescriptionpublic FunctionDescription getFunctionDescription(String functionName) - Parameters:
- functionName- the name of the function to look for
- Returns:
- the corresponding function description or null if nothing was found.
 
 
- 
 
-