예제 #1
0
 /**
  * サービスドキュメントの比較.
  *
  * @param obj オブジェクト
  * @return equal trueまたはfalseを返却する
  */
 public boolean isEqualTo(Object obj) {
   if (!workspace.isEqualTo(((Service) obj).workspace)) {
     Edmx.printResult(this);
     return false;
   }
   return true;
 }
예제 #2
0
  @Override
  public boolean equals(Object obj) {
    Association assoc = (Association) obj;
    if (!name.equals(assoc.name)) {
      Edmx.printResult(this, "Name", assoc.name, name);
      return false;
    }

    if (ends.size() != assoc.ends.size()) {
      Edmx.printResult(this, "End", assoc.ends.toString(), ends.toString());
      return false;
    }
    for (End end : assoc.ends) {
      if (!end.equals(endMap.get(end.role))) {
        Edmx.printResult(this, "End", end.toString(), endMap.get(end.role).toString());
        return false;
      }
    }

    return true;
  }