Interface IContext

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean containsVariable​(java.lang.String name)
      Checks whether a specific variable is already contained in this context or not.
      java.util.Locale getLocale()
      Returns the locale that should be used for processing the template.
      java.lang.Object getVariable​(java.lang.String name)
      Retrieve a specific variable, by name.
      java.util.Set<java.lang.String> getVariableNames()
      Get a list with all the names of variables contained at this context.
    • Method Detail

      • getLocale

        java.util.Locale getLocale()

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

        Returns:
        the locale to be used.
      • containsVariable

        boolean containsVariable​(java.lang.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

        java.util.Set<java.lang.String> getVariableNames()

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

        Returns:
        the variable names.
      • getVariable

        java.lang.Object getVariable​(java.lang.String name)

        Retrieve a specific variable, by name.

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