RTI Connext Java API  Version 5.0.0
UnionMember Class Reference

A description of a member of a union. More...

Inherits Serializable.

Public Member Functions

 UnionMember (String name, boolean is_pointer, int[] labels, TypeCode type)
 

Public Attributes

String name
 The name of the union member.
 
boolean is_pointer
 Indicates whether the union member is a pointer or not.
 
int[] labels
 The labels of the union member.
 
TypeCode type
 The type of the union member.
 

Detailed Description

A description of a member of a union.

See Also
com.rti.dds.typecode.TypeCodeFactory.create_union_tc

Constructor & Destructor Documentation

UnionMember ( String  name,
boolean  is_pointer,
int[]  labels,
TypeCode  type 
)

Constructs a UnionMember object initialized with the given values.

Member Data Documentation

String name

The name of the union member.

Cannot be null.

boolean is_pointer

Indicates whether the union member is a pointer or not.

int [] labels

The labels of the union member.

Each union member should contain at least one label. If the union discriminator type is not com.rti.dds.infrastructure.int the label value should be evaluated to an integer value. For instance, 'a' would be evaluated to 97.

TypeCode type

The type of the union member.

Cannot be null.


RTI Connext Java API Version 5.0.0 Copyright © Thu Aug 30 2012 Real-Time Innovations, Inc