Coverage Report - org.apache.maven.plugin.issues.Issue
 
Classes in this File Line Coverage Branch Coverage Complexity
Issue
41%
24/59
17%
1/6
0
 
 1  
 package org.apache.maven.plugin.issues;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *   http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.util.ArrayList;
 23  
 import java.util.Date;
 24  
 import java.util.List;
 25  
 
 26  
 /**
 27  
  * An issue.
 28  
  *
 29  
  * @author Dennis Lundberg
 30  
  * @version $Id: org.apache.maven.plugin.issues.Issue.html 816601 2012-05-08 12:50:18Z hboutemy $
 31  
  * @since 2.4
 32  
  */
 33  
 public class Issue
 34  
 {
 35  
     private String assignee;
 36  
 
 37  
     private List<String> comments;
 38  
 
 39  
     private List<String> components;
 40  
 
 41  
     private Date created;
 42  
 
 43  
     private List<String> fixVersions;
 44  
 
 45  
     private String id;
 46  
 
 47  
     private String key;
 48  
 
 49  
     private String link;
 50  
 
 51  
     private String priority;
 52  
 
 53  
     private String reporter;
 54  
 
 55  
     private String resolution;
 56  
 
 57  
     private String status;
 58  
 
 59  
     private String summary;
 60  
 
 61  
     private String title;
 62  
 
 63  
     private String type;
 64  
 
 65  
     private Date updated;
 66  
 
 67  
     private String version;
 68  
 
 69  
     public Issue()
 70  7
     {
 71  7
     }
 72  
 
 73  
     public String getAssignee()
 74  
     {
 75  1
         return assignee;
 76  
     }
 77  
 
 78  
     public void setAssignee( String assignee )
 79  
     {
 80  1
         this.assignee = assignee;
 81  1
     }
 82  
 
 83  
     public List<String> getComments()
 84  
     {
 85  0
         return comments;
 86  
     }
 87  
 
 88  
     public void addComment( String comment )
 89  
     {
 90  0
         if ( comments == null )
 91  
         {
 92  0
             comments = new ArrayList<String>();
 93  
         }
 94  0
         comments.add( comment );
 95  0
     }
 96  
 
 97  
     public List<String> getComponents()
 98  
     {
 99  0
         return components;
 100  
     }
 101  
 
 102  
     public void addComponent( String component )
 103  
     {
 104  0
         if ( components == null )
 105  
         {
 106  0
             components = new ArrayList<String>();
 107  
         }
 108  0
         components.add( component );
 109  0
     }
 110  
 
 111  
     public Date getCreated()
 112  
     {
 113  0
         return created;
 114  
     }
 115  
 
 116  
     public void setCreated( Date created )
 117  
     {
 118  0
         this.created = created;
 119  0
     }
 120  
 
 121  
     public List<String> getFixVersions()
 122  
     {
 123  16
         return fixVersions;
 124  
     }
 125  
 
 126  
     public void addFixVersion( String fixVersion )
 127  
     {
 128  2
         if ( fixVersions == null )
 129  
         {
 130  2
             fixVersions = new ArrayList<String>();
 131  
         }
 132  2
         fixVersions.add( fixVersion );
 133  2
     }
 134  
 
 135  
     public String getId()
 136  
     {
 137  0
         return id;
 138  
     }
 139  
 
 140  
     public void setId( String id )
 141  
     {
 142  2
         this.id = id;
 143  2
     }
 144  
 
 145  
     public String getKey()
 146  
     {
 147  1
         return key;
 148  
     }
 149  
 
 150  
     public void setKey( String key )
 151  
     {
 152  1
         this.key = key;
 153  1
     }
 154  
 
 155  
     public String getLink()
 156  
     {
 157  0
         return link;
 158  
     }
 159  
 
 160  
     public void setLink( String link )
 161  
     {
 162  0
         this.link = link;
 163  0
     }
 164  
 
 165  
     public String getPriority()
 166  
     {
 167  0
         return priority;
 168  
     }
 169  
 
 170  
     public void setPriority( String priority )
 171  
     {
 172  0
         this.priority = priority;
 173  0
     }
 174  
 
 175  
     public String getReporter()
 176  
     {
 177  0
         return reporter;
 178  
     }
 179  
 
 180  
     public void setReporter( String reporter )
 181  
     {
 182  0
         this.reporter = reporter;
 183  0
     }
 184  
 
 185  
     public String getResolution()
 186  
     {
 187  1
         return resolution;
 188  
     }
 189  
 
 190  
     public void setResolution( String resolution )
 191  
     {
 192  1
         this.resolution = resolution;
 193  1
     }
 194  
 
 195  
     public String getStatus()
 196  
     {
 197  1
         return status;
 198  
     }
 199  
 
 200  
     public void setStatus( String status )
 201  
     {
 202  1
         this.status = status;
 203  1
     }
 204  
 
 205  
     public String getSummary()
 206  
     {
 207  1
         return summary;
 208  
     }
 209  
 
 210  
     public void setSummary( String summary )
 211  
     {
 212  1
         this.summary = summary;
 213  1
     }
 214  
 
 215  
     public String getTitle()
 216  
     {
 217  0
         return title;
 218  
     }
 219  
 
 220  
     public void setTitle( String title )
 221  
     {
 222  0
         this.title = title;
 223  0
     }
 224  
 
 225  
     public String getType()
 226  
     {
 227  0
         return type;
 228  
     }
 229  
 
 230  
     public void setType( String type )
 231  
     {
 232  0
         this.type = type;
 233  0
     }
 234  
 
 235  
     public Date getUpdated()
 236  
     {
 237  0
         return updated;
 238  
     }
 239  
 
 240  
     public void setUpdated( Date updated )
 241  
     {
 242  0
         this.updated = updated;
 243  0
     }
 244  
 
 245  
     public String getVersion()
 246  
     {
 247  0
         return version;
 248  
     }
 249  
 
 250  
     public void setVersion( String version )
 251  
     {
 252  0
         this.version = version;
 253  0
     }
 254  
 }