Search in sources :

Example 1 with IdlEnum

use of org.apache.cxf.tools.corba.common.idltypes.IdlEnum in project cxf by apache.

the class WSDLToIDLAction method createEnum.

private IdlType createEnum(Enum e, IdlScopeBase scope, String local) {
    IdlEnum enum1 = IdlEnum.create(scope, local);
    Iterator<Enumerator> it = e.getEnumerator().iterator();
    while (it.hasNext()) {
        // Enumerators are created in the same scope
        // as the enum, according to IDL grammar rules.
        String n = it.next().getValue();
        IdlEnumerator enumerator = IdlEnumerator.create(scope, n);
        scope.addToScope(enumerator);
        enum1.addEnumerator(enumerator);
    }
    scope.addToScope(enum1);
    return enum1;
}
Also used : Enumerator(org.apache.cxf.binding.corba.wsdl.Enumerator) IdlEnumerator(org.apache.cxf.tools.corba.common.idltypes.IdlEnumerator) IdlString(org.apache.cxf.tools.corba.common.idltypes.IdlString) IdlEnumerator(org.apache.cxf.tools.corba.common.idltypes.IdlEnumerator) IdlEnum(org.apache.cxf.tools.corba.common.idltypes.IdlEnum)

Aggregations

Enumerator (org.apache.cxf.binding.corba.wsdl.Enumerator)1 IdlEnum (org.apache.cxf.tools.corba.common.idltypes.IdlEnum)1 IdlEnumerator (org.apache.cxf.tools.corba.common.idltypes.IdlEnumerator)1 IdlString (org.apache.cxf.tools.corba.common.idltypes.IdlString)1