Examples of NodeContext


Examples of org.exoplatform.portal.mop.navigation.NodeContext

        {
            return "";
        }

        String[] path = requestPath.split("/");
        NodeContext nodeContext = navService.loadNode(NodeModel.SELF_MODEL, navContext,
                GenericScope.branchShape(path, Scope.ALL), null);

        boolean found = true;
        String lastCommonAncestor = "";

        for (String nodeName : path) {
            nodeContext = nodeContext.get(nodeName);
            if (nodeContext == null) {
                found = false;
                break;
            } else {
                if (lastCommonAncestor.equals("")) {
                    lastCommonAncestor += nodeContext.getName();
                } else {
                    lastCommonAncestor += "/" + nodeContext.getName();
                }
            }
        }

        if (found == true) {
View Full Code Here

Examples of org.raml.parser.completion.NodeContext

        }
        nodeVisitor.visitDocument(rootNode);


        NodeBuilder<?> parentNodeBuilder = null;
        NodeContext nodeContext = nodes.peek();
        while (!nodes.isEmpty())
        {
            nodeContext = popNode();
            parentNodeBuilder = (NodeBuilder) this.builder.getBuilderContext().pop();
            if (nodeContext.getParentIndentation() < contextColumn)
            {
                break;
            }
        }
        if (!isContextInValue(context))
View Full Code Here

Examples of org.raml.parser.completion.NodeContext

        pushNode(node.getStartMark().getColumn(), mappingNode);
    }

    private void pushNode(int column, MappingNode mappingNode)
    {
        nodes.push(new NodeContext(column, mappingNode));
    }
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.