Packagecom.electrotank.electroserver4.esobject
Classpublic class DataType

This class is used internally to map a data type to an EsObject property associated with an id.



Public Properties
 PropertyDefined by
  BooleanArray : DataType
[static] Represents the BooleanArray data type.
DataType
  Byte : DataType
[static] Represents the Byte data type.
DataType
  Character : DataType
[static] Represents the Character data type.
DataType
  CharacterArray : DataType
[static] Represents the CharacterArray data type.
DataType
  Double : DataType
[static] Represents the Double data type.
DataType
  DoubleArray : DataType
[static] Represents the DoubleArray data type.
DataType
  EsBoolean : DataType
[static] Represents the Boolean data type.
DataType
  EsByteArray : DataType
[static] Represents the ByteArray data type.
DataType
  EsNumber : DataType
[static] Represents the Number data type.
DataType
  EsObject : DataType
[static] Represents the EsObject data type.
DataType
  EsObjectArray : DataType
[static] Represents the EsObjectArray data type.
DataType
  EsString : DataType
[static] Represents the String data type.
DataType
  Float : DataType
[static] Represents the Float data type.
DataType
  FloatArray : DataType
[static] Represents the FloatArray data type.
DataType
  Integer : DataType
[static] Represents the Integer data type.
DataType
  IntegerArray : DataType
[static] Represents the IntegerArray data type.
DataType
  Long : DataType
[static] Represents the Long data type.
DataType
  LongArray : DataType
[static] Represents the LongArray data type.
DataType
  NumberArray : DataType
[static] Represents the NumberArray data type.
DataType
  Short : DataType
[static] Represents the Short data type.
DataType
  ShortArray : DataType
[static] Represents the ShortArray data type.
DataType
  StringArray : DataType
[static] Represents the StringArray data type.
DataType
Public Methods
 MethodDefined by
  
DataType(ind:String, nm:String)
Creates a new instance of the DataType class and registers it.
DataType
  
[static] Finds a data type by the id used to represent it.
DataType
  
findTypeByName(name:String):DataType
[static] Finds a data type by the name used to represent it.
DataType
  
getIndicator():String
Returns the id of a data type.
DataType
  
getName():String
Gets the name of a data type.
DataType
  
register(dt:DataType):void
[static] Registers a new data type.
DataType
Property detail
BooleanArrayproperty
public static var BooleanArray:DataType

Represents the BooleanArray data type.

Byteproperty 
public static var Byte:DataType

Represents the Byte data type.

Characterproperty 
public static var Character:DataType

Represents the Character data type.

CharacterArrayproperty 
public static var CharacterArray:DataType

Represents the CharacterArray data type.

Doubleproperty 
public static var Double:DataType

Represents the Double data type.

DoubleArrayproperty 
public static var DoubleArray:DataType

Represents the DoubleArray data type.

EsBooleanproperty 
public static var EsBoolean:DataType

Represents the Boolean data type.

EsByteArrayproperty 
public static var EsByteArray:DataType

Represents the ByteArray data type.

EsNumberproperty 
public static var EsNumber:DataType

Represents the Number data type.

EsObjectproperty 
public static var EsObject:DataType

Represents the EsObject data type.

EsObjectArrayproperty 
public static var EsObjectArray:DataType

Represents the EsObjectArray data type.

EsStringproperty 
public static var EsString:DataType

Represents the String data type.

Floatproperty 
public static var Float:DataType

Represents the Float data type.

FloatArrayproperty 
public static var FloatArray:DataType

Represents the FloatArray data type.

Integerproperty 
public static var Integer:DataType

Represents the Integer data type.

IntegerArrayproperty 
public static var IntegerArray:DataType

Represents the IntegerArray data type.

Longproperty 
public static var Long:DataType

Represents the Long data type.

LongArrayproperty 
public static var LongArray:DataType

Represents the LongArray data type.

NumberArrayproperty 
public static var NumberArray:DataType

Represents the NumberArray data type.

Shortproperty 
public static var Short:DataType

Represents the Short data type.

ShortArrayproperty 
public static var ShortArray:DataType

Represents the ShortArray data type.

StringArrayproperty 
public static var StringArray:DataType

Represents the StringArray data type.

Constructor detail
DataType()constructor
public function DataType(ind:String, nm:String)

Creates a new instance of the DataType class and registers it.

Parameters
ind:String — The id used to represent the data type.
 
nm:String — The name of the data type.
Method detail
findTypeByIndicator()method
public static function findTypeByIndicator(id:String):DataType

Finds a data type by the id used to represent it.

Parameters
id:String — The id used to represent the data type.

Returns
DataType — The data type.
findTypeByName()method 
public static function findTypeByName(name:String):DataType

Finds a data type by the name used to represent it.

Parameters
name:String — The name used to represent the data type.

Returns
DataType — The data type.
getIndicator()method 
public function getIndicator():String

Returns the id of a data type.

Returns
String — The id of a data type.
getName()method 
public function getName():String

Gets the name of a data type.

Returns
String
register()method 
public static function register(dt:DataType):void

Registers a new data type.

Parameters
dt:DataType — The data type.