|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.value.Whitespace
This class provides helper methods and constants for handling whitespace
Field Summary | |
static int |
COLLAPSE
|
static int |
PRESERVE
The values PRESERVE, REPLACE, and COLLAPSE represent the three options for whitespace normalization. |
static int |
REPLACE
|
Method Summary | |
static java.lang.CharSequence |
applyWhitespaceNormalization(int action,
java.lang.CharSequence value)
Apply schema-defined whitespace normalization to a string |
static boolean |
isWhite(java.lang.CharSequence content)
Determine if a string is all-whitespace |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PRESERVE
public static final int REPLACE
public static final int COLLAPSE
Method Detail |
public static java.lang.CharSequence applyWhitespaceNormalization(int action, java.lang.CharSequence value)
action
- the action to be applied: one of PRESERVE, REPLACE, or COLLAPSEvalue
- the value to be normalized
public static final boolean isWhite(java.lang.CharSequence content)
content
- the string to be tested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |