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;
}
Aggregations