Package com.sun.msv.datatype.xsd
Class WhiteSpaceProcessor
java.lang.Object
com.sun.msv.datatype.xsd.WhiteSpaceProcessor
- All Implemented Interfaces:
Serializable
processes white space normalization
- Author:
- Kohsuke KAWAGUCHI
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WhiteSpaceProcessor
static final WhiteSpaceProcessor
static final WhiteSpaceProcessor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
protected static WhiteSpaceProcessor
returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.abstract String
getName()
gets the name of the white space processing mode.protected static final boolean
isWhiteSpace
(char ch) returns true if the specified char is a white space character.abstract String
returns whitespace normalized text.protected Object
static String
-
Field Details
-
thePreserve
-
theReplace
-
theCollapse
-
-
Constructor Details
-
WhiteSpaceProcessor
public WhiteSpaceProcessor()
-
-
Method Details
-
process
returns whitespace normalized text. behavior varies on what normalization mode is used. -
getName
gets the name of the white space processing mode. It is one of "preserve","collapse", or "replace". -
get
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
- Throws:
InvalidObjectException
-
replace
-
collapse
-