String () { if (myPath == null) { final StringBuilder sb = new StringBuilder(); FileElement element = this; while (element != null) { if (element.myParent != null || !element.myName.equals(File.separator)) { sb.insert(0, element.myName); } element = element.myParent; if (element != null) { sb.insert(0, File.separator); } } myPath = sb.toString(); } return myPath; }