|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.7.0) E15995-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object
java.lang.Enum<Type>
oracle.wcps.property.Type
public enum Type
Represents a property value type. Also provides methods to convert value from string representation into a typed value.
Enum Constant Summary | |
---|---|
BLOB |
|
BLOB_ARRAY |
|
BOOLEAN |
|
BOOLEAN_ARRAY |
|
CLOB |
|
CLOB_ARRAY |
|
DATETIME |
|
DATETIME_ARRAY |
|
INT |
|
INT_ARRAY Warning Note: Please don't change the order of enums below as parseAny relies on it. |
|
NULL |
|
NUMBER |
|
NUMBER_ARRAY |
|
STRING |
|
STRING_ARRAY |
|
UNKNOWN |
Method Summary | |
---|---|
Type |
componentType() Returns array component's type. |
static Type |
componentType(Type type) Convenience method to determine component's type. |
oracle.wcps.property.Type.IValueParser |
getParser() Returns a value parser for this type that can convert a string value in value of this type. |
boolean |
isArray() Indicates if this is an array type or not. |
java.io.Serializable |
parseValue(java.lang.String value) Parses the string value into value of this type. |
static java.io.Serializable |
toArray(java.util.List values) Converts list of values into array of values. |
static java.io.Serializable |
toArray(java.io.Serializable value) Convenience method to convert an instance of List to array. |
static Type |
toType(java.io.Serializable s) Returns the type of s . |
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 |
---|
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 Type INT_ARRAY
public static final Type INT
public static final Type NUMBER_ARRAY
public static final Type NUMBER
public static final Type BOOLEAN_ARRAY
public static final Type BOOLEAN
public static final Type DATETIME_ARRAY
public static final Type DATETIME
public static final Type CLOB_ARRAY
public static final Type CLOB
public static final Type BLOB_ARRAY
public static final Type BLOB
public static final Type STRING_ARRAY
public static final Type STRING
public static final Type NULL
public static final Type UNKNOWN
Method Detail |
---|
public static Type[] values()
for (Type c : Type.values()) System.out.println(c);
public static Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isArray()
public Type componentType()
public java.io.Serializable parseValue(java.lang.String value)
value
- a string value.public oracle.wcps.property.Type.IValueParser getParser()
public static Type toType(java.io.Serializable s)
s
.s
- a serializable value.s
.public static java.io.Serializable toArray(java.util.List values)
values
- a list of values.public static java.io.Serializable toArray(java.io.Serializable value)
List
to array.value
- an instance of List
public static Type componentType(Type type)
type
- An array type.
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.7.0) E15995-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |