|
Préférences
Moteurs de recherche
|
||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.xml.bind.annotation.adapters
|
Constructor Summary | |
---|---|
NormalizedStringAdapter()
|
Method Summary | |
---|---|
protected static boolean |
isWhiteSpaceExceptSpace(char ch)
Returns true if the specified char is a white space character but not 0x20. |
String |
marshal(String s)
No-op. |
String |
unmarshal(String text)
Removes leading and trailing whitespaces of the string given as the parameter, then replace any tab, CR, and LF by a whitespace character ' '. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NormalizedStringAdapter()
Method Detail |
---|
public String unmarshal(String text)
unmarshal
in class XmlAdapter<String,String>
text
- The value to be converted. Can be null.public String marshal(String s)
marshal
in class XmlAdapter<String,String>
s
- The value to be convereted. Can be null.protected static boolean isWhiteSpaceExceptSpace(char ch)