com.sibvisions.util.type
Enum StringUtil.TextType

java.lang.Object
  extended by java.lang.Enum<StringUtil.TextType>
      extended by com.sibvisions.util.type.StringUtil.TextType
All Implemented Interfaces:
Serializable, Comparable<StringUtil.TextType>
Enclosing class:
StringUtil

public static enum StringUtil.TextType
extends 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
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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Letters

public static final StringUtil.TextType Letters
only letters.


Digits

public static final StringUtil.TextType Digits
only digits.


LettersDigits

public static final StringUtil.TextType LettersDigits
letters and digits.


LettersDigitsWhitespace

public static final StringUtil.TextType LettersDigitsWhitespace
letters and digits and whitespace.


LettersDigitsSpace

public static final StringUtil.TextType LettersDigitsSpace
letters and digits and space.


AZLetters

public static final StringUtil.TextType AZLetters
only letters from A(a) to Z(z).


AZLettersDigits

public static final StringUtil.TextType AZLettersDigits
letters from A(a) to Z(z) and digits.


WithoutLeadingDigits

public static final StringUtil.TextType WithoutLeadingDigits
all characters but without leading digits.


FromFirstLetter

public static final StringUtil.TextType FromFirstLetter
all characters but start from first letter.


UpperCase

public static final StringUtil.TextType UpperCase
all characters that are uppercase.


LowerCase

public static final StringUtil.TextType LowerCase
all characters that are lowercase.

Method Detail

values

public static final StringUtil.TextType[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(StringUtil.TextType c : StringUtil.TextType.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static StringUtil.TextType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.