| 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.xml.bind.annotation.adapters.XmlAdapter<String,String>
javax.xml.bind.annotation.adapters.CollapsedStringAdapter
public class CollapsedStringAdapter
用来处理 xs:token 及其派生类型的内置 XmlAdapter。
此适配器移除前导空白和尾部空白,然后用单个空白字符“ ”截断任何制表符、CR、LF 和 SP 序列。
| 构造方法摘要 | |
|---|---|
CollapsedStringAdapter()
 | 
|
| 方法摘要 | |
|---|---|
protected static boolean | 
isWhiteSpace(char ch)
如果指定的 char 是空白字符,则返回 true。  | 
 String | 
marshal(String s)
无任何操作。  | 
 String | 
unmarshal(String text)
移除作为参数提供的字符串的前导空白和尾部空白,然后用单个空白字符“ ”截断任何制表符、CR、LF 和 SP 序列。  | 
| 从类 java.lang.Object 继承的方法 | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public CollapsedStringAdapter()
| 方法详细信息 | 
|---|
public String unmarshal(String text)
XmlAdapter<String,String> 中的 unmarshaltext - 要转换的值。可以为 null。public String marshal(String s)
XmlAdapter<String,String> 中的 marshals - 要转换的值。可以为 null。protected static boolean isWhiteSpace(char ch)
  | 
JavaTM 2 Platform Standard Ed. 6  | 
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。