Class FunctionLibrary

java.lang.Object
org.citrusframework.functions.FunctionLibrary

public class FunctionLibrary extends Object
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 Details

    • FunctionLibrary

      public FunctionLibrary()
  • Method Details

    • getFunction

      public Function getFunction(String functionName) throws NoSuchFunctionException
      Try to find function in library by name.
      Parameters:
      functionName - function name.
      Returns:
      the function instance.
      Throws:
      NoSuchFunctionException
    • knowsFunction

      public boolean knowsFunction(String functionName)
      Does this function library know a function with the given name.
      Parameters:
      functionName - name to search for.
      Returns:
      boolean flag to mark existence.
    • setMembers

      public void setMembers(Map<String,Function> members)
      Set the function library content.
      Parameters:
      members -
    • getMembers

      public Map<String,Function> getMembers()
      Gets the function library members.
      Returns:
    • getPrefix

      public String getPrefix()
      Get the library prefix.
      Returns:
    • setPrefix

      public void setPrefix(String prefix)
      Set the library prefix.
      Parameters:
      prefix -
    • getName

      public String getName()
      Get the function library name.
      Returns:
    • setName

      public void setName(String name)
      Get the name of the function library.
      Parameters:
      name -