Search in sources :

Example 1 with ExceptionDescription

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

the class ExceptionDefImpl method describe.

// ContainedImpl implementation ----------------------------------
public Description describe() {
    String defined_in_id = "IR";
    if (defined_in instanceof ContainedOperations)
        defined_in_id = ((ContainedOperations) defined_in).id();
    ExceptionDescription ed = new ExceptionDescription(name, id, defined_in_id, version, type());
    Any any = getORB().create_any();
    ExceptionDescriptionHelper.insert(any, ed);
    return new Description(DefinitionKind.dk_Exception, any);
}
Also used : ExceptionDescription(org.omg.CORBA.ExceptionDescription) Description(org.omg.CORBA.ContainedPackage.Description) ExceptionDescription(org.omg.CORBA.ExceptionDescription) ContainedOperations(org.omg.CORBA.ContainedOperations) Any(org.omg.CORBA.Any)

Example 2 with ExceptionDescription

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

the class OperationDefImpl method describe.

// ContainedImpl implementation ----------------------------------
public Description describe() {
    String defined_in_id = "IR";
    if (defined_in instanceof ContainedOperations)
        defined_in_id = ((ContainedOperations) defined_in).id();
    ExceptionDescription[] exds;
    exds = new ExceptionDescription[exceptions.length];
    for (int i = 0; i < exceptions.length; ++i) {
        Description d = exceptions[i].describe();
        exds[i] = ExceptionDescriptionHelper.extract(d.value);
    }
    OperationDescription od;
    od = new OperationDescription(name, id, defined_in_id, version, typeCode, mode(), contexts(), params(), exds);
    Any any = getORB().create_any();
    OperationDescriptionHelper.insert(any, od);
    return new Description(DefinitionKind.dk_Operation, any);
}
Also used : OperationDescription(org.omg.CORBA.OperationDescription) ExceptionDescription(org.omg.CORBA.ExceptionDescription) ParameterDescription(org.omg.CORBA.ParameterDescription) Description(org.omg.CORBA.ContainedPackage.Description) ExceptionDescription(org.omg.CORBA.ExceptionDescription) ContainedOperations(org.omg.CORBA.ContainedOperations) Any(org.omg.CORBA.Any) OperationDescription(org.omg.CORBA.OperationDescription)

Aggregations

Any (org.omg.CORBA.Any)2 ContainedOperations (org.omg.CORBA.ContainedOperations)2 Description (org.omg.CORBA.ContainedPackage.Description)2 ExceptionDescription (org.omg.CORBA.ExceptionDescription)2 OperationDescription (org.omg.CORBA.OperationDescription)1 ParameterDescription (org.omg.CORBA.ParameterDescription)1