children = new ArrayList(); this.relativePath = relativePath; this.parent = parent; if (parent != null) parent.addChild(this);
children.add(path);
return children;
return parent;
return relativePath;
this.parent = parent; parent.addChild(this);