Search in sources :

Example 1 with ConstantDescription

use of org.omg.CORBA.ConstantDescription in project wildfly by wildfly.

the class ConstantDefImpl method describe.

// ContainedImpl implementation ----------------------------------
public Description describe() {
    String defined_in_id = "IR";
    if (defined_in instanceof ContainedOperations)
        defined_in_id = ((ContainedOperations) defined_in).id();
    ConstantDescription d = new ConstantDescription(name, id, defined_in_id, version, typeCode, value);
    Any any = getORB().create_any();
    ConstantDescriptionHelper.insert(any, d);
    return new Description(DefinitionKind.dk_Constant, any);
}
Also used : ConstantDescription(org.omg.CORBA.ConstantDescription) Description(org.omg.CORBA.ContainedPackage.Description) ConstantDescription(org.omg.CORBA.ConstantDescription) ContainedOperations(org.omg.CORBA.ContainedOperations) Any(org.omg.CORBA.Any)

Aggregations

Any (org.omg.CORBA.Any)1 ConstantDescription (org.omg.CORBA.ConstantDescription)1 ContainedOperations (org.omg.CORBA.ContainedOperations)1 Description (org.omg.CORBA.ContainedPackage.Description)1