if (o == this) return true;
if (o == null) return false;
if (!(o instanceof NotationDeclaration2)) return false;
NotationDeclaration2 other = (NotationDeclaration2) o;
// should we consider Base URI here?
return stringsWithNullsEqual(getName(), other.getName())
&& stringsWithNullsEqual(getPublicId(), other.getPublicId())
&& stringsWithNullsEqual(getSystemId(), other.getSystemId())
&& stringsWithNullsEqual(getBaseURI(), other.getBaseURI())
;
}