Clover coverage report - XJavaDoc - 1.1 Coverage timestamp: Sun Oct 3 2004 19:56:54 BST FRAMES NO FRAMES |
file stats: | LOC: | 47 |  | Methods: | 5
| NCLOC: | 30 |  | Classes: | 1
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover
Source file | Conditionals | Statements | Methods | TOTAL
TagAttributeEquals.java | - | 0% | 0% | 0% |

1 |  |
     /*
2 |  |
      * Copyright (c) 2001-2003 The XDoclet team
3 |  |
      * All rights reserved.
4 |  |
      */
5 |  |
     package xjavadoc.predicates;
6 |  |
7 |  |
     import xjavadoc.*;
8 |  |
9 |  |
     /**
10 |  |
      * Filter that accepts program elements that have a tag attribute equal to a
11 |  |
      * certain value
12 |  |
      *
13 |  |
      * @created   29. juli 2002
14 |  |
      */
15 |  |
     public class TagAttributeEquals extends ProgramElementPredicate
16 |  |
     {
17 |  |
         private String     _tagName;
18 |  |
         private String     _attributeName;
19 |  |
         private String     _attributeValue;
20 |  |
21 | 0 |
         public TagAttributeEquals( String tagName, String attributeName, String attributeValue )
22 |  |
         {
23 | 0 |
             _tagName = tagName;
24 | 0 |
             _attributeName = attributeName;
25 | 0 |
             _attributeValue = attributeValue;
26 |  |
         }
27 |  |
28 | 0 |
         public void setTagName( String tagName )
29 |  |
         {
30 | 0 |
             _tagName = tagName;
31 |  |
         }
32 | 0 |
         public void setAttributeName( String attributeName )
33 |  |
         {
34 | 0 |
             _attributeName = attributeName;
35 |  |
         }
36 | 0 |
         public void setAttributeValue( String attributeValue )
37 |  |
         {
38 | 0 |
             _attributeValue = attributeValue;
39 |  |
         }
40 |  |
41 | 0 |
         protected boolean evaluate( XProgramElement programElement )
42 |  |
         {
43 | 0 |
             return _attributeValue.equals( programElement.getDoc().getTagAttributeValue( _tagName, _attributeName ) );
44 |  |
         }
45 |  |
     }
46 |  |
47 |  |