public boolean isCanonical() { return parent != null && parent.isCanonical(); }
public boolean isCanonical() { return parent != null && parent.isCanonical(); }
/** * {@inheritDoc} */ public final ItemId resolvePath(Path path) throws RepositoryException { // shortcut if (path.denotesRoot()) { return rootNodeId; } if (!path.isCanonical()) { String msg = "path is not canonical"; log.debug(msg); throw new RepositoryException(msg); } return resolvePath(path, RETURN_ANY); }
/** * {@inheritDoc} */ public final ItemId resolvePath(Path path) throws RepositoryException { // shortcut if (path.denotesRoot()) { return rootNodeId; } if (!path.isCanonical()) { String msg = "path is not canonical"; log.debug(msg); throw new RepositoryException(msg); } return resolvePath(path, RETURN_ANY); }
/** * @see HierarchyManager#getNodeEntry(Path) */ public NodeEntry getNodeEntry(Path qPath) throws PathNotFoundException, RepositoryException { NodeEntry rootEntry = getRootEntry(); // shortcut if (qPath.denotesRoot()) { return rootEntry; } if (!qPath.isCanonical()) { String msg = "Path is not canonical"; log.debug(msg); throw new RepositoryException(msg); } return rootEntry.getDeepNodeEntry(qPath); }
/** * @see HierarchyManager#getNodeEntry(Path) */ public NodeEntry getNodeEntry(Path qPath) throws PathNotFoundException, RepositoryException { NodeEntry rootEntry = getRootEntry(); // shortcut if (qPath.denotesRoot()) { return rootEntry; } if (!qPath.isCanonical()) { String msg = "Path is not canonical"; log.debug(msg); throw new RepositoryException(msg); } return rootEntry.getDeepNodeEntry(qPath); }
/** * @see HierarchyManager#getPropertyEntry(Path) */ public PropertyEntry getPropertyEntry(Path qPath) throws PathNotFoundException, RepositoryException { // shortcut if (qPath.denotesRoot()) { throw new PathNotFoundException("The root path never points to a Property."); } if (!qPath.isCanonical()) { String msg = "Path is not canonical"; log.debug(msg); throw new RepositoryException(msg); } return getRootEntry().getDeepPropertyEntry(qPath); }
/** * @see HierarchyManager#getPropertyEntry(Path) */ public PropertyEntry getPropertyEntry(Path qPath) throws PathNotFoundException, RepositoryException { // shortcut if (qPath.denotesRoot()) { throw new PathNotFoundException("The root path never points to a Property."); } if (!qPath.isCanonical()) { String msg = "Path is not canonical"; log.debug(msg); throw new RepositoryException(msg); } return getRootEntry().getDeepPropertyEntry(qPath); }