1 29 package net.sourceforge.groboutils.pmti.v1.defimpl; 30 31 32 import net.sourceforge.groboutils.pmti.v1.IIssue; 33 import net.sourceforge.groboutils.pmti.v1.IAttributeSet; 34 import net.sourceforge.groboutils.pmti.v1.IIssueState; 35 import net.sourceforge.groboutils.pmti.v1.ProblemManagerException; 36 37 38 62 public abstract class AbstractIssue implements IIssue 63 { 64 private String id; 65 private String type; 66 private String desc; 67 private IIssueState state; 68 private IAttributeSet attribs; 69 70 71 public AbstractIssue( String i, String t, String d, IIssueState s, 72 IAttributeSet a ) 73 { 74 if (i == null || s == null) 75 { 76 throw new IllegalArgumentException ("no null arguments"); 77 } 78 this.id = i; 79 this.type = t; 80 this.desc = d; 81 this.state = s; 82 this.attribs = a; 83 } 84 85 86 87 92 public String getID() 93 { 94 return this.id; 95 } 96 97 98 110 public String getType() 111 { 112 return this.type; 113 } 114 115 116 124 public String getShortDescription() 125 { 126 return this.desc; 127 } 128 129 130 144 public IIssueState getState() 145 { 146 return this.state; 147 } 148 149 150 158 public IAttributeSet getAttributes() 159 { 160 return this.attribs; 161 } 162 163 164 177 public abstract IIssue reload() 178 throws ProblemManagerException; 179 } 180 181 | Popular Tags |