public boolean hasAttribute(String attName){
  if (attName == null)   return false;
  for (  String key : attributes.keySet()) {
    if (key.equalsIgnoreCase(attName))     return true;
  }
  return false;
}

public boolean hasAttribute ( String attName ) { if ( attName == null ) return false ; for ( String key : attributes . keySet ( ) ) { if ( key . equalsIgnoreCase ( attName ) ) return true ; } return false ; }
checks existence of specified attribute .
