public boolean equals()

in nbxml/src/main/java/org/apache/vysper/xml/sax/impl/Attribute.java [66:100]


    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Attribute other = (Attribute) obj;

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

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

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

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

        return true;
    }