1 7 package org.hammurapi.inspectors.metrics; 8 9 import org.w3c.dom.Document ; 10 import org.w3c.dom.Element ; 11 12 18 public class JspXref { 19 public String base = "NA"; 21 22 public String invocation = "NA"; 23 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 } 42 | Popular Tags |