public abstract class BaseWrapper extends Object implements Wrapper
Modifier and Type | Field and Description |
---|---|
protected BeanManager |
beanManager |
protected CallContext |
context
The call context
|
protected org.dom4j.Element |
element
The DOM4J element containing the value
|
protected String |
path
The path of this object within the result object graph
|
protected Object |
value
The wrapped value
|
Constructor and Description |
---|
BaseWrapper(BeanManager beanManager) |
Modifier and Type | Method and Description |
---|---|
Object |
getValue()
Returns the wrapped value
|
void |
serialize(OutputStream out)
Default implementation does nothing
|
void |
setCallContext(CallContext context)
Sets the call context
|
void |
setElement(org.dom4j.Element element)
Extracts a value from a DOM4J Element
|
void |
setPath(String path)
Sets the path.
|
void |
setValue(Object value)
Sets the wrapped value
|
void |
unmarshal()
Default implementation does nothing
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
conversionScore, convert, marshal
protected BeanManager beanManager
protected String path
protected CallContext context
protected org.dom4j.Element element
protected Object value
public BaseWrapper(BeanManager beanManager)
public void setPath(String path)
public void setValue(Object value)
public Object getValue()
public void setCallContext(CallContext context)
setCallContext
in interface Wrapper
public void setElement(org.dom4j.Element element)
setElement
in interface Wrapper
element
- Elementpublic void unmarshal()
public void serialize(OutputStream out) throws IOException
serialize
in interface Wrapper
out
- OutputStreamIOException
Copyright © 2012 Seam Framework. All Rights Reserved.