return ((Attribute) other).name.equals(name);
Attribute a = (Attribute) other; if (namespaceAware) { if (!a.localName.equals(localName)) return false; String auri = getNamespaceURI(a.prefix); String uri = getNamespaceURI(prefix); if (uri == null && (auri == null || (input.xml11 && "".equals(auri)))) return true; if (uri != null) { if ("".equals(uri) && input.xml11 && "".equals(auri)) return true; return uri.equals(auri); } return false; } else return a.name.equals(name);
    public boolean equals(Object other)    {      if (other instanceof Attribute)        {          return ((Attribute) other).name.equals(name);        }      return false;    }