Package 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
-
-
Field Summary
Fields Modifier and Type Field Description static WhiteSpaceProcessor
theCollapse
static WhiteSpaceProcessor
thePreserve
static WhiteSpaceProcessor
theReplace
-
Constructor Summary
Constructors Constructor Description WhiteSpaceProcessor()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static String
collapse(String str)
protected static WhiteSpaceProcessor
get(String name)
returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.abstract String
getName()
gets the name of the white space processing mode.protected static boolean
isWhiteSpace(char ch)
returns true if the specified char is a white space character.abstract String
process(String text)
returns whitespace normalized text.protected Object
readResolve()
static String
replace(String str)
-
-
-
Field Detail
-
thePreserve
public static final WhiteSpaceProcessor thePreserve
-
theReplace
public static final WhiteSpaceProcessor theReplace
-
theCollapse
public static final WhiteSpaceProcessor theCollapse
-
-
Method Detail
-
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".
-
get
protected static WhiteSpaceProcessor get(String name) throws org.relaxng.datatype.DatatypeException
returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified. Otherwise returns null.- Throws:
org.relaxng.datatype.DatatypeException
-
isWhiteSpace
protected static final boolean isWhiteSpace(char ch)
returns true if the specified char is a white space character.
-
readResolve
protected Object readResolve() throws InvalidObjectException
- Throws:
InvalidObjectException
-
-