RTI Connext Java API
Version 7.0.0
|
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. More... | |
boolean | is_pointer |
Indicates whether the union member is a pointer or not. More... | |
int [] | labels |
The labels of the union member. More... | |
TypeCode | type |
The type of the union member. More... | |
int | id |
The member ID. More... | |
A description of a member of a union.
UnionMember | ( | String | name, |
boolean | is_pointer, | ||
int [] | labels, | ||
TypeCode | type | ||
) |
Constructs a UnionMember object initialized with the given values.
References TypeCode.equal(), UnionMember.id, UnionMember.is_pointer, UnionMember.labels, TypeCode.MEMBER_ID_INVALID, UnionMember.name, and UnionMember.type.
String name |
The name of the union member.
Cannot be null.
Referenced by TypeCode.member_name(), and UnionMember.UnionMember().
boolean is_pointer |
Indicates whether the union member is a pointer or not.
Referenced by TypeCode.is_member_pointer(), and UnionMember.UnionMember().
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.
Referenced by TypeCode.add_member_to_enum(), TypeCode.find_member_by_name(), TypeCode.member_label(), TypeCode.member_label_count(), and UnionMember.UnionMember().
TypeCode type |
The type of the union member.
Cannot be null.
Referenced by TypeCode.cdr_serialized_sample_key_max_size(), TypeCode.member_type(), and UnionMember.UnionMember().
int id |
The member ID.
Referenced by TypeCode.add_member_to_enum(), TypeCode.member_id(), and UnionMember.UnionMember().