public void visit(Operation operation) throws Exception { operation.getRequest().accept(this); if (operation.getResponse() != null) operation.getResponse().accept(this); Iterator faults = operation.getFaultsSet().iterator(); if (faults != null) { Fault fault; while (faults.hasNext()) { fault = (Fault) faults.next(); fault.accept(this); } } }
public static boolean isEncoded(Model model) { if (model == null) return false; for (Service service : model.getServices()) { for (Port port : service.getPorts()) { for (Operation operation : port.getOperations()) { if (operation.getUse() != null && operation.getUse().equals(SOAPUse.LITERAL)) return false; } } } return true; }
public void visit(Port port) throws Exception { for (Operation operation : port.getOperations()) { operation.accept(this); } }