Beispiel #1
0
 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;
 }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 public boolean hasItem() {
   if (this.item == null) return false;
   for (LinkageItemComponent item : this.item) if (!item.isEmpty()) return true;
   return false;
 }