Package org.zkoss.xel

Interface XelContext

All Known Implementing Classes:
SimpleXelContext, XelContextProxy

public interface XelContext
Context information for XEL evaluation.
Since:
3.0.0
Author:
tomyeh
  • Method Details

    • getVariableResolver

      VariableResolver getVariableResolver()
      Returns the variable resolver, or null if not available.
    • getFunctionMapper

      FunctionMapper getFunctionMapper()
      Returns the function mapper, or null if not available.
    • getAttribute

      Object getAttribute(String name)
      Returns the value of the specified attribute, or null if not available.
      Parameters:
      name - the name of the attribute to retrieve
      Returns:
      the value
      Since:
      5.0.0
    • setAttribute

      Object setAttribute(String name, Object value)
      Sets the value of the specified attribute
      Parameters:
      name - the name of the attribute to set
      value - the value of the attribute to set
      Returns:
      the previous value
      Since:
      5.0.0
    • hasAttribute

      boolean hasAttribute(String name)
      Returns if the attribute is available.

      Notice that null is a valid value, so you can tell if an attribute is associated by examining the return value of getAttribute(java.lang.String).

      Parameters:
      name - the name of the attribute to test
      Since:
      5.0.0
    • removeAttribute

      Object removeAttribute(String name)
      Removes the attribute.
      Parameters:
      name - the name of the attribute to remove.
      Returns:
      the previous value associated with the attribute, if any,
      Since:
      5.0.0
    • getAttributes

      Map<String,Object> getAttributes()
      Returns all attributes
      Since:
      5.0.0