1 23 package org.hammurapi.util; 24 25 import java.util.StringTokenizer ; 26 27 import com.pavelvlasov.util.Visitable; 28 import com.pavelvlasov.util.Visitor; 29 30 34 public class InspectorModel implements Visitable { 35 36 public InspectorModel(String line) { 37 StringTokenizer st=new StringTokenizer (line, "\t"); 38 name=st.nextToken(); 39 className=st.nextToken(); 40 type=st.nextToken(); 41 interfaceName=st.nextToken(); 42 severity=st.nextToken(); 43 parameterizable="+".equals(st.nextToken()); 44 description=st.nextToken(); 45 } 46 47 public boolean accept(Visitor visitor) { 48 return visitor.visit(this); 49 } 50 51 private String name; 52 private String className; 53 private String type; 54 private String interfaceName; 55 private String severity; 56 private boolean parameterizable; 57 private String description; 58 59 public String getClassName() { 60 return className; 61 } 62 63 public String getDescription() { 64 return description; 65 } 66 67 public String getInterfaceName() { 68 return interfaceName; 69 } 70 71 public String getName() { 72 return name; 73 } 74 75 public boolean isParameterizable() { 76 return parameterizable; 77 } 78 79 public String getSeverity() { 80 return severity; 81 } 82 83 public String getType() { 84 return type; 85 } 86 87 } 88 | Popular Tags |