Class WhiteSpaceProcessor

java.lang.Object
com.sun.msv.datatype.xsd.WhiteSpaceProcessor
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
WhiteSpaceProcessor.Collapse, WhiteSpaceProcessor.Preserve, WhiteSpaceProcessor.Replace

public abstract class WhiteSpaceProcessor extends Object implements Serializable
processes white space normalization
See Also:
  • Field Details

    • 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:
  • Constructor Details

    • WhiteSpaceProcessor

      public WhiteSpaceProcessor()
  • Method Details

    • process

      public abstract String process(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 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
    • replace

      public static String replace(String str)
    • collapse

      public static String collapse(String str)