public LinkageItemComponent copy() { LinkageItemComponent dst = new LinkageItemComponent(); copyValues(dst); dst.type = type == null ? null : type.copy(); dst.resource = resource == null ? null : resource.copy(); return dst; }
public Linkage copy() { Linkage dst = new Linkage(); copyValues(dst); dst.author = author == null ? null : author.copy(); if (item != null) { dst.item = new ArrayList<LinkageItemComponent>(); for (LinkageItemComponent i : item) dst.item.add(i.copy()); } ; return dst; }
public boolean hasItem() { if (this.item == null) return false; for (LinkageItemComponent item : this.item) if (!item.isEmpty()) return true; return false; }