Lines Matching defs:path

130      * Our absolute path name.
762 * that the node has not been removed. If <tt>path</tt> is <tt>""</tt>,
763 * this node is returned; if <tt>path</tt> is <tt>"/"</tt>, this node's
764 * root is returned. If the first character in <tt>path</tt> is
765 * not <tt>'/'</tt>, the implementation breaks <tt>path</tt> into
766 * tokens and recursively traverses the path from this node to the
767 * named node, "consuming" a name and a slash from <tt>path</tt> at
784 * <p> If the first character of <tt>path</tt> is <tt>'/'</tt>
785 * (indicating an absolute path name) this preference node's
786 * lock is dropped prior to breaking <tt>path</tt> into tokens, and
787 * this method recursively traverses the path starting from the root
789 * identical to the one described for relative path names. Dropping
794 * @param path the path name of the preference node to return.
796 * @throws IllegalArgumentException if the path name is invalid (i.e.,
802 public Preferences node(String path) {
806 if (path.equals(""))
808 if (path.equals("/"))
810 if (path.charAt(0) != '/')
811 return node(new StringTokenizer(path, "/", true));
814 // Absolute path. Note that we've dropped our lock to avoid deadlock
815 return root.node(new StringTokenizer(path.substring(1), "/", true));
821 private Preferences node(StringTokenizer path) {
822 String token = path.nextToken();
824 throw new IllegalArgumentException("Consecutive slashes in path");
836 if (!path.hasMoreTokens())
838 path.nextToken(); // Consume slash
839 if (!path.hasMoreTokens())
841 return child.node(path);
853 * @param path the path name of the node whose existence is to be checked.
858 * @throws IllegalArgumentException if the path name is invalid (i.e.,
865 public boolean nodeExists(String path)
869 if (path.equals(""))
873 if (path.equals("/"))
875 if (path.charAt(0) != '/')
876 return nodeExists(new StringTokenizer(path, "/", true));
879 // Absolute path. Note that we've dropped our lock to avoid deadlock
880 return root.nodeExists(new StringTokenizer(path.substring(1), "/",
887 private boolean nodeExists(StringTokenizer path)
890 String token = path.nextToken();
892 throw new IllegalArgumentException("Consecutive slashes in path");
899 if (!path.hasMoreTokens())
901 path.nextToken(); // Consume slash
902 if (!path.hasMoreTokens())
904 return child.nodeExists(path);
950 * Called with locks on all nodes on path from parent of "removal root"
997 * <p>This implementation merely returns the absolute path name that
1002 * @return this preference node's absolute path name.
1295 * Returns the absolute path name of this preferences node.