예제 #1
0
 protected void doGeneration() {
   try {
     model.accept(this);
   } catch (Exception e) {
     receiver.error(e);
   }
 }
예제 #2
0
 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;
 }
예제 #3
0
 public void visit(Model model) throws Exception {
   for (Service service : model.getServices()) {
     service.accept(this);
   }
 }