fable.framework.toolbox
Class ControlField

java.lang.Object
  extended by fable.framework.toolbox.ControlField

public class ControlField
extends java.lang.Object

This class is used in the toolbox to check the type of a String.
Use it for example to check if a String is an integer.

Author:
suchet

Constructor Summary
ControlField()
           
 
Method Summary
static boolean isAlphaNum(java.lang.String stringToTest)
          This method test is a string is an alphanumeric.
static boolean isFloat(java.lang.String stringToTest)
          This method checks if a string represents a Float with method format of an instance of DecimalFormat.
static boolean isInteger(java.lang.String stringToTest)
          This method checks if a string represents an integer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ControlField

public ControlField()
Method Detail

isInteger

public static final boolean isInteger(java.lang.String stringToTest)
This method checks if a string represents an integer.

Parameters:
stringToTest -
Returns:
true if the string represents an integer.

isFloat

public static final boolean isFloat(java.lang.String stringToTest)
This method checks if a string represents a Float with method format of an instance of DecimalFormat. This instance is created with the respect of the default Locale.

Parameters:
stringToTest - the string to test
Returns:
true if the string represents an Float.

isAlphaNum

public static final boolean isAlphaNum(java.lang.String stringToTest)
This method test is a string is an alphanumeric.

Parameters:
stringToTest - the string to test
Returns:
true if the string is an alphanumeric.