com.hp.ucmdb.api.types
Enum Type
java.lang.Object
java.lang.Enum<Type>
com.hp.ucmdb.api.types.Type
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Type>
public enum Type
- extends java.lang.Enum<Type>
Data types
Method Summary |
static Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
INTEGER
public static final Type INTEGER
- Numeric, integer value.
Java value type is Integer.
Operators: EQUALS(int), NOT_EQUALS(int), GREATER(int), GREATER_OR_EQUAL(int), LESS(int), LESS_OR_EQUAL(int),
IS_NULL, IN(list of int / int[]).
LONG
public static final Type LONG
- Numeric, integer value.
Java value type is Long.
Operators: EQUALS(long), NOT_EQUALS(long), GREATER(long), GREATER_OR_EQUAL(long), LESS(long), LESS_OR_EQUAL(long),
IS_NULL, IN(list of long / long[]).
FLOAT
public static final Type FLOAT
- Numeric, floating point value.
Java value type is Float.
Operators: EQUALS(float), NOT_EQUALS(float), GREATER(float), GREATER_OR_EQUAL(float), LESS(float), LESS_OR_EQUAL(float),
IS_NULL, IN(list of float / float[]).
DOUBLE
public static final Type DOUBLE
- Numeric, floating point value.
Java value type is Double.
Operators: EQUALS(double), NOT_EQUALS(double), GREATER(double), GREATER_OR_EQUAL(double), LESS(double), LESS_OR_EQUAL(double),
IS_NULL, IN(list of double / double[]).
INTEGER_LIST
public static final Type INTEGER_LIST
- List of integer values.
Java value type is List in data out, may be Iterable or Integer[] in data-in.
intList refers to either list of ints or int[].
Operators: IS_NULL, CONTAINS(int)
STRING
public static final Type STRING
- String value.
Java value type is String.
Operators: EQUALS(string), NOT_EQUALS(string), IS_NULL, IN(list of string / string[]), IN_IGNORE_CASE(string),
EQUALS_CASE_INSENSITIVE(string), LIKE(string), LIKE_CASE_INSENSITIVE(string)
STRING_LIST
public static final Type STRING_LIST
- List of string values.
Java value type is List in data out, may be Iterable or String[] in data-in.
stringList refers to either list of strings or string[].
Greater and less operations over strings are performed according to ASCII order.
Operators: IS_NULL, CONTAINS(string), GREATER(string), GREATER_OR_EQUAL(string), LESS(string),
LESS_OR_EQUAL(string)
BYTES
public static final Type BYTES
- Raw bytes.
Java value type is byte[].
Operators: IS_NULL, EQUALS(byte[]), NOT_EQUALS(byte[])
XML
public static final Type XML
- String value.
Java value type is String.
Operators: EQUALS(string), NOT_EQUALS(string), IS_NULL, IN(list of string / string[]), IN_IGNORE_CASE(string),
EQUALS_CASE_INSENSITIVE(string), LIKE(string), LIKE_CASE_INSENSITIVE(string)
BOOLEAN
public static final Type BOOLEAN
- Boolean value.
Java value type is Boolean.
Operators: EQUALS(boolean), NOT_EQUALS(boolean), IS_NULL
DATE
public static final Type DATE
- Date value.
Java value type is Date.
Operators: EQUALS(date), NOT_EQUALS(date), GREATER(date), GREATER_OR_EQUAL(date), LESS(date), LESS_OR_EQUAL(date),
IS_NULL, IN(list of dates / date[]), CHANGED_IN_LAST(int), UNCHANGED_IN_LAST(int)
ENUM
public static final Type ENUM
- Enum value.
Java value type in data out is EnumEntry, may be Integer (ordinal value) or String (value) in query, must be Integer (ordinal)
in data in.
Operators: EQUALS(int), NOT_EQUALS(int), GREATER(int), GREATER_OR_EQUAL(int), LESS(int), LESS_OR_EQUAL(int),
IS_NULL, IN(list of int / int[]).
In the following operators, the string value is substituted with the mapped ordinal value.
Additional operators: EQUALS(string), NOT_EQUALS(string), GREATER(string), GREATER_OR_EQUAL(string), LESS(string),
LESS_OR_EQUAL(string)
LIST
public static final Type LIST
- Restricted value.
Java value type is either String, Integer or Long. However, the value must be restricted to a specific list
of values from the class model.
Operators list match the operators for the actual value type.
values
public static Type[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (Type c : Type.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
Documentation Feedback
Copyright 2010 Hewlett-Packard Development Company, L.P.