|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ToolkitAttributeType>
org.terracotta.toolkit.search.attribute.ToolkitAttributeType
public enum ToolkitAttributeType
Enum Constant Summary | |
---|---|
BOOLEAN
Boolean type |
|
BYTE
Byte type |
|
CHAR
Character type |
|
DATE
Date type |
|
DOUBLE
Double type |
|
ENUM
Enum type |
|
FLOAT
Float type |
|
INT
Integer type |
|
LONG
Long type |
|
SHORT
Short type |
|
SQL_DATE
SQL Date type |
|
STRING
String type |
Method Summary | |
---|---|
boolean |
isComparable()
Is this type comparable? |
static boolean |
isSupportedType(Object value)
Test the given value to see if it is a legal type |
static ToolkitAttributeType |
typeFor(Class<?> c)
|
static ToolkitAttributeType |
typeFor(String name,
Object value)
Get the appropriate ToolkitAttributeType enum for the given object value. |
abstract void |
validateValue(String name,
Object value)
Validate that the given value is in fact of the correct type |
static ToolkitAttributeType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ToolkitAttributeType[] |
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 ToolkitAttributeType BOOLEAN
public static final ToolkitAttributeType BYTE
public static final ToolkitAttributeType CHAR
public static final ToolkitAttributeType DOUBLE
public static final ToolkitAttributeType FLOAT
public static final ToolkitAttributeType INT
public static final ToolkitAttributeType LONG
public static final ToolkitAttributeType SHORT
public static final ToolkitAttributeType DATE
public static final ToolkitAttributeType SQL_DATE
public static final ToolkitAttributeType ENUM
public static final ToolkitAttributeType STRING
Method Detail |
---|
public static ToolkitAttributeType[] values()
for (ToolkitAttributeType c : ToolkitAttributeType.values()) System.out.println(c);
public static ToolkitAttributeType 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 static ToolkitAttributeType typeFor(String name, Object value) throws SearchException
ToolkitAttributeType
enum for the given object value.
name
- the attribute name (only meaningful to message if exception thrown)value
- the value to lookup the type for
SearchException
- if the given value is not valid for a search attributepublic static ToolkitAttributeType typeFor(Class<?> c)
public static boolean isSupportedType(Object value)
value
-
public abstract void validateValue(String name, Object value) throws SearchException
name
- the attribute name (only meaningful to message if exception thrown)value
- the value to validate against this type
SearchException
- if the given value is not a valid instance of this typepublic boolean isComparable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |