Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


oracle.as.scheduler
Enum ParameterInfo.DataType

java.lang.Object
  extended by java.lang.Enum<ParameterInfo.DataType>
      extended by oracle.as.scheduler.ParameterInfo.DataType

All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ParameterInfo.DataType>
Enclosing class:
ParameterInfo

public static enum ParameterInfo.DataType
extends java.lang.Enum<ParameterInfo.DataType>

Enumeration of supported data types.


Enum Constant Summary
BOOLEAN
          Represents boolean as java.lang.Boolean.
DATETIME
          Represents datatime data type as java.util.Calendar.
INTEGER
          Represents integer data type as java.lang.Integer.
LONG
          Represents long data type as java.lang.Long.
STRING
          Represents the java.lang.String data type.

 

Method Summary
static ParameterInfo.DataType getDataType(java.lang.Object obj)
          Returns the DataType associated with given object based on its datatype.
static java.lang.String getSimpleValue(ParameterInfo.DataType dataType)
          Returns the string representing the simple value for the given DataType enum.
static ParameterInfo.DataType getType(java.lang.String type)
          Returns the DataType enum for the corresponding String type.
static boolean isValid(ParameterInfo.DataType dataType, java.lang.Object obj)
          Determine if the type of the Object is valid for the DataType.
 java.lang.String toString(java.util.Locale locale)
           
 java.lang.String value()
          Returns the value of this property data type as String.
static ParameterInfo.DataType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ParameterInfo.DataType[] 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

STRING

public static final ParameterInfo.DataType STRING
Represents the java.lang.String data type.

INTEGER

public static final ParameterInfo.DataType INTEGER
Represents integer data type as java.lang.Integer.

LONG

public static final ParameterInfo.DataType LONG
Represents long data type as java.lang.Long.

BOOLEAN

public static final ParameterInfo.DataType BOOLEAN
Represents boolean as java.lang.Boolean.

DATETIME

public static final ParameterInfo.DataType DATETIME
Represents datatime data type as java.util.Calendar.

Method Detail

values

public static ParameterInfo.DataType[] 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 (ParameterInfo.DataType c : ParameterInfo.DataType.values())
    System.out.println(c);
Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ParameterInfo.DataType 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:
IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

value

public java.lang.String value()
Returns the value of this property data type as String.

getType

public static ParameterInfo.DataType getType(java.lang.String type)
Returns the DataType enum for the corresponding String type.
Parameters:
type - the type as String for which corresponding Enum is returned.
Returns:
corresponding enum.
Throws:
IllegalArgumentException - if no enum is defined for the given String argument.

getDataType

public static ParameterInfo.DataType getDataType(java.lang.Object obj)
Returns the DataType associated with given object based on its datatype. This returns null if value is null or has an unsupported datatype.
Parameters:
obj - the Object to check. This can be null.
Returns:
the DataType associated with the value, or null if no value was specified or it has an unsupported datatype.

isValid

public static boolean isValid(ParameterInfo.DataType dataType,
                              java.lang.Object obj)
Determine if the type of the Object is valid for the DataType. This returns true if obj is null.
Parameters:
dataType - the DataType to check against the object type.
obj - the Object to check type against the DataType.
Returns:
true if the Object type is valid for the given DataType; else false.

getSimpleValue

public static java.lang.String getSimpleValue(ParameterInfo.DataType dataType)
Returns the string representing the simple value for the given DataType enum. The simple value represents the value used to specify the datatype of a request parameter in the runtime store.
Parameters:
dataType - the DataType
Returns:
the string representing the simple value for the datatype.

toString

public java.lang.String toString(java.util.Locale locale)

Skip navigation links

Oracle Enterprise Scheduler Java API Reference
11g Release 1 (11.1.1.7)
E26229-06


Copyright © 2008, 2013, Oracle and/or its affiliates. All rights reserved.