edu.northwestern.at.wordhoard.tools.cm
Class HeaderRulePattern

java.lang.Object
  extended by edu.northwestern.at.wordhoard.tools.cm.HeaderRulePattern

public class HeaderRulePattern
extends java.lang.Object

A header rule pattern.


Constructor Summary
HeaderRulePattern(org.w3c.dom.Element el)
          Creates a new header rule pattern.
 
Method Summary
 boolean applyRule(java.lang.String str, java.util.Map headerValueMap)
          Applies the rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderRulePattern

public HeaderRulePattern(org.w3c.dom.Element el)
Creates a new header rule pattern.

Parameters:
el - HeaderRulePattern element.
Method Detail

applyRule

public boolean applyRule(java.lang.String str,
                         java.util.Map headerValueMap)
Applies the rule.

Parameters:
str - String to be matched.
headerValueMap - Header value map. Maps the names of WordHoard header items to their values.
Returns:
True if the pattern matched.