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 Summary
Modifier and TypeMethodDescriptiongetAttribute(String name) Returns the value of the specified attribute, or null if not available.Returns all attributesReturns the function mapper, or null if not available.Returns the variable resolver, or null if not available.booleanhasAttribute(String name) Returns if the attribute is available.removeAttribute(String name) Removes the attribute.setAttribute(String name, Object value) Sets the value of the specified attribute
-
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
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
Sets the value of the specified attribute- Parameters:
name- the name of the attribute to setvalue- the value of the attribute to set- Returns:
- the previous value
- Since:
- 5.0.0
-
hasAttribute
Returns if the attribute is available.Notice that
nullis a valid value, so you can tell if an attribute is associated by examining the return value ofgetAttribute(java.lang.String).- Parameters:
name- the name of the attribute to test- Since:
- 5.0.0
-
removeAttribute
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
Returns all attributes- Since:
- 5.0.0
-