Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.wcps.property
Enum Type

java.lang.Object
  extended by java.lang.Enum<Type>
      extended by oracle.wcps.property.Type

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Type>

public enum Type
extends java.lang.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

INT_ARRAY

public static final Type INT_ARRAY
Warning Note: Please don't change the order of enums below as parseAny relies on it.

INT

public static final Type INT

NUMBER_ARRAY

public static final Type NUMBER_ARRAY

NUMBER

public static final Type NUMBER

BOOLEAN_ARRAY

public static final Type BOOLEAN_ARRAY

BOOLEAN

public static final Type BOOLEAN

DATETIME_ARRAY

public static final Type DATETIME_ARRAY

DATETIME

public static final Type DATETIME

CLOB_ARRAY

public static final Type CLOB_ARRAY

CLOB

public static final Type CLOB

BLOB_ARRAY

public static final Type BLOB_ARRAY

BLOB

public static final Type BLOB

STRING_ARRAY

public static final Type STRING_ARRAY

STRING

public static final Type STRING

NULL

public static final Type NULL

UNKNOWN

public static final Type UNKNOWN

Method Detail

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

isArray

public boolean isArray()
Indicates if this is an array type or not.
Returns:
true if this type represents an array otherwise null.

componentType

public Type componentType()
Returns array component's type. This is used internally to deal with cases where value is null or given an empty object list.
Returns:
array component's type.

parseValue

public java.io.Serializable parseValue(java.lang.String value)
Parses the string value into value of this type.
Parameters:
value - a string value.
Returns:
a value of this type.

getParser

public oracle.wcps.property.Type.IValueParser getParser()
Returns a value parser for this type that can convert a string value in value of this type.
Returns:
a value parser.

toType

public static Type toType(java.io.Serializable s)
Returns the type of s.
Parameters:
s - a serializable value.
Returns:
type of s.

toArray

public static java.io.Serializable toArray(java.util.List values)
Converts list of values into array of values.
Parameters:
values - a list of values.
Returns:
an array of values.

toArray

public static java.io.Serializable toArray(java.io.Serializable value)
Convenience method to convert an instance of List to array.
Parameters:
value - an instance of List
Returns:
array of values.

componentType

public static Type componentType(Type type)
Convenience method to determine component's type.
Parameters:
type - An array type.
Returns:
component's type.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.