public boolean checkProperty(T prop,Object value){
  Object attribute=getProperty(prop);
  return (attribute != null && attribute.equals(value));
}

public boolean checkProperty ( T prop , Object value ) { Object attribute = getProperty ( prop ) ; return ( attribute != null && attribute . equals ( value ) ) ; }
check whether or not the given warningproperty has the given attribute value .
