net.sourceforge.cruisecontrol.util
Class NamedXPathAwareChild
java.lang.Object
net.sourceforge.cruisecontrol.util.XPathAwareChild
net.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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NamedXPathAwareChild
public NamedXPathAwareChild()
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