This implementation is very similar to {@link #node(String)}, except that {@link #getChild(String)} is used instead of {@link #childSpi(String)}. @param path the path name of the node whose existence is to be checked. @return true if the specified node exists. @throws BackingStoreException if this operation cannot be completeddue to a failure in the backing store, or inability to communicate with it. @throws IllegalArgumentException if the path name is invalid (i.e.,it contains multiple consecutive slash characters, or ends with a slash character and is more than one character long). @throws IllegalStateException if this node (or an ancestor) has beenremoved with the {@link #removeNode()} method andpathname is not the empty string ("").
If this node (or an ancestor) has already been removed with the {@link #removeNode()} method, it is legal to invoke this method,but only with the path name ""; the invocation will return false. Thus, the idiom p.nodeExists("") may be used to test whether p has been removed. @param pathName the path name of the node whose existenceis to be checked. @return true if the specified node exists. @throws BackingStoreException if this operation cannot be completeddue to a failure in the backing store, or inability to communicate with it. @throws IllegalArgumentException if the path name is invalid (i.e.,it contains multiple consecutive slash characters, or ends with a slash character and is more than one character long). @throws NullPointerException if path name is null. @throws IllegalStateException if this node (or an ancestor) has beenremoved with the {@link #removeNode()} method andpathName is not the empty string ("").
If this node (or an ancestor) has already been removed with the {@link #removeNode()} method, it is legal to invoke this method,but only with the pathname {@code ""}; the invocation will return {@code false}. Thus, the idiom {@code p.nodeExists("")} may be used totest whether {@code p} has been removed. @param pathName the path name of the node whose existence is to bechecked. @return true if the specified node exists. @throws BackingStoreException if this operation cannot be completed dueto a failure in the backing store, or inability to communicate with it. @throws IllegalStateException if this node (or an ancestor) has beenremoved with the {@link #removeNode()} method and{@code pathname} is not the empty string ({@code ""}). @throws IllegalArgumentException if the path name is invalid (i.e., itcontains multiple consecutive slash characters, or ends with a slash character and is more than one character long).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|