Examples of NodeComparison


Examples of org.eclipse.core.internal.dtree.NodeComparison

  protected static ResourceDelta createDelta(Workspace workspace, DeltaDataTree delta, ResourceDeltaInfo deltaInfo, IPath pathInTree, IPath pathInDelta) {
    // create the delta and fill it with information
    ResourceDelta result = new ResourceDelta(pathInTree, deltaInfo);

    // fill the result with information
    NodeComparison compare = (NodeComparison) delta.getData(pathInDelta);
    int comparison = compare.getUserComparison();
    result.setStatus(comparison);
    if (comparison == IResourceDelta.NO_CHANGE || Path.ROOT.equals(pathInTree)) {
      ResourceInfo info = workspace.getResourceInfo(pathInTree, true, false);
      result.setOldInfo(info);
      result.setNewInfo(info);
    } else {
      result.setOldInfo((ResourceInfo) compare.getOldData());
      result.setNewInfo((ResourceInfo) compare.getNewData());
    }
    // recurse over the children
    IPath[] childKeys = delta.getChildren(pathInDelta);
    int numChildren = childKeys.length;
    if (numChildren == 0) {
View Full Code Here

Examples of org.jboss.dna.jcr.xpath.XPath.NodeComparison

        if (operator != null) {
            return new Comparison(result, operator, parseRangeExpr(tokens));
        }
        NodeComparisonOperator nodeComp = parseNodeComp(tokens);
        if (nodeComp != null) {
            return new NodeComparison(result, nodeComp, parseRangeExpr(tokens));
        }
        return result;
    }
View Full Code Here

Examples of org.modeshape.jcr.query.xpath.XPath.NodeComparison

        if (operator != null) {
            return new Comparison(result, operator, parseRangeExpr(tokens));
        }
        NodeComparisonOperator nodeComp = parseNodeComp(tokens);
        if (nodeComp != null) {
            return new NodeComparison(result, nodeComp, parseRangeExpr(tokens));
        }
        return result;
    }
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.