public class DataTypeArray extends Object implements IDataType, Iterable<IDataType>
IDataType.DataTypes| Constructor and Description |
|---|
DataTypeArray() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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.ArrayGetDataTypeEnum 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 setExecutionValidationException - A validation error occurredExecutionSerializationException - 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 setExecutionValidationException - A validation error occurredIDataType.SetValue(java.lang.Object)public void FromXML(String XML) throws ExecutionSerializationException
IDataTypeIDataType.ToXML()FromXML in interface IDataTypeXML - the XML serializationExecutionSerializationException - A serialization error occurredpublic void FromXML(Element XML) throws ExecutionSerializationException
IDataTypeIDataType.ToXML()FromXML in interface IDataTypeXML - The root element of the serializationExecutionSerializationException - A validation error occurredpublic String ToXML() throws ExecutionSerializationException
IDataTypeToXML in interface IDataTypeExecutionSerializationException - a serialization error occurredCopyright © 2015. All Rights Reserved.