Mendix Runtime
Documentation for the Mendix Runtime Environment API
com.mendix.systemwideinterfaces.core.IDataType Interface Reference

List of all members.

Public Types

enum  DataTypeEnum {
  Object, Enumeration, Integer, Long,
  Float, Currency, Boolean, Datetime,
  String, HashString, AutoNumber, Binary,
  Nothing, Unknown
}

Public Member Functions

abstract DataTypeEnum getType ()
abstract String getObjectType ()
abstract boolean checkTypeForValue (Object value)
abstract IDataType getTypeOfValue (Object value)
abstract Object parseValueFromString (String value)
boolean isList ()
boolean isMendixObject ()
boolean isNothing ()
String getDSLType ()
IMetaEnumeration getEnumeration ()

Detailed Description

Generic class for Mendix data types. Use Core.createDataType to convert model data type dsl Strings to this object.


Member Enumeration Documentation

Enumerator:
Object 
Enumeration 
Integer 
Long 
Float 
Currency 
Boolean 
Datetime 
String 
HashString 
AutoNumber 
Binary 
Nothing 
Unknown 

Member Function Documentation

abstract boolean com.mendix.systemwideinterfaces.core.IDataType.checkTypeForValue ( Object  value) [pure virtual]

Checks the type of the given value
If the given value is a List, it should contain at least one item to check the object type

Parameters:
value
Returns:
returns true if the value is valid for this DataType
String com.mendix.systemwideinterfaces.core.IDataType.getDSLType ( )
Returns:
raw String representing the type defined in the DSL
IMetaEnumeration com.mendix.systemwideinterfaces.core.IDataType.getEnumeration ( )
Returns:
the enumeration if type is enumeration.
abstract String com.mendix.systemwideinterfaces.core.IDataType.getObjectType ( ) [pure virtual]
Returns:
objectType if type is List or Object, otherwise null
abstract DataTypeEnum com.mendix.systemwideinterfaces.core.IDataType.getType ( ) [pure virtual]
Returns:
enum type
abstract IDataType com.mendix.systemwideinterfaces.core.IDataType.getTypeOfValue ( Object  value) [pure virtual]

Returns DataType of the given value
If the given value is a List, it should contain at least one item to set the object type

Parameters:
value
Returns:
DataType of given value
boolean com.mendix.systemwideinterfaces.core.IDataType.isList ( )
Returns:
returns true if this DataType is a list
boolean com.mendix.systemwideinterfaces.core.IDataType.isMendixObject ( )
Returns:
returns true if this DataType is an object
boolean com.mendix.systemwideinterfaces.core.IDataType.isNothing ( )
Returns:
returns true if this DataType is nothing
abstract Object com.mendix.systemwideinterfaces.core.IDataType.parseValueFromString ( String  value) [pure virtual]

Parses a String to a value based on this datatype

Parameters:
value

The documentation for this interface was generated from the following file: