|
|||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
NoOpTagHandler.java | - | 100% | 100% | 100% |
|
1 |
/*
|
|
2 |
* Created on Oct 24, 2003
|
|
3 |
*
|
|
4 |
* To change the template for this generated file go to
|
|
5 |
* Window>Preferences>Java>Code Generation>Code and Comments
|
|
6 |
*/
|
|
7 |
package junit.extensions.xml.elements;
|
|
8 |
|
|
9 |
import junit.extensions.xml.IXMLTestCase;
|
|
10 |
|
|
11 |
import org.w3c.dom.Element;
|
|
12 |
|
|
13 |
|
|
14 |
/**
|
|
15 |
* Provide a mechanism for turning off specific tag
|
|
16 |
* handlers by changing the tag handler assignment.
|
|
17 |
*
|
|
18 |
*
|
|
19 |
* <H3>Tag Name</H3>
|
|
20 |
* noop
|
|
21 |
* <H3>Examples</H3>
|
|
22 |
* Simple usage
|
|
23 |
* <pre>
|
|
24 |
* <noop/>
|
|
25 |
* </pre>
|
|
26 |
* Used as a tag hander to ignore user tags.
|
|
27 |
* <pre>
|
|
28 |
* <taghandlers action="add" tagname="mytag" classname="junit.extensions.xml.elements.NoOpTagHandler/>
|
|
29 |
* </pre>
|
|
30 |
* @author Kevin Wilson
|
|
31 |
*/
|
|
32 |
public class NoOpTagHandler extends AbstractTagHandler { |
|
33 |
/**
|
|
34 |
* Constructor.
|
|
35 |
* @param element Element to be processed by the tag handler.
|
|
36 |
* @param testcase parent test case.
|
|
37 |
*/
|
|
38 | 4 |
public NoOpTagHandler(final Element element, final IXMLTestCase testcase) {
|
39 | 4 |
super(element, testcase);
|
40 |
} |
|
41 |
|
|
42 |
/**
|
|
43 |
* Handle the XML processing of the tag 'noop'.
|
|
44 |
*/
|
|
45 | 1 |
public void processElement() { |
46 |
} |
|
47 |
} |
|
48 |
|
|