Examples of PathNode


Examples of com.ericsson.ssa.sip.PathNode

        Iterator<PathNode> iter = getCaller2CalleePath();

        if (iter != null) {
            while (iter.hasNext()) {
                PathNode node = iter.next();
                SipSessionManager mgr = node.getSipSessionManager();
                // The following may throw RemoteLockException
                if (mgr != null) {
                    mgr.findSipSession(node.getSipSessionId());
                }
            }
        }
    }
View Full Code Here

Examples of com.ericsson.ssa.sip.PathNode

                    for (DialogFragment df : dialogs) {
                        sb.append("dlc={").append(df.getDialogLifeCycle().toString());
                        sb.append("; df.isValid=").append(df.isValid());
                        sb.append("; locks: df=").append(df.isForegroundLocked());
                        for (Iterator<PathNode> pnIt = df.getCaller2CalleePath(); pnIt.hasNext();) {
                            PathNode pn = pnIt.next();
                            sb.append("; ss (").append(pn.getSipSessionId()).append(")=");
                            try {
                                SipSessionBase ss;
                                if ((ss = pn.getSipSession()) != null) {
                                    sb.append(((SipSessionDialogImpl) ss).isForegroundLocked());
                                    SipApplicationSession sas;
                                    if ((sas = ss.getApplicationSession()) != null) {
                                        sb.append("; sas (").append(sas.getId()).append(")=").append(((SipApplicationSessionImpl) sas).isForegroundLocked());
                                    } else {
View Full Code Here

Examples of org.apache.isis.viewer.json.applib.util.PathNode

    private JsonNode getNode(final String path) {
        JsonNode jsonNode = this.jsonNode;
        final String[] keys = path.split("\\.");
        for (final String key : keys) {
            final PathNode pathNode = PathNode.parse(key);
            if (!pathNode.getKey().isEmpty()) {
                jsonNode = jsonNode.path(pathNode.getKey());
            } else {
                // pathNode is criteria only; don't change jsonNode
            }
            if (jsonNode.isNull()) {
                return jsonNode;
            }
            if (!pathNode.hasCriteria()) {
                continue;
            }
            if (!jsonNode.isArray()) {
                return NullNode.getInstance();
            }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.util.PathNode

    private JsonNode getNode(final String path) {
        JsonNode jsonNode = this.jsonNode;
        final List<String> keys = PathNode.split(path);
        for (final String key : keys) {
            final PathNode pathNode = PathNode.parse(key);
            if (!pathNode.getKey().isEmpty()) {
                jsonNode = jsonNode.path(pathNode.getKey());
            } else {
                // pathNode is criteria only; don't change jsonNode
            }
            if (jsonNode.isNull()) {
                return jsonNode;
            }
            if (!pathNode.hasCriteria()) {
                continue;
            }
            if (!jsonNode.isArray()) {
                return NullNode.getInstance();
            }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.util.PathNode

            return terminated();
        }
        if (mode == Mode.TERMINATED) {
            return terminated();
        }
        final PathNode candidate = PathNode.parse(path);
        if (mode == Mode.FOLLOWING) {
            List<List<PathNode>> remainingPathSpecs = Lists.newArrayList();
            List<PathNode> firstSpecs = Lists.newArrayList();
            for(List<PathNode> spec: pathSpecs) {
                if(spec.isEmpty()) {
                    continue;
                }
                PathNode first = spec.get(0);
                if(candidate.equals(first)) {
                    List<PathNode> remaining = spec.subList(1, spec.size());
                    firstSpecs.add(first);
                    remainingPathSpecs.add(remaining);
                }
View Full Code Here

Examples of org.apache.isis.viewer.restfulobjects.applib.util.PathNode

    private NodeAndFormat getNodeAndFormat(final String path) {
        JsonNode jsonNode = this.jsonNode;
        final List<String> keys = PathNode.split(path);
        String format = null;
        for (final String key : keys) {
            final PathNode pathNode = PathNode.parse(key);
            if (!pathNode.getKey().isEmpty()) {
                // grab format (if present) before moving down the path
                format = getFormatValueIfAnyFrom(jsonNode);
                jsonNode = jsonNode.path(pathNode.getKey());
            } else {
                // pathNode is criteria only; don't change jsonNode
            }
            if (jsonNode.isNull()) {
                return new NodeAndFormat(jsonNode, format);
            }
            if (!pathNode.hasCriteria()) {
                continue;
            }
            if (!jsonNode.isArray()) {
                return new NodeAndFormat(NullNode.getInstance(), format);
            }
View Full Code Here

Examples of org.candlepin.util.X509V3ExtensionUtil.PathNode

        util = new X509V3ExtensionUtil(config, ec);
    }

    @Test
    public void compareToEquals() {
        PathNode pn = util.new PathNode();
        NodePair np = new NodePair("name", pn);
        NodePair np1 = new NodePair("name", pn);
        assertEquals(0, np.compareTo(np1));
        assertEquals(np, np1);
    }
View Full Code Here

Examples of org.jboss.dna.graph.connector.path.PathNode

        if (entry == null) {
            statistics.incrementMisses();
            return null;
        }

        PathNode node = entry.getNode();
        if (node != null) {
            statistics.incrementHits();
            return node;
        }
View Full Code Here

Examples of org.ontospread.gui.view.nodes.spread.PathNode

      PathTO[]path = spreadPathTable.get(conceptUri);
      if(path[path.length-1].getConceptUri().equals(conceptTO.getUri()) && !conceptUri.equals(conceptTO.getUri())){
        Node sonNode = spreadedNode;
        for (int i = path.length-1; i >=0 ; i--) {
          pathConceptTO = ontologyDAO.getConceptTO(path[i].getConceptUri());
          Node pathNode = new PathNode(
              formatActivation(pathConceptTO.getName(),
                  concepts.get(pathConceptTO.getUri())),path[i].getConceptUri());
//          for(String relation:path[i].getRelationsUri()){
//            if(relation == null) relation = "#INITIAL";
//            edges.add(new TextEdge(pathNode,sonNode,""+formatRelation(relation))); 
View Full Code Here

Examples of org.ontospread.gui.view.nodes.spread.PathNode

      PathTO[]path = spreadPathTable.get(conceptUri);
      if(path[path.length-1].getConceptUri().equals(conceptTO.getUri()) && !conceptUri.equals(conceptTO.getUri())){
        Node sonNode = spreadedNode;
        for (int i = path.length-1; i >=0 ; i--) {
          pathConceptTO = ontologyDAO.getConceptTO(path[i].getConceptUri());
          Node pathNode = new PathNode(
              formatActivation(pathConceptTO.getName(),
                  concepts.get(pathConceptTO.getUri())),path[i].getConceptUri());
//          for(String relation:path[i].getRelationsUri()){
//            if(relation == null) relation = "#INITIAL";
//            edges.add(new TextEdge(pathNode,sonNode,""+formatRelation(relation))); 
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.