CoreDX Data Distribution Service
The High Performance, Small Footprint DDS from Twin Oaks Computing, Inc
DDS.TypeDescriptor Class Referenceabstract

A TypeDescriptor comprises the state of a type. More...

Inheritance diagram for DDS.TypeDescriptor:
com.toc.coredx.dynamictype.TypeDescriptor

Public Attributes

short kind
 the 'kind' of this type
 
String name
 the 'name' of this type
 
DynamicType base_type
 the 'base_type' of this type More...
 
DynamicType discriminator_type
 If this descriptor represents a union type, this field indicates the type of the union's descriminator.
 
int [] bound
 The bound property indicates the bound of collection and similar types. More...
 
DynamicType element_type
 If this descriptor represents an array, sequence, or string type, this property indicates the element type of the collection. More...
 
DynamicType key_element_type
 If this descriptor represents a map type, this property indicates the value element type of the map. More...
 

Detailed Description

A TypeDescriptor comprises the state of a type.

Member Data Documentation

◆ base_type

DynamicType DDS.TypeDescriptor.base_type

the 'base_type' of this type

  • If this descriptor represents a structure type, base_type indicates the supertype of that type. A nil value of this property indicates that the structure type has no supertype.
  • If this descriptor represents an alias type, base_type indicates the type being aliased. A nil value for this property is not considered consistent.

In all other cases, a consistent descriptor shall have a nil value for this property.

◆ bound

int [] DDS.TypeDescriptor.bound

The bound property indicates the bound of collection and similar types.

  • If this descriptor represents an array type, the length of the property value indicates the number of dimensions in the array, and each value indicates the bound of the corresponding dimension.
  • If this descriptor represents a sequence, map, bit set, or string type, the length of the property value is one and the integral value in that property indicates the bound of the collection.

In all other cases, a consistent descriptor shall have a nil value for this property.

◆ element_type

DynamicType DDS.TypeDescriptor.element_type

If this descriptor represents an array, sequence, or string type, this property indicates the element type of the collection.

It must not be nil for the descriptor to be consistent. If this descriptor represents a map type, this property indicates the value element type of the map. It must not be nil for the descriptor to be consistent.

If this descriptor represents a bit set type, this property must indicate a Boolean type for the descriptor to be consistent.

If this descriptor represents any other kind of type, this property must be nil for the descriptor to be consistent.

◆ key_element_type

DynamicType DDS.TypeDescriptor.key_element_type

If this descriptor represents a map type, this property indicates the value element type of the map.

It must not be nil for the descriptor to be consistent.

 If this descriptor represents any other kind of type, this 
 property must be nil for the descriptor to be consistent.

© 2009-2020 Twin Oaks Computing, Inc
Castle Rock, CO 80104
All rights reserved.