Search in sources :

Example 1 with Description

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

the class ContainerImplDelegate method describe_contents.

public Description[] describe_contents(DefinitionKind limit_type, boolean exclude_inherited, int max_returned_objs) {
    Contained[] c = contents(limit_type, exclude_inherited);
    int returnSize;
    if (max_returned_objs != -1 && c.length > max_returned_objs)
        returnSize = max_returned_objs;
    else
        returnSize = c.length;
    Description[] ret = new Description[returnSize];
    for (int i = 0; i < returnSize; ++i) {
        org.omg.CORBA.ContainedPackage.Description d = c[i].describe();
        ret[i] = new Description(c[i], d.kind, d.value);
    }
    return ret;
}
Also used : Contained(org.omg.CORBA.Contained) Description(org.omg.CORBA.ContainerPackage.Description)

Aggregations

Contained (org.omg.CORBA.Contained)1 Description (org.omg.CORBA.ContainerPackage.Description)1