| java.lang.Object net.sf.saxon.value.Whitespace
Whitespace | public class Whitespace (Code) | | This class provides helper methods and constants for handling whitespace
|
Field Summary | |
final public static int | ALL | final public static int | COLLAPSE | final public static int | IGNORABLE | final public static int | NONE | final public static int | PRESERVE The values PRESERVE, REPLACE, and COLLAPSE represent the three options for whitespace
normalization. | final public static int | REPLACE | final public static int | UNSPECIFIED |
ALL | final public static int ALL(Code) | | |
COLLAPSE | final public static int COLLAPSE(Code) | | |
IGNORABLE | final public static int IGNORABLE(Code) | | |
NONE | final public static int NONE(Code) | | The values NONE, IGNORABLE, and ALL identify which kinds of whitespace text node
should be stripped when building a source tree
|
PRESERVE | final public static int PRESERVE(Code) | | The values PRESERVE, REPLACE, and COLLAPSE represent the three options for whitespace
normalization. They are deliberately chosen in ascending strength order; given a number
of whitespace facets, only the strongest needs to be carried out.
|
REPLACE | final public static int REPLACE(Code) | | |
UNSPECIFIED | final public static int UNSPECIFIED(Code) | | |
applyWhitespaceNormalization | public static CharSequence applyWhitespaceNormalization(int action, CharSequence value)(Code) | | Apply schema-defined whitespace normalization to a string
Parameters: action - the action to be applied: one of PRESERVE, REPLACE, or COLLAPSE Parameters: value - the value to be normalized the value after normalization |
containsWhitespace | public static boolean containsWhitespace(CharSequence value)(Code) | | Determine if a string contains any whitespace
|
isWhite | final public static boolean isWhite(CharSequence content)(Code) | | Determine if a string is all-whitespace
Parameters: content - the string to be tested true if the supplied string contains no non-whitespacecharacters |
removeLeadingWhitespace | public static CharSequence removeLeadingWhitespace(CharSequence value)(Code) | | Remove leading whitespace characters from a string
|
|
|