Top Description Inners Fields Constructors Methods
com.sun.msv.datatype.xsd

public abstract Class WhiteSpaceProcessor

extends Object
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Known Direct Subclasses
com.sun.msv.datatype.xsd.WhiteSpaceProcessor.Preserve, com.sun.msv.datatype.xsd.WhiteSpaceProcessor.Replace, com.sun.msv.datatype.xsd.WhiteSpaceProcessor.Collapse
Imports
org.relaxng.datatype.DatatypeException, java.io.InvalidObjectException, .Serializable

processes white space normalization
Author
Kohsuke KAWAGUCHI

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class

Field Summary

Modifier and TypeField and Description
private static final WhiteSpaceProcessor
backwardCompatibiliyHook1

Older version of XSDLib was using an anonymous class.

private static final WhiteSpaceProcessor
backwardCompatibiliyHook2

Older version of XSDLib was using an anonymous class.

private static final WhiteSpaceProcessor
backwardCompatibiliyHook3

Older version of XSDLib was using an anonymous class.

private static final long
public static final WhiteSpaceProcessor
public static final WhiteSpaceProcessor
public static final WhiteSpaceProcessor

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static String
protected static WhiteSpaceProcessor
get(String name)

returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified.

public 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.

public abstract String
process(String text)

returns whitespace normalized text.

protected Object
public static String
pack-priv abstract int
tightness()

higher return value indicates tigher constraint

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

backwardCompatibiliyHook1back to summary
private static final WhiteSpaceProcessor backwardCompatibiliyHook1

Deprecated

Older version of XSDLib was using an anonymous class.

backwardCompatibiliyHook2back to summary
private static final WhiteSpaceProcessor backwardCompatibiliyHook2

Deprecated

Older version of XSDLib was using an anonymous class.

backwardCompatibiliyHook3back to summary
private static final WhiteSpaceProcessor backwardCompatibiliyHook3

Deprecated

Older version of XSDLib was using an anonymous class.

serialVersionUIDback to summary
private static final long serialVersionUID
theCollapseback to summary
public static final WhiteSpaceProcessor theCollapse
thePreserveback to summary
public static final WhiteSpaceProcessor thePreserve
theReplaceback to summary
public static final WhiteSpaceProcessor theReplace

Constructor Detail

WhiteSpaceProcessorback to summary
public WhiteSpaceProcessor()

Method Detail

collapseback to summary
public static String collapse(String str)
getback to summary
protected static WhiteSpaceProcessor get(String name) throws DatatypeException

returns a WhiteSpaceProcessor object if "whiteSpace" facet is specified. Otherwise returns null.

getNameback to summary
public abstract String getName()

gets the name of the white space processing mode. It is one of "preserve","collapse", or "replace".

isWhiteSpaceback to summary
protected static final boolean isWhiteSpace(char ch)

returns true if the specified char is a white space character.

processback to summary
public abstract String process(String text)

returns whitespace normalized text. behavior varies on what normalization mode is used.

readResolveback to summary
protected Object readResolve() throws InvalidObjectException
replaceback to summary
public static String replace(String str)
tightnessback to summary
pack-priv abstract int tightness()

higher return value indicates tigher constraint

com.sun.msv.datatype.xsd back to summary

private Class WhiteSpaceProcessor.Collapse

extends WhiteSpaceProcessor
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from com.sun.msv.datatype.xsd.WhiteSpaceProcessor:
theCollapsethePreservetheReplace

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

gets the name of the white space processing mode.
public String
process(String text)

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

returns whitespace normalized text.
pack-priv int
tightness()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

higher return value indicates tigher constraint
Inherited from com.sun.msv.datatype.xsd.WhiteSpaceProcessor:
collapsegetisWhiteSpacereadResolvereplace

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.datatype.xsd.WhiteSpaceProcessor.serialVersionUID.

Constructor Detail

Collapseback to summary
private Collapse()

Method Detail

getNameback to summary
public String getName()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

gets the name of the white space processing mode. It is one of "preserve","collapse", or "replace".

processback to summary
public String process(String text)

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

returns whitespace normalized text. behavior varies on what normalization mode is used.

tightnessback to summary
pack-priv int tightness()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

higher return value indicates tigher constraint

com.sun.msv.datatype.xsd back to summary

private Class WhiteSpaceProcessor.Preserve

extends WhiteSpaceProcessor
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from com.sun.msv.datatype.xsd.WhiteSpaceProcessor:
theCollapsethePreservetheReplace

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

gets the name of the white space processing mode.
public String
process(String text)

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

returns whitespace normalized text.
pack-priv int
tightness()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

higher return value indicates tigher constraint
Inherited from com.sun.msv.datatype.xsd.WhiteSpaceProcessor:
collapsegetisWhiteSpacereadResolvereplace

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.datatype.xsd.WhiteSpaceProcessor.serialVersionUID.

Constructor Detail

Preserveback to summary
private Preserve()

Method Detail

getNameback to summary
public String getName()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

gets the name of the white space processing mode. It is one of "preserve","collapse", or "replace".

processback to summary
public String process(String text)

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

returns whitespace normalized text. behavior varies on what normalization mode is used.

tightnessback to summary
pack-priv int tightness()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

higher return value indicates tigher constraint

com.sun.msv.datatype.xsd back to summary

private Class WhiteSpaceProcessor.Replace

extends WhiteSpaceProcessor
Class Inheritance

Field Summary

Modifier and TypeField and Description
private static final long
Inherited from com.sun.msv.datatype.xsd.WhiteSpaceProcessor:
theCollapsethePreservetheReplace

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public String
getName()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

gets the name of the white space processing mode.
public String
process(String text)

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

returns whitespace normalized text.
pack-priv int
tightness()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

higher return value indicates tigher constraint
Inherited from com.sun.msv.datatype.xsd.WhiteSpaceProcessor:
collapsegetisWhiteSpacereadResolvereplace

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides com.sun.msv.datatype.xsd.WhiteSpaceProcessor.serialVersionUID.

Constructor Detail

Replaceback to summary
private Replace()

Method Detail

getNameback to summary
public String getName()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.getName.

gets the name of the white space processing mode. It is one of "preserve","collapse", or "replace".

processback to summary
public String process(String text)

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.process.

returns whitespace normalized text. behavior varies on what normalization mode is used.

tightnessback to summary
pack-priv int tightness()

Implements abstract com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

Doc from com.sun.msv.datatype.xsd.WhiteSpaceProcessor.tightness.

higher return value indicates tigher constraint