站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.0.0 API 英文版文档

BaseWrapper (JBoss Seam API Documentation) - JBoss Seam 1.0.0 API 英文版文档


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  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 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

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

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
Parameters:
call - Call

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