org.obe.xpdl.model.data
Class DataTypes

java.lang.Object
  extended byorg.obe.util.AbstractEnum
      extended byorg.obe.xpdl.model.data.DataTypes
All Implemented Interfaces:
java.lang.Comparable, Enum, java.io.Serializable

public final class DataTypes
extends AbstractEnum

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static DataTypes ARRAY
           
static DataTypes BOOLEAN
           
static DataTypes DATETIME
           
static DataTypes ENUMERATION
           
static DataTypes EXTERNAL_REFERENCE
           
static DataTypes FLOAT
           
static DataTypes INTEGER
           
static DataTypes LIST
           
static DataTypes PERFORMER
           
static DataTypes REFERENCE
           
static DataTypes SCHEMA
           
static DataTypes STRING
           
static DataTypes UNION
           
static java.util.List VALUES
           
 
Fields inherited from class org.obe.util.AbstractEnum
name, ordinal
 
Method Summary
static java.lang.Class classForDataType(DataType dataType)
          Returns the class for the specified data type.
static java.lang.Class classForType(int type)
          Returns the XPDL ordinal data type for the specified class.
static java.lang.Class classForType(Type type)
          Returns the class for the specified data type.
static DataType dataTypeForClass(java.lang.Class parmType)
           
 java.util.List family()
          Returns an immutable list of the members of the enumerated type.
static int typeForClass(java.lang.Class clazz)
          Looks up the type ordinal that corresponds to a particular class.
static DataTypes valueOf(java.lang.String tag)
           
 
Methods inherited from class org.obe.util.AbstractEnum
clinit, clone, compareTo, equals, hashCode, readResolve, toString, value
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

BOOLEAN

public static final DataTypes BOOLEAN

PERFORMER

public static final DataTypes PERFORMER

STRING

public static final DataTypes STRING

FLOAT

public static final DataTypes FLOAT

INTEGER

public static final DataTypes INTEGER

REFERENCE

public static final DataTypes REFERENCE

DATETIME

public static final DataTypes DATETIME

UNION

public static final DataTypes UNION

ENUMERATION

public static final DataTypes ENUMERATION

ARRAY

public static final DataTypes ARRAY

LIST

public static final DataTypes LIST

EXTERNAL_REFERENCE

public static final DataTypes EXTERNAL_REFERENCE

SCHEMA

public static final DataTypes SCHEMA

VALUES

public static final java.util.List VALUES
Method Detail

classForType

public static java.lang.Class classForType(int type)
Returns the XPDL ordinal data type for the specified class.

Parameters:
type - The Java class to map to an XPDL type.
Returns:
Ordinal data type.
See Also:
typeForClass(java.lang.Class)

classForDataType

public static java.lang.Class classForDataType(DataType dataType)
Returns the class for the specified data type.

Parameters:
dataType - The XPDL data type definition.
Returns:
Run-time value class for the data type.

classForType

public static java.lang.Class classForType(Type type)
Returns the class for the specified data type.

Parameters:
type - The XPDL data type.
Returns:
Run-time value class for the data type.

typeForClass

public static int typeForClass(java.lang.Class clazz)
Looks up the type ordinal that corresponds to a particular class.

int type = DataTypes.typeForClass(clazz);


dataTypeForClass

public static DataType dataTypeForClass(java.lang.Class parmType)

valueOf

public static DataTypes valueOf(java.lang.String tag)

family

public java.util.List family()
Description copied from interface: Enum
Returns an immutable list of the members of the enumerated type.

Returns:
The family of allowed values.


SourceForge.net Logo OBE-1.0 Copyright (c) 2002-2006 Adrian Price. All Rights Reserved.