com.sun.msv.datatype.xsd

Class WhiteSpaceProcessor

public abstract class WhiteSpaceProcessor extends Object implements Serializable

processes white space normalization

Author: Kohsuke KAWAGUCHI

Field Summary
static WhiteSpaceProcessortheCollapse
static WhiteSpaceProcessorthePreserve
static WhiteSpaceProcessortheReplace
Method Summary
static Stringcollapse(String str)
abstract StringgetName()
gets the name of the white space processing mode.
abstract Stringprocess(String text)
returns whitespace normalized text. behavior varies on what normalization mode is used.
static Stringreplace(String str)

Field Detail

theCollapse

public static final WhiteSpaceProcessor theCollapse

thePreserve

public static final WhiteSpaceProcessor thePreserve

theReplace

public static final WhiteSpaceProcessor theReplace

Method Detail

collapse

public static String collapse(String str)

getName

public abstract String getName()
gets the name of the white space processing mode. It is one of "preserve","collapse", or "replace".

process

public abstract String process(String text)
returns whitespace normalized text. behavior varies on what normalization mode is used.

replace

public static String replace(String str)