示例#1
0
 public boolean appendTag(Tag t) {
   if (this.isSubTag(t)) {
     this.count++;
     this.size += t.getSize() - t.getNamespaceSize();
     return true;
   }
   return false;
 }
示例#2
0
 public boolean isSubTag(Tag o) {
   return this.getObject().isEquals(o.getObject())
       && this.name.equals(o.getName())
       && this.namespace.equals(o.getNamespace());
 }