Package org.zkoss.xel

Interface XelContext

    • Method Detail

      • 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

        java.lang.Object getAttribute​(java.lang.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

        java.lang.Object setAttribute​(java.lang.String name,
                                      java.lang.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​(java.lang.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

        java.lang.Object removeAttribute​(java.lang.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

        java.util.Map<java.lang.String,​java.lang.Object> getAttributes()
        Returns all attributes
        Since:
        5.0.0