org.obe.xpdl.model.data
Class BasicType

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

public final class BasicType
extends AbstractEnum
implements Type

Data type representing the basic workflow data types.

Author:
Adrian Price
See Also:
Serialized Form

Field Summary
static BasicType BOOLEAN
           
static BasicType DATETIME
           
static BasicType FLOAT
           
static BasicType INTEGER
           
static BasicType PERFORMER
           
static BasicType REFERENCE
          Deprecated. Use ExternalReference or @SchemaType.
static BasicType STRING
           
static java.util.List VALUES
           
 
Fields inherited from class org.obe.util.AbstractEnum
name, ordinal
 
Fields inherited from interface org.obe.xpdl.model.data.Type
ARRAY_TYPE, BOOLEAN_TYPE, DATETIME_TYPE, DECLARED_TYPE, DEFAULT_TYPE, ENUMERATION_TYPE, EXTERNAL_REFERENCE_TYPE, FLOAT_TYPE, INTEGER_TYPE, LIST_TYPE, PERFORMER_TYPE, RECORD_TYPE, REFERENCE_TYPE, SCHEMA_TYPE, STRING_TYPE, UNDEFINED_TYPE, UNION_TYPE
 
Method Summary
 java.util.List family()
          Returns an immutable list of the members of the enumerated type.
 Type getImpliedType()
          Returns the actual type implied by this type.
 boolean isAssignableFrom(Type fromType)
          Checks type compatibility in an assignment.
static BasicType valueOf(int type)
           
static BasicType 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
 
Methods inherited from interface org.obe.xpdl.model.data.Type
value
 

Field Detail

STRING

public static final BasicType STRING

FLOAT

public static final BasicType FLOAT

INTEGER

public static final BasicType INTEGER

REFERENCE

public static final BasicType REFERENCE
Deprecated. Use ExternalReference or @SchemaType.


DATETIME

public static final BasicType DATETIME

BOOLEAN

public static final BasicType BOOLEAN

PERFORMER

public static final BasicType PERFORMER

VALUES

public static final java.util.List VALUES
Method Detail

valueOf

public static BasicType valueOf(int type)

valueOf

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

getImpliedType

public Type getImpliedType()
Description copied from interface: Type
Returns the actual type implied by this type. Some types behave as references to other types.

Specified by:
getImpliedType in interface Type
Returns:
The implied type.

isAssignableFrom

public boolean isAssignableFrom(Type fromType)
Description copied from interface: Type
Checks type compatibility in an assignment.

Specified by:
isAssignableFrom in interface Type
Parameters:
fromType - The type of the 'rvalue'.
Returns:
true if a value of type fromType can be assigned or converted to a value of type toType.

family

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

Specified by:
family in interface Enum
Returns:
The family of allowed values.


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