Package org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.NodePathCompleter

Examples of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.NodePathCompleter.Completion


        String fragment = expression.substring(completedName.length());
        if (fragment.isEmpty()) {
            return null;
        }
        NodePathCompleter worker = new NodePathCompleter(tree);
        Completion path = worker.complete(fragment);
        if (path == null) {
            return null;
        }
        return path.substring(fragment.length());
    }
View Full Code Here


            case 2:
                if (endsWithWhitespace(expression)) {
                    return "to ";
                } else {
                    TreeComponent tree = getSourceTree();
                    Completion completion = NodePathUtils.completePath(tree, expression, NAME + " ");
                    if (completion != null) {
                        if (isLeaf(completion)) {
                            return completion.value + " to ";
                        }
                        return completion.value;
                    }
                }
                break;
            case 3:
                if (endsWithWhitespace(expression)) {
                    return null;
                } else {
                    String last = parts[2];
                    if (last.equals("to")) {
                        return " ";
                    } else if (last.equals("t")) {
                        return "o ";
                    }
                    return null;
                }
            case 4:
                if (endsWithWhitespace(expression)) {
                    return null;
                } else {
                    TreeComponent tree = getTargetTree();
                    String completedName = NAME + " " + parts[1] + " to ";
                    Completion completion = NodePathUtils.completePath(tree, expression, completedName);
                    if (completion != null) {
                        return completion.value;
                    }
                }
            default:
View Full Code Here

        String[] parts = expression.split(" ");
        if (parts.length > 2) {
            return null;
        }
        TreeComponent tree = page.getTreeMapper().m_targetTreeComponent;
        Completion completion = NodePathUtils.completePath(tree, expression, completedName);
        return completion != null ? completion.value : null;
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.client.ui.interchange.entity.transformation.tree.NodePathCompleter.Completion

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.