com.sun.msv.datatype.xsd
Class WhiteSpaceProcessor
java.lang.Object
com.sun.msv.datatype.xsd.WhiteSpaceProcessor
- All Implemented Interfaces:
- java.io.Serializable
- public abstract class WhiteSpaceProcessor
- extends java.lang.Object
- implements java.io.Serializable
processes white space normalization
- Author:
- Kohsuke KAWAGUCHI
- See Also:
- Serialized Form
Method Summary |
static java.lang.String |
collapse(java.lang.String str)
|
abstract java.lang.String |
getName()
gets the name of the white space processing mode. |
abstract java.lang.String |
process(java.lang.String text)
returns whitespace normalized text. |
static java.lang.String |
replace(java.lang.String str)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
theCollapse
public static final WhiteSpaceProcessor theCollapse
thePreserve
public static final WhiteSpaceProcessor thePreserve
theReplace
public static final WhiteSpaceProcessor theReplace
WhiteSpaceProcessor
public WhiteSpaceProcessor()
collapse
public static java.lang.String collapse(java.lang.String str)
getName
public abstract java.lang.String getName()
- gets the name of the white space processing mode.
It is one of "preserve","collapse", or "replace".
process
public abstract java.lang.String process(java.lang.String text)
- returns whitespace normalized text.
behavior varies on what normalization mode is used.
replace
public static java.lang.String replace(java.lang.String str)
Copyright © 2001-2003 Sun Microsystems, Inc. Documenation generated April 26 2005.