KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hammurapi > inspectors > metrics > JspXref


1 /*
2  * Created on May 30, 2004
3  *
4  * TODO To change the template for this generated file go to
5  * Window - Preferences - Java - Code Style - Code Templates
6  */

7 package org.hammurapi.inspectors.metrics;
8
9 import org.w3c.dom.Document JavaDoc;
10 import org.w3c.dom.Element JavaDoc;
11
12 /**
13  * @author MUCBJ0
14  *
15  * TODO To change the template for this generated type comment go to
16  * Window - Preferences - Java - Code Style - Code Templates
17  */

18 public class JspXref {
19     //!! could/should be SourceMarker
20
public String JavaDoc base = "NA";
21
22     public String JavaDoc invocation = "NA";
23     //!! could/should be ref JspDescriptor
24
public String JavaDoc ref = "NA";
25
26     public JspXref ( JspDescriptor jspD, String JavaDoc invoc, String JavaDoc _ref){
27         super();
28         base = jspD.codeMetric.source_url ;
29         invocation = invoc;
30         ref = _ref;
31     }
32     
33     public Element JavaDoc toDom(Document JavaDoc document){
34
35         Element JavaDoc ret=document.createElement("JspXref");
36         ret.setAttribute("base", base);
37         ret.setAttribute("invocation", this.invocation);
38         ret.setAttribute("ref", this.ref);
39         return ret;
40     }
41 }
42
Popular Tags