RTI Connext Java API  Version 5.3.1
 All Classes Namespaces Functions Variables Groups Pages
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.
 
int id
 The member ID.
 

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.

int id

The member ID.


RTI Connext Java API Version 5.3.1 Copyright © Mon Feb 19 2018 Real-Time Innovations, Inc