01: /*
02: * Created on May 30, 2004
03: *
04: * TODO To change the template for this generated file go to
05: * Window - Preferences - Java - Code Style - Code Templates
06: */
07: package org.hammurapi.inspectors.metrics;
08:
09: import org.w3c.dom.Document;
10: import org.w3c.dom.Element;
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 base = "NA";
21:
22: public String invocation = "NA";
23: //!! could/should be ref JspDescriptor
24: public String ref = "NA";
25:
26: public JspXref(JspDescriptor jspD, String invoc, String _ref) {
27: super ();
28: base = jspD.codeMetric.source_url;
29: invocation = invoc;
30: ref = _ref;
31: }
32:
33: public Element toDom(Document document) {
34:
35: Element 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: }
|