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

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


org.jboss.seam.remoting.wrapper
Class StringWrapper

java.lang.Object
  extended by org.jboss.seam.remoting.wrapper.BaseWrapper
      extended by org.jboss.seam.remoting.wrapper.StringWrapper
All Implemented Interfaces:
Wrapper

public class StringWrapper
extends BaseWrapper
implements Wrapper

String wrapper class.

Author:
Shane Bryzak

Field Summary
static String DEFAULT_ENCODING
           
 
Fields inherited from class org.jboss.seam.remoting.wrapper.BaseWrapper
context, element, value
 
Constructor Summary
StringWrapper()
           
 
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.
 void marshal(OutputStream out)
           
 
Methods inherited from class org.jboss.seam.remoting.wrapper.BaseWrapper
getValue, serialize, setCallContext, setElement, setValue, unmarshal
 
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
getValue, serialize, setCallContext, setElement, setValue, unmarshal
 

Field Detail

DEFAULT_ENCODING

public static final String DEFAULT_ENCODING
See Also:
Constant Field Values
Constructor Detail

StringWrapper

public StringWrapper()
Method Detail

convert

public Object convert(Type type)
               throws ConversionException
Description copied from interface: Wrapper
Convert the wrapped parameter value to the specified target class.

Specified by:
convert in interface Wrapper
Parameters:
targetClass - Class
Returns:
Object
Throws:
ConversionException

conversionScore

public ConversionScore conversionScore(Class cls)
Description copied from interface: Wrapper
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

Specified by:
conversionScore in interface Wrapper
Parameters:
target - Class
Returns:
int

marshal

public void marshal(OutputStream out)
             throws IOException
Specified by:
marshal in interface Wrapper
Throws:
IOException