|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.xel.util.XelContextProxy
public class XelContextProxy
A proxy to replace the variable resolver of a given XEL context.
Constructor Summary | |
---|---|
XelContextProxy(XelContext ctx,
FunctionMapper mapper)
Replaces the function mapper with the specified one, but the variable resolver not changed. |
|
XelContextProxy(XelContext ctx,
VariableResolver resolver)
Replaces the variable resolver with the specified one, but the function mapper not changed. |
|
XelContextProxy(XelContext ctx,
VariableResolver resolver,
FunctionMapper mapper)
Replaces both variable resolver and function mapper. |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XelContextProxy(XelContext ctx, VariableResolver resolver)
public XelContextProxy(XelContext ctx, FunctionMapper mapper)
public XelContextProxy(XelContext ctx, VariableResolver resolver, FunctionMapper mapper)
Method Detail |
---|
public VariableResolver getVariableResolver()
XelContext
getVariableResolver
in interface XelContext
public FunctionMapper getFunctionMapper()
XelContext
getFunctionMapper
in interface XelContext
public java.lang.Object getAttribute(java.lang.String name)
XelContext
getAttribute
in interface XelContext
name
- the name of the attribute to retrieve
public java.lang.Object setAttribute(java.lang.String name, java.lang.Object value)
XelContext
setAttribute
in interface XelContext
name
- the name of the attribute to setvalue
- the value of the attribute to set
public boolean hasAttribute(java.lang.String name)
XelContext
Notice that null
is a valid value, so you can
tell if an attribute is associated by examining the return value
of XelContext.getAttribute(java.lang.String)
.
hasAttribute
in interface XelContext
name
- the name of the attribute to testpublic java.lang.Object removeAttribute(java.lang.String name)
XelContext
removeAttribute
in interface XelContext
name
- the name of the attribute to remove.
public java.util.Map<java.lang.String,java.lang.Object> getAttributes()
XelContext
getAttributes
in interface XelContext
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |