Example #1
0
  public void setAll(Transferable other) {

    if (!(other instanceof OrgRelation)) {
      throw new IllegalArgumentException("Parameter is not an OrgRelation.");
    } else {
      OrgRelation or = (OrgRelation) other;
      relationType = or.getRelationType();
      orgID = or.getOrgID();
      forcePackageID = or.getForcePackageId();
      oplanUID = or.getOplanUID();
      timeSpan = or.getTimeSpan();
      otherOrgID = or.getOtherOrgId();
      role = or.getAssignedRole();
      setUID(or.getUID());
      setOwner(or.getOwner());
    } // else set everything
  } // setAll