Class CollapsedStringAdapter

java.lang.Object
jakarta.xml.bind.annotation.adapters.XmlAdapter<String,String>
jakarta.xml.bind.annotation.adapters.CollapsedStringAdapter

public class CollapsedStringAdapter extends XmlAdapter<String,String>
Built-in 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 ' '.

Since:
1.6, JAXB 2.0