org.openorb.ir.impl
Class ArrayDefImpl

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.omg.CORBA.ArrayDefPOA
          extended by org.openorb.ir.impl.ArrayDefImpl
All Implemented Interfaces:
org.omg.CORBA.ArrayDefOperations, org.omg.CORBA.IDLTypeOperations, org.omg.CORBA.IRObjectOperations, org.omg.CORBA.portable.InvokeHandler

public class ArrayDefImpl
extends org.omg.CORBA.ArrayDefPOA

This class is the ArrayDef implementation.

Author:
Olivier Modica

Constructor Summary
ArrayDefImpl(org.omg.CORBA.ORB orb, org.omg.CORBA.IDLType elementType, int bound)
          Constructor
 
Method Summary
 org.omg.CORBA.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.
 org.omg.CORBA.IDLType element_type_def()
          The type of the elements is identified by element_type_def.
 void element_type_def(org.omg.CORBA.IDLType value)
          The type of the elements is identified by element_type_def.
 org.omg.CORBA.TypeCode element_type()
          The type of the elements is described by element_type.
 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.
 org.omg.CORBA.TypeCode type()
          The type attribute describes the type defined by an object derived from IDLType.
 
Methods inherited from class org.omg.CORBA.ArrayDefPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayDefImpl

public ArrayDefImpl(org.omg.CORBA.ORB orb,
                    org.omg.CORBA.IDLType elementType,
                    int bound)
Constructor

Method Detail

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.


element_type

public org.omg.CORBA.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 org.omg.CORBA.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(org.omg.CORBA.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.


def_kind

public org.omg.CORBA.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.


type

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