示例#1
0
 public void setParent(Feed parent) {
   this.parent = parent;
   setParentId(parent == null ? null : parent.getId());
 }
示例#2
0
 public String getPath() {
   return parent == null ? name : parent.getPath() + "/" + name;
 }
示例#3
0
 public void addChild(Feed feed) {
   if (children == null) children = new ArrayList();
   feed.setParent(this);
   children.add(feed);
 }