Previous Table of Contents Next


19.3.4 CORBA IDL Data Types Classes


   CORBA IDL metamodel classes are provided to support the definition of CORBA data types that cannot be represented simply as instances of the IDLType class. This group of types includes all CORBA structured and array-like data types as well as those that also derive from the types defined in the CWM Foundation’s Data Types conceptual area.

   19.3.4.1 Alias

   The Alias type represents CORBA IDL type aliases. Aliases must be represented by their own type so that they can have a typeCode attribute as required by the CORBA IDL definition.

   Superclasses

   IDLType

   TypeAlias

   19.3.4.2 ArrayType

   The ArrayType class represents CORBA IDL array data types.

   Superclasses

   IDLType

   Attributes

   length

   The number of elements in the array. Multiply dimensioned arrays are treated as arrays of array in CORBA IDL.

   type: Integer

   multiplicity: exactly one

   References

   elementType

   The type of elements of an array.

class:

defined by:

multiplicity:

IDLType
ArrayElementType::elementType
exactly one

   19.3.4.3 EnumType

   The EnumType class represents the CORBA IDL enumerated data type, enum.

   Superclasses

   IDLType Enumeration

   19.3.4.4 ExceptionType

   The ExceptionType class represents the CORBA IDL exception data type.

   Superclasses

   IDLType

   19.3.4.5 FixedType

   The FixedType class represent CORBA IDL fixed data types.

   Superclasses

   IDLType

   Attributes

   digits

   Number of digits of precision. type: Integer multiplicity: exactly one

   scale

   Number of implied decimal places. Scale may be either positive (implied left decimal places) or negative (implied right decimal places). type: Integer multiplicity: zero or more

   19.3.4.6 IDLType

   The IDLType class is a common superclass for all CORBA IDL data type classes that require a typeCode.

   Superclasses

   DataType

   Attributes

   typeCode

   The type code value identifying a CORBA IDL data type.type: TypeCodemultiplicity: exactly one

   19.3.4.7 SequenceType

   The SequenceType class represents CORBA IDL sequence data types. Sequences are single dimensioned arrays of a user-specified type.

   Superclasses

   IDLType

   Attributes

   length

   The number of elements in the sequence expressed in type units.type: Integermultiplicity: exactly one

   References

   elementType

   The type of elements of a sequence.

class:

defined by:

multiplicity:

IDLType
SequenceElementType::elementType
exactly one

   19.3.4.8 StringType

   The StringType class represents CORBA IDL string data types.

   Superclasses

   IDLType

   Attributes

   length

   The number of characters in the string. If length is zero, the string is considered unbounded. type: Integer multiplicity: exactly one

   19.3.4.9 StructType

   The StructType class represents CORBA IDL user -defined data types created with the typedef keyword.

   Superclasses

   IDLType

   19.3.4.10 UnionType

   The UnionType class represents CORBA IDL union data types.

   Superclasses

   IDLType Union

   19.3.4.11 WstringType

   The WstringType class represents CORBA IDL wstring data types. A CORBA wstring is an ordered sequence of wchars, each of which represents a ‘wide’ character from any character set.

   Superclasses

   IDLType

   Attributes

   length

   The number of wchars in the string. If length is zero, the string is considered unbounded. type: Integer multiplicity: exactly one