org.jboss.seam.remoting.wrapper
Class BaseWrapper

java.lang.Object
  extended by org.jboss.seam.remoting.wrapper.BaseWrapper
All Implemented Interfaces:
Wrapper
Direct Known Subclasses:
BagWrapper, BeanWrapper, BooleanWrapper, DateWrapper, MapWrapper, NullWrapper, NumberWrapper, StringWrapper

public abstract class BaseWrapper
extends Object
implements Wrapper

Base class for all Wrapper implementations.

Author:
Shane Bryzak

Field Summary
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 Summary
BaseWrapper()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.seam.remoting.wrapper.Wrapper
conversionScore, convert, marshal
 

Field Detail

path

protected String path
The path of this object within the result object graph


context

protected CallContext context
The call context


element

protected org.dom4j.Element element
The DOM4J element containing the value


value

protected Object value
The wrapped value

Constructor Detail

BaseWrapper

public BaseWrapper()
Method Detail

setPath

public void setPath(String path)
Sets the path.

Specified by:
setPath in interface Wrapper
Parameters:
path - String

setValue

public void setValue(Object value)
Sets the wrapped value

Specified by:
setValue in interface Wrapper
Parameters:
value - Object

getValue

public Object getValue()
Returns the wrapped value

Specified by:
getValue in interface Wrapper
Returns:
Object

setCallContext

public void setCallContext(CallContext context)
Sets the call context

Specified by:
setCallContext in interface Wrapper

setElement

public void setElement(org.dom4j.Element element)
Extracts a value from a DOM4J Element

Specified by:
setElement in interface Wrapper
Parameters:
element - Element

unmarshal

public void unmarshal()
Default implementation does nothing

Specified by:
unmarshal in interface Wrapper

serialize

public void serialize(OutputStream out)
               throws IOException
Default implementation does nothing

Specified by:
serialize in interface Wrapper
Parameters:
out - OutputStream
Throws:
IOException