public boolean containsAttribute(Object name,Object value){
  return value.equals(getAttribute(name));
}

public boolean containsAttribute ( Object name , Object value ) { return value . equals ( getAttribute ( name ) ) ; }
checks whether a given attribute name / value is defined .
