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