Package org.citrusframework.functions
Class FunctionLibrary
java.lang.Object
org.citrusframework.functions.FunctionLibrary
Library holding a set of functions. Each library defines a function prefix as namespace, so
there will be no naming conflicts when using multiple libraries at a time.
- Author:
- Christoph Deppisch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFunction(String functionName) Try to find function in library by name.Gets the function library members.getName()Get the function library name.Get the library prefix.booleanknowsFunction(String functionName) Does this function library know a function with the given name.voidsetMembers(Map<String, Function> members) Set the function library content.voidGet the name of the function library.voidSet the library prefix.
-
Constructor Details
-
FunctionLibrary
public FunctionLibrary()
-
-
Method Details
-
getFunction
Try to find function in library by name.- Parameters:
functionName- function name.- Returns:
- the function instance.
- Throws:
NoSuchFunctionException
-
knowsFunction
Does this function library know a function with the given name.- Parameters:
functionName- name to search for.- Returns:
- boolean flag to mark existence.
-
setMembers
Set the function library content.- Parameters:
members-
-
getMembers
Gets the function library members.- Returns:
-
getPrefix
Get the library prefix.- Returns:
-
setPrefix
Set the library prefix.- Parameters:
prefix-
-
getName
Get the function library name.- Returns:
-
setName
Get the name of the function library.- Parameters:
name-
-