Search in sources :

Example 1 with Description

use of org.omg.CORBA.ContainedPackage.Description in project wildfly by wildfly.

the class AttributeDefImpl method describe.

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

Example 2 with Description

use of org.omg.CORBA.ContainedPackage.Description 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 3 with Description

use of org.omg.CORBA.ContainedPackage.Description in project wildfly by wildfly.

the class InterfaceDefImpl method describe.

// ContainedImpl implementation ----------------------------------
public Description describe() {
    String defined_in_id = "IR";
    if (defined_in instanceof org.omg.CORBA.ContainedOperations)
        defined_in_id = ((org.omg.CORBA.ContainedOperations) defined_in).id();
    org.omg.CORBA.InterfaceDescription md = new InterfaceDescription(name, id, defined_in_id, version, base_interfaces, false);
    Any any = getORB().create_any();
    InterfaceDescriptionHelper.insert(any, md);
    return new Description(DefinitionKind.dk_Interface, any);
}
Also used : ParameterDescription(org.omg.CORBA.ParameterDescription) Description(org.omg.CORBA.ContainedPackage.Description) AttributeDescription(org.omg.CORBA.AttributeDescription) OperationDescription(org.omg.CORBA.OperationDescription) FullInterfaceDescription(org.omg.CORBA.InterfaceDefPackage.FullInterfaceDescription) InterfaceDescription(org.omg.CORBA.InterfaceDescription) FullInterfaceDescription(org.omg.CORBA.InterfaceDefPackage.FullInterfaceDescription) InterfaceDescription(org.omg.CORBA.InterfaceDescription) InterfaceDescription(org.omg.CORBA.InterfaceDescription) Any(org.omg.CORBA.Any)

Example 4 with Description

use of org.omg.CORBA.ContainedPackage.Description 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)

Example 5 with Description

use of org.omg.CORBA.ContainedPackage.Description 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)9 Description (org.omg.CORBA.ContainedPackage.Description)9 ContainedOperations (org.omg.CORBA.ContainedOperations)7 AttributeDescription (org.omg.CORBA.AttributeDescription)3 OperationDescription (org.omg.CORBA.OperationDescription)3 ParameterDescription (org.omg.CORBA.ParameterDescription)3 ExceptionDescription (org.omg.CORBA.ExceptionDescription)2 ConstantDescription (org.omg.CORBA.ConstantDescription)1 FullInterfaceDescription (org.omg.CORBA.InterfaceDefPackage.FullInterfaceDescription)1 InterfaceDescription (org.omg.CORBA.InterfaceDescription)1 ModuleDescription (org.omg.CORBA.ModuleDescription)1 TypeDescription (org.omg.CORBA.TypeDescription)1 FullValueDescription (org.omg.CORBA.ValueDefPackage.FullValueDescription)1 ValueDescription (org.omg.CORBA.ValueDescription)1 ValueMember (org.omg.CORBA.ValueMember)1