Search in sources :

Example 1 with ValueMember

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;
}
Also used : ValueMember(org.omg.CORBA.ValueMember)

Example 2 with ValueMember

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;
}
Also used : ValueMember(org.omg.CORBA.ValueMember)

Example 3 with ValueMember

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);
}
Also used : Description(org.omg.CORBA.ContainedPackage.Description) ValueMember(org.omg.CORBA.ValueMember) ContainedOperations(org.omg.CORBA.ContainedOperations) Any(org.omg.CORBA.Any)

Aggregations

ValueMember (org.omg.CORBA.ValueMember)3 Any (org.omg.CORBA.Any)1 ContainedOperations (org.omg.CORBA.ContainedOperations)1 Description (org.omg.CORBA.ContainedPackage.Description)1