Examples of makeParentPath()


Examples of org.exoplatform.services.jcr.impl.core.JCRPath.makeParentPath()

   {
      JCRPath path = factory.parseAbsPath("/jcr:node/node1[2]/exo:node2");
      JCRPath parent = path.makeParentPath();
      assertEquals("/jcr:node/node1[2]", parent.getAsString(false));
      assertTrue(path.isDescendantOf(parent, true));
      assertTrue(path.isDescendantOf(parent.makeParentPath(), false));

      assertEquals("/jcr:node/node1[2]/exo:node2", factory.createJCRPath(parent, "exo:node2").getAsString(false));
      assertEquals("/jcr:node/node1[2]/exo:node2/node3", factory.createJCRPath(parent, "exo:node2/node3").getAsString(
         false));
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.