/** * Rename this Entry. This operation will fail if: * * There is a sibling Entry (i.e., an Entry whose parent is the * same as this Entry's parent) with the same name. * * This Entry is the root of the Entry tree. Its name is dictated * by the Filesystem and many not be changed. * * @param newName the new name for this Entry * * @return true if the operation succeeded, else false */ public boolean renameTo(final String newName) { boolean rval = false; if (!isRoot()) { rval = _parent.changeName(getName(), newName); } return rval; }
/** * Rename this Entry. This operation will fail if: * * There is a sibling Entry (i.e., an Entry whose parent is the * same as this Entry's parent) with the same name. * * This Entry is the root of the Entry tree. Its name is dictated * by the Filesystem and many not be changed. * * @param newName the new name for this Entry * * @return true if the operation succeeded, else false */ public boolean renameTo(final String newName) { boolean rval = false; if (!isRoot()) { rval = _parent.changeName(getName(), newName); } return rval; }
/** * Rename this Entry. This operation will fail if: * * There is a sibling Entry (i.e., an Entry whose parent is the * same as this Entry's parent) with the same name. * * This Entry is the root of the Entry tree. Its name is dictated * by the Filesystem and many not be changed. * * @param newName the new name for this Entry * * @return true if the operation succeeded, else false */ public boolean renameTo(final String newName) { boolean rval = false; if (!isRoot()) { rval = _parent.changeName(getName(), newName); } return rval; }
/** * Rename this Entry. This operation will fail if: * * There is a sibling Entry (i.e., an Entry whose parent is the * same as this Entry's parent) with the same name. * * This Entry is the root of the Entry tree. Its name is dictated * by the Filesystem and many not be changed. * * @param newName the new name for this Entry * * @return true if the operation succeeded, else false */ public boolean renameTo(final String newName) { boolean rval = false; if (!isRoot()) { rval = _parent.changeName(getName(), newName); } return rval; }