com.sun.msv.datatype.xsd
Class WhiteSpaceProcessor
java.lang.Object
|
+--com.sun.msv.datatype.xsd.WhiteSpaceProcessor
- All Implemented Interfaces:
- Serializable
- public abstract class WhiteSpaceProcessor
- extends Object
- implements Serializable
processes white space normalization
- Author:
- Kohsuke KAWAGUCHI
- See Also:
- Serialized Form
thePreserve
public static final WhiteSpaceProcessor thePreserve
theReplace
public static final WhiteSpaceProcessor theReplace
theCollapse
public static final WhiteSpaceProcessor theCollapse
WhiteSpaceProcessor
public WhiteSpaceProcessor()
process
public abstract String process(String text)
- returns whitespace normalized text.
behavior varies on what normalization mode is used.
getName
public abstract String getName()
- gets the name of the white space processing mode.
It is one of "preserve","collapse", or "replace".
replace
public static String replace(String str)
collapse
public static String collapse(String str)