|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgr.uoa.di.madgik.execution.datatype.DataTypeArray
public class DataTypeArray
This class represents a data type that acts as an array of data types
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface gr.uoa.di.madgik.execution.datatype.IDataType |
|---|
IDataType.DataTypes |
| Constructor Summary | |
|---|---|
DataTypeArray()
|
|
| 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 |
GetArrayClassCode()
Gets the array code. |
Class<?> |
GetDataTypeClass()
Returns null |
IDataType.DataTypes |
GetDataTypeEnum()
Returns IDataType.DataTypes.Array |
String |
GetDefaultComponentType()
Gets the default component type. |
String |
GetDefaultConverter()
Gets the default converter. |
IDataType[] |
GetItems()
Gets the array items. |
String |
GetStringValue()
Calls ToXML() |
Object |
GetValue()
if the contained array data types is null, then null is returned. |
Iterator<IDataType> |
iterator()
|
void |
SetArrayClassCode(String ArrayClassCode)
Sets the array code. |
void |
SetDefaultComponentType(String DefaultComponentType)
Sets the default component type. |
void |
SetDefaultConverter(String DefaultConverter)
Sets the default converter. |
void |
SetStringValue(String val)
Calls FromXML(String) |
void |
SetValue(Object Value)
if the provided value is null, then the internal array 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 DataTypeArray()
| Method Detail |
|---|
public Iterator<IDataType> iterator()
iterator in interface Iterable<IDataType>public String GetArrayClassCode()
public void SetArrayClassCode(String ArrayClassCode)
ArrayClassCode - the array codepublic String GetDefaultConverter()
public void SetDefaultConverter(String DefaultConverter)
DefaultConverter - the default converterpublic String GetDefaultComponentType()
public void SetDefaultComponentType(String DefaultComponentType)
DefaultComponentType - the default component typepublic boolean CanSuggestDataTypeClass()
CanSuggestDataTypeClass in interface IDataTypeIDataType.CanSuggestDataTypeClass()public Class<?> GetDataTypeClass()
GetDataTypeClass in interface IDataTypeIDataType.GetDataTypeClass()public IDataType.DataTypes GetDataTypeEnum()
IDataType.DataTypes.Array
GetDataTypeEnum in interface IDataTypeIDataType.GetDataTypeEnum()
public String GetStringValue()
throws ExecutionSerializationException
ToXML()
GetStringValue in interface IDataTypeExecutionSerializationException - A serialization error occurredIDataType.GetStringValue()
public void SetStringValue(String val)
throws ExecutionValidationException,
ExecutionSerializationException
FromXML(String)
SetStringValue in interface IDataTypeval - the value to set
ExecutionValidationException - A validation error occurred
ExecutionSerializationException - A serialization error occurredIDataType.SetStringValue(java.lang.String)public IDataType[] GetItems()
public Object GetValue()
IDataType.GetValue() is set.
GetValue in interface IDataTypeIDataType.GetValue()
public void SetValue(Object Value)
throws ExecutionValidationException
IDataType, then the internal
array is set to that. If the value is a string, the FromXML(String)
is called. Otherwise, if the provided value is an array, a new array of the type that is
dictated by the array code is created and the respective data types are created from the
respective values of the argument.
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 | |||||||||