net.sourceforge.cruisecontrol.util
Class NamedXPathAwareChild

java.lang.Object
  extended bynet.sourceforge.cruisecontrol.util.XPathAwareChild
      extended bynet.sourceforge.cruisecontrol.util.NamedXPathAwareChild

public class NamedXPathAwareChild
extends XPathAwareChild

Just like XPathAwareChild, but has an additional "name" attribute associated with it. This is useful when you want repeating children, e.g.

 <myfavoriteplugin>
     <field name="name" value="Tony"/>
     <field name="address" value="Your Street, USA"/>
     <field name="unittestcount" xpathExpression="sum(cruisecontrol/testsuite/@tests)"/>
 </myfavoriteplugin>
 
For example usage, see SfeeTrackerPublisher.createField().

Author:
Paul Julius, Kent Spillner

Constructor Summary
NamedXPathAwareChild()
           
 
Method Summary
 java.lang.String getName()
           
 void setName(java.lang.String name)
           
 void validate()
          Must be called after setting all the instance values and before calling lookupValue.
 
Methods inherited from class net.sourceforge.cruisecontrol.util.XPathAwareChild
getFixedValue, getXpathExpression, lookupValue, markDirty, setInputStream, setValue, setXMLFile, setXPathExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamedXPathAwareChild

public NamedXPathAwareChild()
Method Detail

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

validate

public void validate()
              throws CruiseControlException
Description copied from class: XPathAwareChild
Must be called after setting all the instance values and before calling lookupValue.

Overrides:
validate in class XPathAwareChild
Throws:
CruiseControlException