The Java Interface Layer supports the following conversion from Aion BRE data types to Java data types.
|
Aion BRE Data Type |
Java Data Type |
|---|---|
|
Boolean |
boolean |
|
Integer |
int |
|
Real |
double |
|
String |
String |
|
(an instance of ) <ExportedClass>* |
(an instance of ) <ExportedClass> |
|
Date |
Java Calendar |
|
Time |
Java Calendar |
|
List of String |
String[ ] |
|
List of integer |
int[ ] |
|
List of real |
double[ ] |
|
List of date |
Calendar[ ] |
|
List of time |
Calendar[ ] |
|
List of Boolean |
boolean[ ] |
|
List of (instances of) <ExportedClass> |
(instances in)<ExportedClass>[ ] |
* Name of the exported class.
Exceptions are thrown by the Aion program during data conversion for Unknown and Null values, or when a constant violation occurs. These exceptions are subclasses of AionException, which is provided in the ca.aion.j2aion package.
You can catch these exceptions in the Java programming with standard exception handling:
try{
myObject.getAttribute();
} catch (AttributeUnknownException aue) {
// the Attribute is unknown in Aion.
}
| Copyright © 2009 CA. All rights reserved. | Email CA about this topic |