|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<StringUtil.TextType>
com.sibvisions.util.type.StringUtil.TextType
public static enum StringUtil.TextType
the text types.
| Enum Constant Summary | |
|---|---|
AZLetters
only letters from A(a) to Z(z). |
|
AZLettersDigits
letters from A(a) to Z(z) and digits. |
|
Digits
only digits. |
|
FromFirstLetter
all characters but start from first letter. |
|
Letters
only letters. |
|
LettersDigits
letters and digits. |
|
LettersDigitsSpace
letters and digits and space. |
|
LettersDigitsWhitespace
letters and digits and whitespace. |
|
LowerCase
all characters that are lowercase. |
|
UpperCase
all characters that are uppercase. |
|
WithoutLeadingDigits
all characters but without leading digits. |
|
| Method Summary | |
|---|---|
boolean |
acceptCharacter(char pChar)
Tests if this type does accept the given char. |
boolean |
isStartCharacter(char pChar)
Tests if the given char is a valid start position for the type. |
static StringUtil.TextType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static StringUtil.TextType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final StringUtil.TextType AZLetters
public static final StringUtil.TextType AZLettersDigits
public static final StringUtil.TextType Digits
public static final StringUtil.TextType FromFirstLetter
public static final StringUtil.TextType Letters
public static final StringUtil.TextType LettersDigits
public static final StringUtil.TextType LettersDigitsSpace
public static final StringUtil.TextType LettersDigitsWhitespace
public static final StringUtil.TextType LowerCase
public static final StringUtil.TextType UpperCase
public static final StringUtil.TextType WithoutLeadingDigits
| Method Detail |
|---|
public static StringUtil.TextType[] values()
for (StringUtil.TextType c : StringUtil.TextType.values()) System.out.println(c);
public static StringUtil.TextType valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic boolean acceptCharacter(char pChar)
This function is called on every char in a string.
pChar - the char to test.
true if this type does accept the given char.public boolean isStartCharacter(char pChar)
This function is only called as long as it does not return true. It
is used to determine whether a valid start position for the type has
been reached or not. As long as this function returns false
acceptCharacter(char) will not be called. If it returns
true acceptCharacter(char) will be called for every
char but no longer this function.
pChar - the char to test.
true if the given char is a valid start position.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||