1 29 package net.sourceforge.groboutils.pmti.v1.defimpl; 30 31 import net.sourceforge.groboutils.pmti.v1.IIssueState; 32 import net.sourceforge.groboutils.pmti.v1.IAttributeSet; 33 34 35 36 47 public class DefaultIssueState implements IIssueState 48 { 49 private String name; 50 private String desc; 51 private boolean open; 52 private IAttributeSet attribs; 53 54 public DefaultIssueState( String n, String d, boolean o, IAttributeSet s ) 55 { 56 if (n == null || d == null || s == null) 57 { 58 throw new IllegalArgumentException ("no null arguments"); 59 } 60 61 this.name = n; 62 this.desc = d; 63 this.open = o; 64 this.attribs = s; 65 } 66 67 68 73 public String getName() 74 { 75 return this.name; 76 } 77 78 79 84 public String getDescription() 85 { 86 return this.desc; 87 } 88 89 90 102 public boolean isOpen() 103 { 104 return this.open; 105 } 106 107 108 120 public boolean isClosed() 121 { 122 return !isOpen(); 123 } 124 125 126 137 public IAttributeSet getAttributes() 138 { 139 return this.attribs; 140 } 141 } 142 143 | Popular Tags |