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 WhiteSpaceProcessorstatic final WhiteSpaceProcessorstatic final WhiteSpaceProcessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Stringprotected static WhiteSpaceProcessorreturns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.abstract StringgetName()gets the name of the white space processing mode.protected static final booleanisWhiteSpace(char ch) returns true if the specified char is a white space character.abstract Stringreturns whitespace normalized text.protected Objectstatic 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
-