Interface IContext

    • Method Detail

      • getLocale

        Locale getLocale()

        Returns the locale that should be used for processing the template.

        Returns:
        the locale to be used.
      • containsVariable

        boolean containsVariable​(String name)

        Checks whether a specific variable is already contained in this context or not.

        Parameters:
        name - the name of the variable to be checked.
        Returns:
        true if the variable is already contained, false if not.
      • getVariableNames

        Set<String> getVariableNames()

        Get a list with all the names of variables contained at this context.

        Returns:
        the variable names.
      • getVariable

        Object getVariable​(String name)

        Retrieve a specific variable, by name.

        Parameters:
        name - the name of the variable to be retrieved.
        Returns:
        the variable's value.