Examples of denotesCurrent()


Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

        NodeEntry targetEntry = null;
        try {
            Path rp = session.getPathResolver().getQPath(relPath);
            // shortcut
            if (rp.getLength() == 1) {
                if (rp.denotesCurrent()) {
                    targetEntry = getNodeEntry();
                } else if (rp.denotesParent()) {
                    targetEntry = getNodeEntry().getParent();
                } else {
                    // try to get child entry + force loading of not known yet
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

        NodeEntry targetEntry = null;
        try {
            Path rp = session.getPathResolver().getQPath(relPath);
            // shortcut
            if (rp.getLength() == 1) {
                if (rp.denotesCurrent()) {
                    targetEntry = getNodeEntry();
                } else if (rp.denotesParent()) {
                    targetEntry = getNodeEntry().getParent();
                } else {
                    // try to get child entry + force loading of not known yet
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

                            || src1 == left && JoinType.LEFT == joinType
                            || src1 == right && JoinType.RIGHT == joinType) {
                        outer = src1;
                        outerIdx = getIndex(outer, node.getSelector1QName());
                        Path selector2Path = node.getSelector2QPath();
                        if (selector2Path == null || (selector2Path.getLength() == 1 && selector2Path.denotesCurrent())) {
                            c = new SameNodeJoin(src2, node.getSelector2QName(), reader);
                        } else {
                            c = new DescendantPathNodeJoin(src2, node.getSelector2QName(),
                                    node.getSelector2QPath(), hmgr);
                        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

                        }
                    } else {
                        outer = src2;
                        outerIdx = getIndex(outer, node.getSelector2QName());
                        Path selector2Path = node.getSelector2QPath();
                        if (selector2Path == null || (selector2Path.getLength() == 1 && selector2Path.denotesCurrent())) {
                            c = new SameNodeJoin(src1, node.getSelector1QName(), reader);
                        } else {
                            c = new AncestorPathNodeJoin(src1, node.getSelector1QName(),
                                    node.getSelector2QPath(), hmgr);
                        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

        NodeEntry targetEntry = null;
        try {
            Path rp = session.getPathResolver().getQPath(relPath);
            // shortcut
            if (rp.getLength() == 1) {
                if (rp.denotesCurrent()) {
                    targetEntry = getNodeEntry();
                } else if (rp.denotesParent()) {
                    targetEntry = getNodeEntry().getParent();
                } else {
                    // try to get child entry + force loading of not known yet
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

    public final boolean equals(Object that) {
        if (this == that) {
            return true;
        } else if (that instanceof Path) {
            Path path = (Path) that;
            return path.denotesCurrent() && super.equals(that);
        } else {
            return false;
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

        } else {
            // parent is guaranteed to be !null
            Path normalized = parent.getNormalizedPath();
            if (normalized.denotesParent()) {
                return new ParentPath(normalized); // special case: ../..
            } else if (normalized.denotesCurrent()) {
                return new ParentPath(null); // special case: ./..
            } else {
                return normalized.getAncestor(1);
            }
        }
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.denotesCurrent()

        if (isNormalized()) {
            return this;
        } else {
            // parent is guaranteed to be !null
            Path normalized = parent.getNormalizedPath();
            if (normalized.denotesCurrent()) {
                normalized = null; // special case: ./a
            }
            return new NamePath(normalized, name, index);
        }
    }
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.Element.denotesCurrent()

        assertEquals("{}test[123]", element.getString());
    }

    public void testParentElement() {
        Element element = ParentPath.PARENT_PATH;
        assertFalse(element.denotesCurrent());
        assertFalse(element.denotesIdentifier());
        assertFalse(element.denotesName());
        assertTrue(element.denotesParent());
        assertFalse(element.denotesRoot());
        assertEquals(createName(".."), element.getName());
View Full Code Here

Examples of org.apache.jackrabbit.spi.Path.Element.denotesCurrent()

        assertEquals("..", element.getString());
    }

    public void testRootElement() {
        Element element = RootPath.ROOT_PATH;
        assertFalse(element.denotesCurrent());
        assertFalse(element.denotesIdentifier());
        assertFalse(element.denotesName());
        assertFalse(element.denotesParent());
        assertTrue(element.denotesRoot());
        assertEquals(createName(""), element.getName());
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.