org.openorb.ir.impl

Class SequenceDefImpl

public class SequenceDefImpl extends SequenceDefPOA

This class is the SequenceDef implementation.

Author: Olivier Modica

Constructor Summary
SequenceDefImpl(ORB orb, IDLType elementType, int bound)
Constructor
Method Summary
intbound()
The lengthattribute specifies the maximum number of elements in the sequence.
voidbound(int value)
The lengthattribute specifies the maximum number of elements in the sequence.
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 and identified by element_type_def.
IDLTypeelement_type_def()
The inherited type attribute is a tk_sequence TypeCode describing the sequence.
voidelement_type_def(IDLType value)
The inherited type attribute is a tk_sequence TypeCode describing the sequence.
TypeCodetype()
The type attribute describes the type defined by an object derived from IDLType.

Constructor Detail

SequenceDefImpl

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

Method Detail

bound

public int bound()
The lengthattribute specifies the maximum number of elements in the sequence. A bound of zero indicates an unbounded sequence.

bound

public void bound(int value)
The lengthattribute specifies the maximum number of elements in the sequence. A bound of zero indicates an unbounded sequence.

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 and identified by element_type_def.

element_type_def

public IDLType element_type_def()
The inherited type attribute is a tk_sequence TypeCode describing the sequence.

element_type_def

public void element_type_def(IDLType value)
The inherited type attribute is a tk_sequence TypeCode describing the sequence.

type

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