public class SimpleXelContext extends Object implements XelContext
XelContext.| Constructor and Description |
|---|
SimpleXelContext() |
SimpleXelContext(VariableResolver resolver) |
SimpleXelContext(VariableResolver resolver,
FunctionMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAttribute(String name)
Returns the value of the specified attribute, or null if not available.
|
Map<String,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(String name)
Returns if the attribute is available.
|
Object |
removeAttribute(String name)
Removes the attribute.
|
Object |
setAttribute(String name,
Object value)
Sets the value of the specified attribute
|
void |
setFunctionMapper(FunctionMapper mapper)
Sets the function mapper, or null if not available.
|
void |
setVariableResolver(VariableResolver resolver)
Sets the variable resolver, or null if not available.
|
public SimpleXelContext(VariableResolver resolver, FunctionMapper mapper)
public SimpleXelContext(VariableResolver resolver)
public SimpleXelContext()
public void setVariableResolver(VariableResolver resolver)
public void setFunctionMapper(FunctionMapper mapper)
public VariableResolver getVariableResolver()
XelContextgetVariableResolver in interface XelContextpublic FunctionMapper getFunctionMapper()
XelContextgetFunctionMapper in interface XelContextpublic Object getAttribute(String name)
XelContextgetAttribute in interface XelContextname - the name of the attribute to retrievepublic Object setAttribute(String name, Object value)
XelContextsetAttribute in interface XelContextname - the name of the attribute to setvalue - the value of the attribute to setpublic boolean hasAttribute(String name)
XelContextNotice 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 XelContextname - the name of the attribute to testpublic Object removeAttribute(String name)
XelContextremoveAttribute in interface XelContextname - the name of the attribute to remove.public Map<String,Object> getAttributes()
XelContextgetAttributes in interface XelContextCopyright © 2018. All rights reserved.