This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
javax.xml.bind.annotation.adapters
class CollapsedStringAdapter
public class CollapsedStringAdapter
extends XmlAdapter
Built-in {@link 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 ' '.
Method Summary |
protected static boolean |
returns true if the specified char is a white space character.
|
String |
No-op.
|
String |
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 ' '.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CollapsedStringAdapter
public CollapsedStringAdapter()
-
isWhiteSpace
protected static boolean isWhiteSpace(char ch)
-
returns true if the specified char is a white space character.
- Parameters:
ch
marshal
public String marshal(String s)
-
No-op.
Just return the same string given as the parameter.
- Overrides:
marshal
in class XmlAdapter
- Parameters:
s
unmarshal
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 ' '.
- Overrides:
unmarshal
in class XmlAdapter
- Parameters:
text
This documentation differs from the official API.
Jadeite adds
extra features to the API including:
variable font sizes,
constructions examples,
placeholders for classes and methods, and auto-generated “See Also” links.
Additionally it
is missing some items found in standard Javadoc documentation, including:
generics type information,
“Deprecated” tags and comments,
“See Also” links,
along with other minor differences.
Please send any questions or feedback to
bam@cs.cmu.edu.
This page displays the
Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
The official Sun™ documentation can be found here at
http://java.sun.com/javase/6/docs/api/.