Esempio n. 1
0
  public boolean equals(Object ob) {
    if (ob == this) return true;
    if (!(ob instanceof DTDEntity)) return false;

    DTDEntity other = (DTDEntity) ob;

    if (name == null) {
      if (other.name != null) return false;
    } else {
      if (!name.equals(other.name)) return false;
    }

    if (isParsed != other.isParsed) return false;

    if (value == null) {
      if (other.value != null) return false;
    } else {
      if (!value.equals(other.value)) return false;
    }

    if (externalID == null) {
      if (other.externalID != null) return false;
    } else {
      if (!externalID.equals(other.externalID)) return false;
    }

    if (ndata == null) {
      if (other.ndata != null) return false;
    } else {
      if (!ndata.equals(other.ndata)) return false;
    }

    return true;
  }