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

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

public class HeaderRule
extends java.lang.Object

A header rule.


Constructor Summary
HeaderRule(org.w3c.dom.Element el)
          Creates a new header rule.
 
Method Summary
 void applyAuthorRule(org.w3c.dom.Node root, java.util.List authors)
          Applies an author rule.
 void applyRule(org.w3c.dom.Node root, 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

HeaderRule

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

Parameters:
el - HeaderRule element.
Method Detail

applyRule

public void applyRule(org.w3c.dom.Node root,
                      java.util.Map headerValueMap)
Applies the rule.

Parameters:
root - Root node.
headerValueMap - Header value map. Maps the names of WordHoard header items to their values.

applyAuthorRule

public void applyAuthorRule(org.w3c.dom.Node root,
                            java.util.List authors)
Applies an author rule.

Parameters:
root - Root node.
authors - Author list.