Package org.openbel.framework.ws.model

Examples of org.openbel.framework.ws.model.Node


            // KAM.
            if (edge.getRelationship() == RelationshipType.UNKNOWN) {
                continue;
            }

            final Node subject = edge.getSource();
            final Node object = edge.getTarget();

            if (subject == null) {
                throw new InvalidArgument("Edge subject is invalid.");
            }

            if (object == null) {
                throw new InvalidArgument("Edge object is invalid.");
            }

            String subLbl = subject.getLabel();
            String objLbl = object.getLabel();
            final Kam.KamEdge re;
            org.openbel.framework.common.enums.RelationshipType rel;
            rel = convert(edge.getRelationship());

            try {
View Full Code Here


            throw new RequestException("No edge to resolve");
        }

        // Sanity check the edges (see #83)
        for (final Edge e : edges) {
            Node src = e.getSource(), tgt = e.getTarget();
            if (src == null || tgt == null) {
                final String msg = "edge missing source and target nodes";
                throw new RequestException(msg);
            }
            RelationshipType rel = e.getRelationship();
            if (rel == null) {
                final String msg = "edge missing relationship";
                throw new RequestException(msg);
            }
            if (noLength(src.getLabel())) {
                final String msg = "edge source node label is missing";
                throw new RequestException(msg);
            }
            if (noLength(tgt.getLabel())) {
                final String msg = "edge target node label is missing";
View Full Code Here

TOP

Related Classes of org.openbel.framework.ws.model.Node

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.