Clover coverage report -
Coverage timestamp: Fri Nov 19 2004 13:41:51 PST
file stats: LOC: 82   Methods: 13
NCLOC: 66   Classes: 1
 
 Source file Conditionals Statements Methods TOTAL
EditCommand.java - 86.7% 84.6% 85.7%
coverage coverage
 1    package photospace.web.spring;
 2   
 3    import java.util.*;
 4    import photospace.meta.*;
 5   
 6    public class EditCommand
 7    implements java.io.Serializable
 8    {
 9    private Meta meta;
 10    private String[] paths;
 11    private List metas;
 12    private String rotate;
 13   
 14    private Set sharedKeywords;
 15   
 16  1 public EditCommand(Meta meta)
 17    {
 18  1 this.meta = meta;
 19    }
 20   
 21  14 public boolean isMultiEdit()
 22    {
 23  14 return metas.size() > 1;
 24    }
 25   
 26  9 public Meta getMeta()
 27    {
 28  9 return meta;
 29    }
 30   
 31  6 public String[] getPaths()
 32    {
 33  6 return paths;
 34    }
 35   
 36  1 public void setPaths(String[] paths)
 37    {
 38  1 this.paths = paths;
 39    }
 40   
 41  0 public void setMeta(Meta meta)
 42    {
 43  0 this.meta = meta;
 44    }
 45   
 46  2 public List getMetas()
 47    {
 48  2 return metas;
 49    }
 50   
 51  1 public void setMetas(List metas)
 52    {
 53  1 this.metas = metas;
 54    }
 55   
 56  1 public String getRotate()
 57    {
 58  1 return rotate;
 59    }
 60   
 61  0 public void setRotate(String rotate)
 62    {
 63  0 this.rotate = rotate;
 64    }
 65   
 66  1 public Set getSharedKeywords()
 67    {
 68  1 return sharedKeywords;
 69    }
 70   
 71  1 public void setSharedKeywords(Set sharedKeywords)
 72    {
 73  1 this.sharedKeywords = sharedKeywords;
 74    }
 75   
 76  2 public Set getRemovedKeywords()
 77    {
 78  2 Set removed = new HashSet(sharedKeywords);
 79  2 removed.removeAll(Arrays.asList(meta.getLabels()));
 80  2 return removed;
 81    }
 82    }