1 7 package org.hammurapi.inspectors.metrics; 8 9 import org.hammurapi.HammurapiException; 10 import org.w3c.dom.Element ; 11 12 18 public class ArchitecturalComplexityMapping { 19 String name = "not defined"; 20 int rate = 1; 21 22 23 public ArchitecturalComplexityMapping(Element holder) throws HammurapiException { 24 super(); 25 try { 26 27 28 name = holder.getAttribute("name") ; 29 rate = Integer.valueOf(holder.getAttribute("rate")).intValue() ; 30 31 }catch (Exception e){ 32 throw new HammurapiException(e); 33 } 34 } 35 36 39 public String getName() { 40 return name; 41 } 42 45 public void setName(String name) { 46 this.name = name; 47 } 48 51 public int getRate() { 52 return rate; 53 } 54 57 public void setRate(int rate) { 58 this.rate = rate; 59 } 60 } 61 | Popular Tags |