Package com.sun.msv.datatype.xsd
Class WhiteSpaceProcessor
- java.lang.Object
-
- com.sun.msv.datatype.xsd.WhiteSpaceProcessor
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
WhiteSpaceProcessor.Collapse
,WhiteSpaceProcessor.Preserve
,WhiteSpaceProcessor.Replace
public abstract class WhiteSpaceProcessor extends java.lang.Object implements java.io.Serializable
processes white space normalization- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
WhiteSpaceProcessor.Collapse
private static class
WhiteSpaceProcessor.Preserve
private static class
WhiteSpaceProcessor.Replace
-
Field Summary
Fields Modifier and Type Field Description private static WhiteSpaceProcessor
backwardCompatibiliyHook1
Deprecated.private static WhiteSpaceProcessor
backwardCompatibiliyHook2
Deprecated.private static WhiteSpaceProcessor
backwardCompatibiliyHook3
Deprecated.private static long
serialVersionUID
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 java.lang.String
collapse(java.lang.String str)
protected static WhiteSpaceProcessor
get(java.lang.String name)
returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.abstract java.lang.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 java.lang.String
process(java.lang.String text)
returns whitespace normalized text.protected java.lang.Object
readResolve()
static java.lang.String
replace(java.lang.String str)
(package private) abstract int
tightness()
higher return value indicates tigher constraint
-
-
-
Field Detail
-
thePreserve
public static final WhiteSpaceProcessor thePreserve
-
theReplace
public static final WhiteSpaceProcessor theReplace
-
theCollapse
public static final WhiteSpaceProcessor theCollapse
-
backwardCompatibiliyHook1
private static final WhiteSpaceProcessor backwardCompatibiliyHook1
Deprecated.Older version of XSDLib was using an anonymous class.
-
backwardCompatibiliyHook2
private static final WhiteSpaceProcessor backwardCompatibiliyHook2
Deprecated.Older version of XSDLib was using an anonymous class.
-
backwardCompatibiliyHook3
private static final WhiteSpaceProcessor backwardCompatibiliyHook3
Deprecated.Older version of XSDLib was using an anonymous class.
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public abstract java.lang.String process(java.lang.String text)
returns whitespace normalized text. behavior varies on what normalization mode is used.
-
tightness
abstract int tightness()
higher return value indicates tigher constraint
-
getName
public abstract java.lang.String getName()
gets the name of the white space processing mode. It is one of "preserve","collapse", or "replace".
-
get
protected static WhiteSpaceProcessor get(java.lang.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 java.lang.Object readResolve() throws java.io.InvalidObjectException
- Throws:
java.io.InvalidObjectException
-
replace
public static java.lang.String replace(java.lang.String str)
-
collapse
public static java.lang.String collapse(java.lang.String str)
-
-