Top Description Constructors Methods
jakarta.xml.bind.annotation.adapters

public final Class NormalizedStringAdapter

extends XmlAdapter<String, String>
Class Inheritance

XmlAdapter to handle xs:normalizedString.

Replaces any tab, CR, and LF by a whitespace character ' ', as specified in the whitespace facet 'replace'

Author
Kohsuke Kawaguchi, Martin Grebac
Since
1.6, JAXB 2.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected static boolean
isWhiteSpaceExceptSpace(char ch)

Returns true if the specified char is a white space character but not 0x20.

public String
marshal(String
The value to be convereted. Can be null.
s
)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

No-op.
public String
unmarshal(String
The value to be converted. Can be null.
text
)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Replace any tab, CR, and LF by a whitespace character ' ', as specified in the whitespace facet 'replace'

Constructor Detail

NormalizedStringAdapterback to summary
public NormalizedStringAdapter()

Method Detail

isWhiteSpaceExceptSpaceback to summary
protected static boolean isWhiteSpaceExceptSpace(char ch)

Returns true if the specified char is a white space character but not 0x20.

marshalback to summary
public String marshal(String s)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

No-op. Just return the same string given as the parameter.

Parameters
s:String

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

The value to be convereted. Can be null.

Annotations
@Override
unmarshalback to summary
public String unmarshal(String text)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Replace any tab, CR, and LF by a whitespace character ' ', as specified in the whitespace facet 'replace'

Parameters
text:String

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

The value to be converted. Can be null.

Annotations
@Override