1 8 9 package net.sourceforge.chaperon.model; 10 11 17 public class Violation 18 { 19 private String message; 20 private String location = "unknown"; 21 22 28 public Violation(String message, String location) 29 { 30 this.message = message; 31 if (location!=null) 32 this.location = location; 33 } 34 35 40 public String getMessage() 41 { 42 return message; 43 } 44 45 50 public String getLocation() 51 { 52 return location; 53 } 54 55 60 public String toString() 61 { 62 return message+"["+location+"]"; 63 } 64 } 65 | Popular Tags |