Exemple #1
0
  /** @param d not null */
  protected boolean match(Dependency d) {
    boolean r = true;

    /* match if not attributes given */
    if (hasattribs() == false) return r;

    if (r && this.alias != null) r = match(this.alias, d.getAlias());

    if (r && this.scope != null) {
      String[] scope;
      scope = d.getScope();
      r = false;
      for (int i = 0; !r && i < scope.length; ++i) r = match(this.scope, scope[i]);
    }

    if (r && this.bname != null) r = match(this.bname, d.basename());

    if (r && this.type != null) r = match(this.type, d.getType());

    if (r && this.gid != null) r = match(this.gid, d.getGroupId());

    if (r && this.path != null) r = match(this.path, d.m1path());

    if (r && this.version != null) r = match(this.version, d.getVersion());

    return r;
  }