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

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

public class HeaderExtractionRule
extends java.lang.Object

A header extraction rule.


Constructor Summary
HeaderExtractionRule(org.w3c.dom.Element el)
          Creates a new header extraction rule.
 
Method Summary
 void applyRule(java.util.regex.Matcher matcher, 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

HeaderExtractionRule

public HeaderExtractionRule(org.w3c.dom.Element el)
Creates a new header extraction rule.

Parameters:
el - Extract element.
Method Detail

applyRule

public void applyRule(java.util.regex.Matcher matcher,
                      java.util.Map headerValueMap)
Applies the rule.

Parameters:
matcher - Matcher.
headerValueMap - Header value map. Maps the names of WordHoard header items to their values.