|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jibx.runtime.WhitespaceConversions
public final class WhitespaceConversions
Utilities for handling whitespace options.
Constructor Summary | |
---|---|
private |
WhitespaceConversions()
Non-constructor for class with no instances. |
Method Summary | |
---|---|
static java.lang.String |
collapse(java.lang.String text)
Collapse whitespace in string. |
private static java.lang.String |
convertCollapsed(java.lang.String text,
int index)
Convert string value to whitespace-collapsed form. |
private static java.lang.String |
convertReplaced(java.lang.String text,
int index)
Convert string value to whitespace-replaced form. |
static java.lang.String |
replace(java.lang.String text)
Replace non-space whitespace in string. |
static java.lang.String |
trim(java.lang.String text)
Trim leading and trailing whitespace in string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private WhitespaceConversions()
Method Detail |
---|
private static java.lang.String convertReplaced(java.lang.String text, int index)
text
- value to be convertedindex
- first character offset to be dropped from result
public static java.lang.String replace(java.lang.String text)
text
- value to be converted (null
if none)
null
if none)private static java.lang.String convertCollapsed(java.lang.String text, int index)
text
- value to be convertedindex
- first character offset to be dropped from result
public static java.lang.String collapse(java.lang.String text)
text
- value to be converted (null
if none)
null
if none)public static java.lang.String trim(java.lang.String text)
text
- value to be converted (null
if none)
null
if none)
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |