com.sibvisions.util.type
Enum StringUtil.CharacterType

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

public static enum StringUtil.CharacterType
extends Enum<StringUtil.CharacterType>

the character types.


Enum Constant Summary
All
          all kind of characters.
Digits
          only digits.
DigitsSpecial
          digits and no letters.
Letters
          only letters.
LettersDigits
          letters and digits.
LettersDigitsSpace
          letters and digits and space.
LettersDigitsWhitespace
          letters and digits and whitespace.
LettersSpecial
          letters and no digits.
None
          null or empty.
OnlySpecial
          no letters and no digits.
OnlyWhitespace
          only whitespaces.
 
Method Summary
static StringUtil.CharacterType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static StringUtil.CharacterType[] 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.CharacterType Letters
only letters.


Digits

public static final StringUtil.CharacterType Digits
only digits.


LettersDigits

public static final StringUtil.CharacterType LettersDigits
letters and digits.


OnlyWhitespace

public static final StringUtil.CharacterType OnlyWhitespace
only whitespaces.


OnlySpecial

public static final StringUtil.CharacterType OnlySpecial
no letters and no digits.


LettersSpecial

public static final StringUtil.CharacterType LettersSpecial
letters and no digits.


DigitsSpecial

public static final StringUtil.CharacterType DigitsSpecial
digits and no letters.


LettersDigitsWhitespace

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


LettersDigitsSpace

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


All

public static final StringUtil.CharacterType All
all kind of characters.


None

public static final StringUtil.CharacterType None
null or empty.

Method Detail

values

public static final StringUtil.CharacterType[] 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.CharacterType c : StringUtil.CharacterType.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.CharacterType 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.