|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjavax.xml.bind.annotation.adapters.XmlAdapter<String,String>
javax.xml.bind.annotation.adapters.NormalizedStringAdapter
public final class NormalizedStringAdapter
處理 xs:normalizedString 的 XmlAdapter。
此適配器移除前導空白和尾部空白,然後用單個空白字元“ ”截斷所有製表符、CR 和 LF。
| 建構子摘要 | |
|---|---|
NormalizedStringAdapter()
|
|
| 方法摘要 | |
|---|---|
protected static boolean |
isWhiteSpaceExceptSpace(char ch)
如果指定的 char 是空白字元但不是 0x20,則返回 true。 |
String |
marshal(String s)
無任何操作。 |
String |
unmarshal(String text)
移除作為參數給定的字元串的前導空白和尾部空白,然後用單個空白字元“ ”替換所有製表符、CR 和 LF。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
public NormalizedStringAdapter()
| 方法詳細資訊 |
|---|
public String unmarshal(String text)
XmlAdapter<String,String> 中的 unmarshaltext - 要轉換的值。可以為 null。public String marshal(String s)
XmlAdapter<String,String> 中的 marshals - 要轉換的值。可以為 null。protected static boolean isWhiteSpaceExceptSpace(char ch)
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。