Determines if the name of the attribute matches the name passed in as a parameter.
public boolean hasName(String name);
Returns True if the attribute name matches the passed-in name; otherwise, returns False.