Examples of denotesCurrent()


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

        return NameFactoryImpl.getInstance().create(Name.NS_DEFAULT_URI, name);
    }

    public void testCurrentElement() {
        Element element = CurrentPath.CURRENT_PATH;
        assertTrue(element.denotesCurrent());
        assertFalse(element.denotesIdentifier());
        assertFalse(element.denotesName());
        assertFalse(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 testIdentifierElement() {
        Element element = new IdentifierPath("test");
        assertFalse(element.denotesCurrent());
        assertTrue(element.denotesIdentifier());
        assertFalse(element.denotesName());
        assertFalse(element.denotesParent());
        assertFalse(element.denotesRoot());
        assertNull(element.getName());
View Full Code Here

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

    }

    public void testNameElement() {
        Element element =
            new NamePath(null, createName("test"), Path.INDEX_UNDEFINED);
        assertFalse(element.denotesCurrent());
        assertFalse(element.denotesIdentifier());
        assertTrue(element.denotesName());
        assertFalse(element.denotesParent());
        assertFalse(element.denotesRoot());
        assertEquals(createName("test"), element.getName());
View Full Code Here

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

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

    public void testIndexedNameElement() {
        Element element = new NamePath(null, createName("test"), 123);
        assertFalse(element.denotesCurrent());
        assertFalse(element.denotesIdentifier());
        assertTrue(element.denotesName());
        assertFalse(element.denotesParent());
        assertFalse(element.denotesRoot());
        assertEquals(createName("test"), 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.