/** * Returns the full path (starting at the root) of this node * * @return */ public Path getFullPath() { if (parent == null) { return Paths.get(""); } else { return Paths.get(parent.getFullPath().toString(), getName()); } }