Package org.apache.airavata.xbaya

Examples of org.apache.airavata.xbaya.XBayaRuntimeException


     * @param edge
     *            The edge to add
     */
    protected void addEdge(EdgeImpl edge) {
        if (this.edges.contains(edge)) {
            throw new XBayaRuntimeException("The edge is already addes");
        } else {
            this.edges.add(edge);
        }
    }
View Full Code Here


    protected void removeEdge(Edge edge) {
        if (this.edges.contains(edge)) {
            this.edges.remove(edge);
            // this.node.edgeWasRemoved(edge);
        } else {
            throw new XBayaRuntimeException("The edge doesn't exist.");
        }
    }
View Full Code Here

        case EPR:
            portType = "epr";
            break;
        default:
            // Should not happen.
            throw new XBayaRuntimeException("Wrong type of the port: " + this.kind);
        }
        int index = getIndex();
        return nid + "_" + portType + "_" + index;
    }
View Full Code Here

        case 0:
            return new Integer((String) obj);
        case 1:
            return obj;
        }
        throw new XBayaRuntimeException("type Not Supported yet!!");
    }
View Full Code Here

                    throw new GraphException("Cannot connect ports with different types.");
                }

            } else {
                // Should not happen.
                throw new XBayaRuntimeException("edges.size(): " + edges.size());
            }
        }
    }
View Full Code Here

     * Checks if the client is connected to the BPEL engine.
     *
     * @return true if the client is connected to the BPEL engine; false otherwise.
     */
    protected synchronized boolean isConnected() {
        throw new XBayaRuntimeException("Critical Error: Called a unsupported API");
    }
View Full Code Here

                    throw new GraphException("Cannot connect ports with different types.");
                }

            } else {
                // Should not happen.
                throw new XBayaRuntimeException("edges.size(): " + edges.size());
            }
        }
    }
View Full Code Here

        if (this.componentPort == null) {
            ComponentPort port = super.getComponentPort();
            if (port instanceof DynamicComponentPort) {
                this.componentPort = (DynamicComponentPort) port;
            } else {
                throw new XBayaRuntimeException("UNEXPECTED ERROR: Unable to resolve Port");
            }

        }
        return this.componentPort;
    }
View Full Code Here

            } else if (toDataPort.getNode() == this) {
                if (!(fromType == null || fromType.equals(WSConstants.XSD_ANY_TYPE))) {
                    toDataPort.copyType(fromDataPort);
                }
            } else {
                throw new XBayaRuntimeException();
            }
        }
    }
View Full Code Here

        if ("http".equalsIgnoreCase(scheme)) {
            return false;
        } else if ("https".equalsIgnoreCase(scheme)) {
            return true;
        } else {
            throw new XBayaRuntimeException("Protocol, " + scheme + ", is not supported");
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.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.