Constructs an ArrayType instance describing open data values which are
arrays with dimension dimension of elements whose open type is elementType.
When invoked on an ArrayType instance, the
OpenType.getClassName getClassName method
returns the class name of the array instances it describes (following the rules defined by the
getNameSpace method of java.lang.Class ), not the class name of the array elements
(which is returned by a call to getElementOpenType().getClassName()).
The internal field corresponding to the type name of this ArrayType instance is also set to
the class name of the array instances it describes.
In other words, the methods getClassName and getTypeName return the same string value.
The internal field corresponding to the description of this ArrayType instance is set to a string value
which follows the following template:
<dimension>-dimension array of <element_class_name>
As an example, the following piece of code:
ArrayType t = new ArrayType(3, SimpleType.STRING);
System.out.println("array class name = "+ t.getClassName());
System.out.println("element class name = "+ t.getElementOpenType().getClassName());
System.out.println("array type name = "+ t.getTypeName());
System.out.println("array type description = "+ t.getDescription());
would produce the following output:
array class name = [[[java.lang.String;
element class name = java.lang.String
array type name = [[[java.lang.String;
array type description = 3-dimension array of java.lang.String
Parameters: dimension - the dimension of arrays described by this ArrayType instance;must be greater than or equal to 1. Parameters: elementType - the open type of element values contained in the arrays described bythis ArrayType instance; must be an instance of eitherSimpleType, CompositeType or TabularType. throws: IllegalArgumentException - if dimension is not a positive integer throws: OpenDataException - if elementType is an instance of ArrayType |