use of org.omg.CORBA.ValueMember in project wildfly by wildfly.
the class ValueDefImpl method getValueMembers.
/**
* Create the valueMembers array, and return it.
*/
private ValueMember[] getValueMembers() {
if (valueMembers != null)
return valueMembers;
LocalContained[] c = _contents(DefinitionKind.dk_ValueMember, false);
valueMembers = new ValueMember[c.length];
for (int i = 0; i < c.length; ++i) {
ValueMemberDefImpl vmdi = (ValueMemberDefImpl) c[i];
valueMembers[i] = new ValueMember(vmdi.name(), vmdi.id(), ((LocalContained) vmdi.defined_in).id(), vmdi.version(), vmdi.type(), vmdi.type_def(), vmdi.access());
}
return valueMembers;
}
use of org.omg.CORBA.ValueMember in project wildfly by wildfly.
the class ValueDefImpl method getValueMembersForTypeCode.
/**
* Create a valueMembers array for TypeCode creation only, and return it.
*/
private ValueMember[] getValueMembersForTypeCode() {
LocalContained[] c = _contents(DefinitionKind.dk_ValueMember, false);
ValueMember[] vms = new ValueMember[c.length];
for (int i = 0; i < c.length; ++i) {
ValueMemberDefImpl vmdi = (ValueMemberDefImpl) c[i];
vms[i] = new ValueMember(vmdi.name(), // ignore id
null, // ignore defined_in
null, // ignore version
null, vmdi.type(), // ignore type_def
null, vmdi.access());
}
return vms;
}
use of org.omg.CORBA.ValueMember in project wildfly by wildfly.
the class ValueMemberDefImpl method describe.
public Description describe() {
String defined_in_id = "IR";
if (defined_in instanceof ContainedOperations)
defined_in_id = ((ContainedOperations) defined_in).id();
ValueMember d = new ValueMember(name, id, defined_in_id, version, typeCode, type_def(), access());
Any any = getORB().create_any();
ValueMemberHelper.insert(any, d);
return new Description(DefinitionKind.dk_ValueMember, any);
}
Aggregations