XmlAdapter to handle xs:token and its derived types.
This adapter removes leading and trailing whitespaces, then truncate any sequence of tab, CR, LF, and SP by a single whitespace character ' '.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected static boolean | |
| public String | marshal(String
The value to be convereted. Can be null. s)Implements abstract javax. |
| public String | unmarshal(String
The value to be converted. Can be null. text)Implements abstract javax. |
| CollapsedStringAdapter | back to summary |
|---|---|
| public CollapsedStringAdapter() | |
| isWhiteSpace | back to summary |
|---|---|
| protected static boolean isWhiteSpace(char ch) returns true if the specified char is a white space character. | |
| marshal | back to summary |
|---|---|
| public String marshal(String s) Implements abstract javax. No-op. Just return the same string given as the parameter.
| |
| unmarshal | back to summary |
|---|---|
| public String unmarshal(String text) Implements abstract javax. Removes leading and trailing whitespaces of the string given as the parameter, then truncate any sequence of tab, CR, LF, and SP by a single whitespace character ' '.
| |