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

Wrapper (JBoss Seam API Documentation) - JBoss Seam 1.0.1 API 英文版文档


org.jboss.seam.remoting.wrapper
Interface Wrapper

All Known Implementing Classes:
BagWrapper, BaseWrapper, BeanWrapper, BooleanWrapper, DateWrapper, MapWrapper, NullWrapper, NumberWrapper, StringWrapper

public interface Wrapper

Acts as a wrapper around parameter values passed within an AJAX call.

Author:
Shane Bryzak

Method Summary
 ConversionScore conversionScore(Class cls)
          Returns a score indicating whether this parameter value can be converted to the specified type.
 Object convert(Type type)
          Convert the wrapped parameter value to the specified target class.
 Object getValue()
           
 void marshal(OutputStream out)
           
 void serialize(OutputStream out)
           
 void setCallContext(CallContext context)
           
 void setElement(org.dom4j.Element element)
          Extracts a value from a DOM4J Element
 void setValue(Object value)
           
 void unmarshal()
           
 

Method Detail

setCallContext

void setCallContext(CallContext context)
Parameters:
call - Call

setElement

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

Parameters:
element - Element

setValue

void setValue(Object value)
Parameters:
value - Object

getValue

Object getValue()
Returns:
Object

unmarshal

void unmarshal()

convert

Object convert(Type type)
               throws ConversionException
Convert the wrapped parameter value to the specified target class.

Parameters:
targetClass - Class
Returns:
Object
Throws:
ConversionException

marshal

void marshal(OutputStream out)
             throws IOException
Throws:
IOException

serialize

void serialize(OutputStream out)
               throws IOException
Throws:
IOException

conversionScore

ConversionScore conversionScore(Class cls)
Returns a score indicating whether this parameter value can be converted to the specified type. This helper method is used to determine which (possibly overloaded) method of a component can/should be called. 0 - Cannot be converted 1 - Can be converted to this type 2 - Param is already of this type

Parameters:
target - Class
Returns:
int