org.openorb.ir.impl

Class ArrayDefImpl

public class ArrayDefImpl extends ArrayDefPOA

This class is the ArrayDef implementation.

Author: Olivier Modica

Constructor Summary
ArrayDefImpl(ORB orb, IDLType elementType, int bound)
Constructor
Method Summary
DefinitionKinddef_kind()
The def_kind type_name attribute identifies the type of the definition.
voiddestroy()
The destroy operation causes the object to cease to exist.
TypeCodeelement_type()
The type of the elements is described by element_type.
IDLTypeelement_type_def()
The type of the elements is identified by element_type_def.
voidelement_type_def(IDLType value)
The type of the elements is identified by element_type_def.
intlength()
The length attribute specifies the number of elements in the array.
voidlength(int value)
The length attribute specifies the number of elements in the array.
TypeCodetype()
The type attribute describes the type defined by an object derived from IDLType.

Constructor Detail

ArrayDefImpl

public ArrayDefImpl(ORB orb, IDLType elementType, int bound)
Constructor

Method Detail

def_kind

public DefinitionKind def_kind()
The def_kind type_name attribute identifies the type of the definition.

destroy

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.

element_type

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.

element_type_def

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.

element_type_def

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.

length

public int length()
The length attribute specifies the number of elements in the array.

length

public void length(int value)
The length attribute specifies the number of elements in the array.

type

public TypeCode type()
The type attribute describes the type defined by an object derived from IDLType.