|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.execution.datatype.DataTypeConvertable
public class DataTypeConvertable
This class represents data type with an object that can be converted
using an IObjectConverter instance
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gr.uoa.di.madgik.execution.datatype.IDataType |
|---|
IDataType.DataTypes |
| Constructor Summary | |
|---|---|
DataTypeConvertable()
|
|
| Method Summary | |
|---|---|
boolean |
CanSuggestDataTypeClass()
Always returns false |
void |
FromXML(Element XML)
Parses the xml serialization of the data type as retrieved by IDataType.ToXML() |
void |
FromXML(String XML)
Parses the xml serialization of the data type as retrieved by IDataType.ToXML() |
String |
GetConvertedValue()
Gets the string representation of the value |
String |
GetConverter()
Gets the converter class name |
Class<?> |
GetDataTypeClass()
Returns null |
IDataType.DataTypes |
GetDataTypeEnum()
Returns IDataType.DataTypes.Convertable |
String |
GetStringValue()
if the value is null, an empty string is returned. |
Object |
GetValue()
this instance is returned |
void |
SetConvertedValue(String ConvertedValue)
Sets the string representation of the value |
void |
SetConverter(String Converter)
Sets the converter class name |
void |
SetStringValue(String val)
If the value is null or an empty string, null is set. |
void |
SetValue(Object Value)
If the provided value is null, the string representation of the converted value is set to null. |
String |
ToXML()
Creates an xml serialization of the data type |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataTypeConvertable()
| Method Detail |
|---|
public boolean CanSuggestDataTypeClass()
CanSuggestDataTypeClass in interface IDataTypeIDataType.CanSuggestDataTypeClass()public Class<?> GetDataTypeClass()
GetDataTypeClass in interface IDataTypeIDataType.GetDataTypeClass()public IDataType.DataTypes GetDataTypeEnum()
IDataType.DataTypes.Convertable
GetDataTypeEnum in interface IDataTypeIDataType.GetDataTypeEnum()
public String GetStringValue()
throws ExecutionSerializationException
GetStringValue in interface IDataTypeExecutionSerializationException - A serialization error occurredIDataType.GetStringValue()public Object GetValue()
GetValue in interface IDataTypeIDataType.GetValue()public String GetConvertedValue()
public void SetConvertedValue(String ConvertedValue)
ConvertedValue - the string representation of the valuepublic String GetConverter()
public void SetConverter(String Converter)
Converter - the converter class name
public void SetStringValue(String val)
throws ExecutionValidationException,
ExecutionSerializationException
IDataType.SetValue(Object) is made
SetStringValue in interface IDataTypeval - the value to set
ExecutionValidationException - A validation error occurred
ExecutionSerializationException - A serialization error occurredIDataType.SetStringValue(java.lang.String)
public void SetValue(Object Value)
throws ExecutionValidationException
DataTypeConvertable,
the string representation of the converted value and the converter class name are
set to the respective values of the argument. Else if the argument is a string, the
string representation of the converted value is set to the argument. Otherwise, if
the converter class is set, an instance of that class is initialized and the provided
argument is provided to the IObjectConverter.Convert(Object) and the returned
string is set as the string representation of the convertable.
SetValue in interface IDataTypeValue - the value to set
ExecutionValidationException - A validation error occurredIDataType.SetValue(java.lang.Object)
public void FromXML(String XML)
throws ExecutionSerializationException
IDataTypeIDataType.ToXML()
FromXML in interface IDataTypeXML - the XML serialization
ExecutionSerializationException - A serialization error occurred
public void FromXML(Element XML)
throws ExecutionSerializationException
IDataTypeIDataType.ToXML()
FromXML in interface IDataTypeXML - The root element of the serialization
ExecutionSerializationException - A validation error occurred
public String ToXML()
throws ExecutionSerializationException
IDataType
ToXML in interface IDataTypeExecutionSerializationException - a serialization error occurred
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||