com.algosome.common.util.preferences
Class Field
java.lang.Object
com.algosome.common.util.preferences.Field
public class Field
- extends java.lang.Object
Represents Fields for preferences.
- Author:
- Greg Cope
Constructor Summary |
Field()
|
Method Summary |
static java.lang.Object |
convertToObjectType(java.lang.String object,
int type)
|
static int |
getObjectType(java.lang.Object o)
Retrieves an int which represents the Field type |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TYPE_INTEGER
public static final int TYPE_INTEGER
- See Also:
- Constant Field Values
TYPE_BOOLEAN
public static final int TYPE_BOOLEAN
- See Also:
- Constant Field Values
TYPE_DOUBLE
public static final int TYPE_DOUBLE
- See Also:
- Constant Field Values
TYPE_COLOR
public static final int TYPE_COLOR
- See Also:
- Constant Field Values
TYPE_TEXT
public static final int TYPE_TEXT
- See Also:
- Constant Field Values
TYPE_PATTERN
public static final java.util.regex.Pattern TYPE_PATTERN
NAME_PATTERN
public static final java.util.regex.Pattern NAME_PATTERN
VALUE_PATTERN
public static final java.util.regex.Pattern VALUE_PATTERN
Field
public Field()
convertToObjectType
public static java.lang.Object convertToObjectType(java.lang.String object,
int type)
- Parameters:
object
- type
-
- Returns:
getObjectType
public static int getObjectType(java.lang.Object o)
- Retrieves an int which represents the Field type
- Parameters:
o
-
- Returns: