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> 中的
unmarshal
text - 要转换的值。可以为 null。
public String marshal(String s)
XmlAdapter<String,String> 中的
marshal
s - 要转换的值。可以为 null。
protected static boolean isWhiteSpaceExceptSpace(char ch)