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

java.lang.Object
  extended by edu.northwestern.at.wordhoard.tools.cm.UseFirstChildRule
All Implemented Interfaces:
WorkPartTitleRule

public class UseFirstChildRule
extends java.lang.Object
implements WorkPartTitleRule

A use first child work part title rule.


Constructor Summary
UseFirstChildRule(org.w3c.dom.Element el)
          Creates a use first child rule.
 
Method Summary
 java.lang.String applyRule(org.w3c.dom.Element el, Rules rules)
          Applies the rule.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UseFirstChildRule

public UseFirstChildRule(org.w3c.dom.Element el)
Creates a use first child rule.

Parameters:
el - UseFirstChild element.
Method Detail

applyRule

public java.lang.String applyRule(org.w3c.dom.Element el,
                                  Rules rules)
Applies the rule.

Specified by:
applyRule in interface WorkPartTitleRule
Parameters:
el - Element.
rules - Rules.
Returns:
Work part title, or null if none could be found.