Class WhiteSpaceProcessor

    • Constructor Detail

      • WhiteSpaceProcessor

        public WhiteSpaceProcessor()
    • Method Detail

      • process

        public abstract String process​(String text)
        returns whitespace normalized text. behavior varies on what normalization mode is used.
      • 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.