Class WhiteSpaceProcessor

    • Field Detail

      • 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.
    • Constructor Detail

      • WhiteSpaceProcessor

        public WhiteSpaceProcessor()
    • 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)