public class HavingContext<T> extends Object implements org.apache.commons.jexl2.JexlContext
JexlContext that let retrieve XML version of the object and the original object.| Modifier and Type | Field and Description |
|---|---|
protected static DocumentBuilder |
builder |
protected org.apache.commons.jexl2.JexlContext |
context |
protected Document |
doc |
protected org.apache.commons.jexl2.JexlEngine |
engine |
protected static org.slf4j.Logger |
logger |
protected T |
wrapped |
protected static com.thoughtworks.xstream.XStream |
XSTREAM |
| Constructor and Description |
|---|
HavingContext(org.apache.commons.jexl2.JexlEngine engine,
T wrapped) |
| Modifier and Type | Method and Description |
|---|---|
protected Document |
buildDocument()
Build XML document and parse it.
|
Object |
get(String name) |
Document |
getDocument() |
org.apache.commons.jexl2.JexlEngine |
getEngine() |
T |
getWrapped() |
boolean |
has(String name) |
void |
set(String name,
Object value) |
protected static org.slf4j.Logger logger
protected static com.thoughtworks.xstream.XStream XSTREAM
protected static DocumentBuilder builder
protected org.apache.commons.jexl2.JexlContext context
protected org.apache.commons.jexl2.JexlEngine engine
protected T wrapped
protected Document doc
public HavingContext(org.apache.commons.jexl2.JexlEngine engine,
T wrapped)
public org.apache.commons.jexl2.JexlEngine getEngine()
public T getWrapped()
public Document getDocument()
protected Document buildDocument()
public Object get(String name)
get in interface org.apache.commons.jexl2.JexlContextname - ObjectContext.get(java.lang.String)public void set(String name, Object value)
set in interface org.apache.commons.jexl2.JexlContextname - value - ObjectContext.set(java.lang.String, java.lang.Object)public boolean has(String name)
has in interface org.apache.commons.jexl2.JexlContextname - ObjectContext.has(java.lang.String)Copyright © 2020. All Rights Reserved.