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
 java.lang.Object getAttribute(java.lang.String name)
          Returns the value of the specified attribute, or null if not available.
 java.util.Map<java.lang.String,java.lang.Object> getAttributes()
          Returns all attributes
 FunctionMapper getFunctionMapper()
          Returns the function mapper, or null if not available.
 VariableResolver getVariableResolver()
          Returns the variable resolver, or null if not available.
 boolean hasAttribute(java.lang.String name)
          Returns if the attribute is available.
 java.lang.Object removeAttribute(java.lang.String name)
          Removes the attribute.
 java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
          Sets the value of the specified attribute
 

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


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo