| org.obe.xpdl.model.data.Type
All known Subclasses: org.obe.xpdl.model.data.EnumerationType, org.obe.xpdl.model.data.DeclaredType, org.obe.xpdl.model.data.ExternalReference, org.obe.xpdl.model.data.BasicType, org.obe.xpdl.model.data.MultiValuedType, org.obe.xpdl.model.data.ComplexType, org.obe.xpdl.model.data.SchemaType,
Type | public interface Type (Code) | | Standard interface implemented by any data type.
author: Adrian Price |
Method Summary | |
Type | getImpliedType() Returns the actual type implied by this type. | boolean | isAssignableFrom(Type fromType) Checks type compatibility in an assignment.
Parameters: fromType - The type of the 'rvalue'. | int | value() The data type's ordinal value. |
BOOLEAN_TYPE | int BOOLEAN_TYPE(Code) | | Basic boolean type.
|
DATETIME_TYPE | int DATETIME_TYPE(Code) | | Basic date/time type.
|
DECLARED_TYPE | int DECLARED_TYPE(Code) | | A reference to a Package-level TypeDeclaration.
N.B. DECLARED_TYPE must not be used directly when setting attributes.
It is always a reference to another type.
|
DEFAULT_TYPE | int DEFAULT_TYPE(Code) | | Preserves the existing type - use only when the type has already been
assigned.
|
EXTERNAL_REFERENCE_TYPE | int EXTERNAL_REFERENCE_TYPE(Code) | | An object whose definition is external (e.g., as a Java class).
|
FLOAT_TYPE | int FLOAT_TYPE(Code) | | Basic 64-bit signed double-precision type.
|
INTEGER_TYPE | int INTEGER_TYPE(Code) | | Basic 32-bit integer type.
|
PERFORMER_TYPE | int PERFORMER_TYPE(Code) | | Basic performer name type (basically a string).
|
SCHEMA_TYPE | int SCHEMA_TYPE(Code) | | An XML document whose structure is defined by an XML Schema.
|
STRING_TYPE | int STRING_TYPE(Code) | | Basic string type.
|
UNDEFINED_TYPE | int UNDEFINED_TYPE(Code) | | Indicates that the type is currently undefined. This value is only
returned by
DeclaredType.value .
|
getImpliedType | Type getImpliedType()(Code) | | Returns the actual type implied by this type. Some types behave as
references to other types.
The implied type. |
isAssignableFrom | boolean isAssignableFrom(Type fromType)(Code) | | Checks type compatibility in an assignment.
Parameters: fromType - The type of the 'rvalue'. true if a value of type fromType canbe assigned or converted to a value of type toType . |
value | int value()(Code) | | The data type's ordinal value.
Ordinal value: Type.STRING_TYPE, Type.FLOAT_TYPE,Type.INTEGER_TYPE, Type.REFERENCE_TYPE, Type.DATETIME_TYPE,Type.BOOLEAN_TYPE, Type.PERFORMER_TYPE, Type.DECLARED_TYPE,Type.SCHEMA_TYPE, Type.EXTERNAL_REFERENCE_TYPE,Type.RECORD_TYPE, Type.UNION_TYPE, Type.ENUMERATION_TYPE,Type.ARRAY_TYPE, Type.LIST_TYPE |
|
|