use of lucee.runtime.type.it.KeyIterator in project Lucee by lucee.
the class Axis1Client method keyIterator.
@Override
public Iterator<Collection.Key> keyIterator() {
List<Collection.Key> list = new ArrayList<Collection.Key>();
Port port = null;
try {
port = getPort();
} catch (Exception e) {
return new KeyIterator(new Collection.Key[0]);
}
Binding binding = port.getBinding();
SymbolTable symbolTable = parser.getSymbolTable();
BindingEntry bEntry = symbolTable.getBindingEntry(binding.getQName());
Iterator itr = bEntry.getParameters().keySet().iterator();
Operation tmpOp = null;
// Operation operation = null;
while (itr.hasNext()) {
tmpOp = (Operation) itr.next();
// Parameters p = (Parameters)bEntry.getParameters().get(tmpOp);
list.add(KeyImpl.init(tmpOp.getName()));
}
return new KeyIterator(list.toArray(new Collection.Key[list.size()]));
}
Aggregations