gr.uoa.di.madgik.execution.datatype
Interface IDataType

All Known Implementing Classes:
DataTypeArray, DataTypeBooleanClass, DataTypeBooleanPrimitive, DataTypeConvertable, DataTypeDoubleClass, DataTypeDoublePrimitive, DataTypeFloatClass, DataTypeFloatPrimitive, DataTypeIntegerClass, DataTypeIntegerPrimitive, DataTypeLongClass, DataTypeLongPrimitive, DataTypeReflectable, DataTypeResultSet, DataTypeString

public interface IDataType

The Interface IDataType.


Nested Class Summary
static class IDataType.DataTypes
          The known DataTypes.
 
Method Summary
 boolean CanSuggestDataTypeClass()
          Retrieves if the implementation of the data type can suggest the run time type of the hosted value
 void FromXML(Element XML)
          Parses the xml serialization of the data type as retrieved by ToXML()
 void FromXML(String XML)
          Parses the xml serialization of the data type as retrieved by ToXML()
 Class<?> GetDataTypeClass()
          Retrieves the run time type of the data type's value if CanSuggestDataTypeClass() indicates that the data type can suggest a type
 IDataType.DataTypes GetDataTypeEnum()
          Retrieves the known data type of the type
 String GetStringValue()
          Retrieves the value as a string
 Object GetValue()
          Retrieves the value of the type
 void SetStringValue(String val)
          Sets the value as a string representation
 void SetValue(Object Value)
          Sets the value of this type
 String ToXML()
          Creates an xml serialization of the data type
 

Method Detail

SetValue

void SetValue(Object Value)
              throws ExecutionValidationException
Sets the value of this type

Parameters:
Value - the value to set
Throws:
ExecutionValidationException - A validation error occurred

GetValue

Object GetValue()
Retrieves the value of the type

Returns:
the value

SetStringValue

void SetStringValue(String val)
                    throws ExecutionValidationException,
                           ExecutionSerializationException
Sets the value as a string representation

Parameters:
val - the value to set
Throws:
ExecutionValidationException - A validation error occurred
ExecutionSerializationException - A serialization error occurred

GetStringValue

String GetStringValue()
                      throws ExecutionSerializationException
Retrieves the value as a string

Returns:
the string representation of the value
Throws:
ExecutionSerializationException - A serialization error occurred

FromXML

void FromXML(String XML)
             throws ExecutionSerializationException
Parses the xml serialization of the data type as retrieved by ToXML()

Parameters:
XML - the XML serialization
Throws:
ExecutionSerializationException - A serialization error occurred

FromXML

void FromXML(Element XML)
             throws ExecutionSerializationException
Parses the xml serialization of the data type as retrieved by ToXML()

Parameters:
XML - The root element of the serialization
Throws:
ExecutionSerializationException - A validation error occurred

ToXML

String ToXML()
             throws ExecutionSerializationException
Creates an xml serialization of the data type

Returns:
the XML serialization
Throws:
ExecutionSerializationException - a serialization error occurred

CanSuggestDataTypeClass

boolean CanSuggestDataTypeClass()
Retrieves if the implementation of the data type can suggest the run time type of the hosted value

Returns:
true, if it can

GetDataTypeClass

Class<?> GetDataTypeClass()
Retrieves the run time type of the data type's value if CanSuggestDataTypeClass() indicates that the data type can suggest a type

Returns:
the run time type

GetDataTypeEnum

IDataType.DataTypes GetDataTypeEnum()
Retrieves the known data type of the type

Returns:
the data type


Copyright © 2012. All Rights Reserved.