| javax.xml.bind.annotation.adapters.CollapsedStringAdapter
CollapsedStringAdapter | public class CollapsedStringAdapter extends XmlAdapter (Code) | | Built-in
XmlAdapter to handle xs:token and its derived types.
This adapter removes leading and trailing whitespaces, then truncate any
sequnce of tab, CR, LF, and SP by a single whitespace character ' '.
author: Kohsuke Kawaguchi since: JAXB 2.0 |
Method Summary | |
protected static boolean | isWhiteSpace(char ch) returns true if the specified char is a white space character. | public String | marshal(String s) No-op. | public String | unmarshal(String text) Removes leading and trailing whitespaces of the string
given as the parameter, then truncate any
sequnce of tab, CR, LF, and SP by a single whitespace character ' '. |
isWhiteSpace | protected static boolean isWhiteSpace(char ch)(Code) | | returns true if the specified char is a white space character.
|
marshal | public String marshal(String s)(Code) | | No-op.
Just return the same string given as the parameter.
|
unmarshal | public String unmarshal(String text)(Code) | | Removes leading and trailing whitespaces of the string
given as the parameter, then truncate any
sequnce of tab, CR, LF, and SP by a single whitespace character ' '.
|
|
|