org.openorb.ir.impl
Class ArrayDefImpl
public
class
ArrayDefImpl
extends ArrayDefPOA
This class is the ArrayDef implementation.
Author: Olivier Modica
Method Summary |
DefinitionKind | def_kind()
The def_kind type_name attribute identifies the type of the definition. |
void | destroy()
The destroy operation causes the object to cease to exist. |
TypeCode | element_type()
The type of the elements is described by element_type. |
IDLType | element_type_def()
The type of the elements is identified by element_type_def. |
void | element_type_def(IDLType value)
The type of the elements is identified by element_type_def. |
int | length()
The length attribute specifies the number of elements in the array. |
void | length(int value)
The length attribute specifies the number of elements in the array. |
TypeCode | type()
The type attribute describes the type defined by an object
derived from IDLType. |
public ArrayDefImpl(ORB orb, IDLType elementType, int bound)
Constructor
public DefinitionKind def_kind()
The def_kind type_name attribute identifies the type of the definition.
public void destroy()
The destroy operation causes the object to cease to exist. If
the object is a Container, destroy is applied to all its
contents. If the object contains an IDLType attribute for an
anonymous type, that IDLType is destroyed. If the object is
currently contained in some other object, it is removed. If
destroy is invoked on a Repository or on a PrimitiveDef then
the BAD_INV_ORDER exception is raised with minor value 2.
Implementations may vary in their handling of references to an
object that is being destroyed, but the Repository should not
be left in an incoherent state. Attempt to destroy an object
that would leave the repository in an incoherent state shall
cause BAD_INV_ORDER exception to be raised with the minor code
1.
public TypeCode element_type()
The type of the elements is described by element_type. Since an
ArrayDef only represents a single dimension of an array,
multi-dimensional IDL arrays are represented by multiple
ArrayDef objects, one per array dimension.
public IDLType element_type_def()
The type of the elements is identified by element_type_def. The
element_type_def attribute of the ArrayDef representing the
leftmost index of the array, as defined in IDL, will refer to
the ArrayDef representing the next index to the right, and so
on. The innermost ArrayDef represents the rightmost index and
the element type of the multi-dimensional OMG IDL array.
public void element_type_def(IDLType value)
The type of the elements is identified by element_type_def. The
element_type_def attribute of the ArrayDef representing the
leftmost index of the array, as defined in IDL, will refer to
the ArrayDef representing the next index to the right, and so
on. The innermost ArrayDef represents the rightmost index and
the element type of the multi-dimensional OMG IDL array.
public int length()
The length attribute specifies the number of elements in the array.
public void length(int value)
The length attribute specifies the number of elements in the array.
public TypeCode type()
The type attribute describes the type defined by an object
derived from IDLType.