Class KernelFunctionArguments.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Create a new instance of Builder.
    • Method Detail

      • withInput

        public <T> KernelFunctionArguments.Builder withInput​(ContextVariable<T> content)
        Builds an instance with the given content in the default main key
        Type Parameters:
        T - Type of the value
        Parameters:
        content - Entry to place in the "input" slot
        Returns:
        {$code this} Builder for fluent coding
      • withInput

        public KernelFunctionArguments.Builder withInput​(Object content)
        Builds an instance with the given content in the default main key
        Parameters:
        content - Entry to place in the "input" slot
        Returns:
        {$code this} Builder for fluent coding
        Throws:
        SKException - if the content cannot be converted to a ContextVariable
      • withInput

        public <T> KernelFunctionArguments.Builder withInput​(T content,
                                                             ContextVariableTypeConverter<T> typeConverter)
        Builds an instance with the given content in the default main key
        Type Parameters:
        T - Type of the value
        Parameters:
        content - Entry to place in the "input" slot
        typeConverter - Type converter for the content
        Returns:
        {$code this} Builder for fluent coding
        Throws:
        SKException - if the content cannot be converted to a ContextVariable
      • withVariable

        public <T> KernelFunctionArguments.Builder withVariable​(String key,
                                                                ContextVariable<T> value)
        Set variable
        Type Parameters:
        T - Type of the value
        Parameters:
        key - variable name
        value - variable value
        Returns:
        {$code this} Builder for fluent coding
      • withVariable

        public KernelFunctionArguments.Builder withVariable​(String key,
                                                            Object value)
        Set variable, uses the default type converters
        Parameters:
        key - variable name
        value - variable value
        Returns:
        {$code this} Builder for fluent coding
        Throws:
        SKException - if the value cannot be converted to a ContextVariable
      • withVariable

        public <T> KernelFunctionArguments.Builder withVariable​(String key,
                                                                T value,
                                                                ContextVariableTypeConverter<T> typeConverter)
        Set variable
        Type Parameters:
        T - Type of the value
        Parameters:
        key - variable name
        value - variable value
        typeConverter - Type converter for the value
        Returns:
        {$code this} Builder for fluent coding
        Throws:
        SKException - if the value cannot be converted to a ContextVariable