Package edu.indiana.extreme.xbaya

Examples of edu.indiana.extreme.xbaya.XBayaRuntimeException


            if (isTypeDefinedInSchema(paramType, importedSchema)) {
              // still return the parent schema
              return schema;
            }
          } catch (MalformedURLException e) {
            throw new XBayaRuntimeException(e);
          } catch (XmlBuilderException e) {
            throw new XBayaRuntimeException(e);
          } catch (IOException e) {
            throw new XBayaRuntimeException(e);
          }
        }
      }
    }
View Full Code Here


            if (returnType != null) {
              return importEle;
            }

          } catch (MalformedURLException e) {
            throw new XBayaRuntimeException(e);
          } catch (XmlBuilderException e) {
            throw new XBayaRuntimeException(e);
          } catch (IOException e) {
            throw new XBayaRuntimeException(e);
          }
        }
      }
    }
    return null;
View Full Code Here

            if (returnType != null) {
              return returnType;
            }

          } catch (MalformedURLException e) {
            throw new XBayaRuntimeException(e);
          } catch (XmlBuilderException e) {
            throw new XBayaRuntimeException(e);
          } catch (IOException e) {
            throw new XBayaRuntimeException(e);
          }
        }
      }
    }
    return null;
View Full Code Here

    try {
      workflowWSDL = workflow.getOdeWorkflowWSDL(configuration
          .getDSCURL(), configuration.getODEURL());
    } catch (Exception e) {
      // shouldnt happen cos we have already called this once
      throw new XBayaRuntimeException(e);
    }
    org.xmlpull.infoset.XmlElement service = workflowWSDL.xml().element(
        null, "service");
    org.xmlpull.infoset.XmlElement port = service.element(null, "port");
    org.xmlpull.infoset.XmlElement address = port.element(null, "address");
    String location = address.attributeValue("location");

    URI ret = null;
    try {
      ret = new URI(location + "?wsdl");
    } catch (URISyntaxException e) {
      throw new XBayaRuntimeException(e);
    }
    return ret;

  }
View Full Code Here

      // ;
      // System.out.println(XmlConstants.BUILDER
      // .serializeToStringPretty(process));
      //
    } catch (Exception e) {
      throw new XBayaRuntimeException(e);
    }
    // TODO Auto-generated method stub
    return XmlConstants.BUILDER.serializeToStringPretty(process);
  }
View Full Code Here

    if (this.mode == GUI_MODE) {

      if (this.workflow.getExecutionState() == XBayaExecutionState.RUNNING || this.workflow.getExecutionState() == XBayaExecutionState.STEP) {
        this.engine.getGUI().getToolbar().getPlayAction().actionPerformed(null);
      } else {
        throw new XBayaRuntimeException("Cannot pause when not running");
      }
    }
  }
View Full Code Here

            // rest of the loading should work.

            XBayaSecurity.init();

          } catch (URISyntaxException e) {
            throw new XBayaRuntimeException(e);
          }
         
          /*
           * Resource Mapping Header
           */
 
View Full Code Here

    this.deleteWorkflowfromXRegistryItem.addActionListener(new AbstractAction() {
      public void actionPerformed(ActionEvent e) {
        try {
          ExperimentMenu.this.xregistryAccesser.deleteOGCEWorkflow(ExperimentMenu.this.engine.getWorkflow().getQname());
        } catch (XRegistryClientException e1) {
          throw new XBayaRuntimeException(e1);
        }
      }
    });
  }
View Full Code Here

        try {
            URL jarURL = new URL(jarURLString);
            logger.exiting(jarURL);
            return jarURL;
        } catch (MalformedURLException e) {
            throw new XBayaRuntimeException(e);
        }
    }
View Full Code Here

        if (kind == Kind.DATA_IN) {
            index = inputPorts.indexOf(port) % size;
        } else if (kind == Kind.DATA_OUT) {
            index = outputPorts.indexOf(port);
        } else {
            throw new XBayaRuntimeException();
        }

        DataPort inputPort1 = inputPorts.get(index);
        DataPort inputPort2 = inputPorts.get(size + index);
        DataPort outputPort = outputPorts.get(index);

        QName inputType1 = inputPort1.getType();
        QName inputType2 = inputPort2.getType();
        QName outputType = outputPort.getType();

        QName portType = port.getType();
        if (portType == null || portType.equals(WSConstants.XSD_ANY_TYPE)) {
            // Do nothing
            return;
        }

        if (port == inputPort1) {
            // input1 -> input2
            if (inputType2.equals(WSConstants.XSD_ANY_TYPE)) {
                inputPort2.copyType(port);
            } else if (inputType2.equals(portType)) {
                // Do nothing.
            } else {
                String message = "The type of input " + index + " ("
                        + inputType1 + ") of " + getID()
                        + " must be same as the type of input "
                        + (index + size) + " (" + inputType2 + ").";
                throw new GraphException(message);
            }
            // input1 -> output
            if (outputType.equals(WSConstants.XSD_ANY_TYPE)) {
                outputPort.copyType(port);
            } else if (outputType.equals(portType)) {
                // Do nothing.
            } else {
                String message = "The type of input " + index + " ("
                        + inputType1 + ") of " + getID()
                        + " must be same as the type of output " + index + " ("
                        + outputType + ").";
                throw new GraphException(message);
            }

        } else if (port == inputPort2) {
            // input2 -> input1
            if (inputType1.equals(WSConstants.XSD_ANY_TYPE)) {
                inputPort1.copyType(port);
            } else if (inputType1.equals(portType)) {
                // Do nothing.
            } else {
                String message = "The type of input " + index + " ("
                        + inputType1 + ") of " + getID()
                        + " must be same as the type of input "
                        + (index + size) + " (" + inputType2 + ").";
                throw new GraphException(message);
            }
            // input2 -> output
            if (outputType.equals(WSConstants.XSD_ANY_TYPE)) {
                outputPort.copyType(port);
            } else if (outputType.equals(portType)) {
                // Do nothing.
            } else {
                String message = "The type of input " + (index + size) + " ("
                        + inputType2 + ") of " + getID()
                        + " must be same as the type of output " + index + " ("
                        + outputType + ").";
                throw new GraphException(message);
            }
        } else if (port == outputPort) {
            // output -> input1
            if (inputType1.equals(WSConstants.XSD_ANY_TYPE)) {
                inputPort1.copyType(port);
            } else if (inputType1.equals(portType)) {
                // Do nothing.
            } else {
                String message = "The type of input " + index + " ("
                        + inputType1 + ") of " + getID()
                        + " must be same as the type of output " + index + " ("
                        + outputType + ").";
                throw new GraphException(message);
            }
            // output -> input2
            if (inputType2.equals(WSConstants.XSD_ANY_TYPE)) {
                inputPort2.copyType(port);
            } else if (inputType2.equals(portType)) {
                // Do nothing.
            } else {
                String message = "The type of input " + (index + size) + " ("
                        + inputType2 + ") of " + getID()
                        + " must be same as the type of input " + index + " ("
                        + outputType + ").";
                throw new GraphException(message);
            }
        } else {
            throw new XBayaRuntimeException();
        }
    }
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.XBayaRuntimeException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.