Changeset 2162 for trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilitySmell.java
- Timestamp:
- 09/07/17 16:15:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/autoquest-core-usability/src/main/java/de/ugoe/cs/autoquest/usability/UsabilitySmell.java
r1918 r2162 15 15 package de.ugoe.cs.autoquest.usability; 16 16 17 import java.io.Serializable; 18 import java.util.Collections; 19 import java.util.LinkedList; 17 20 import java.util.List; 18 21 import java.util.Map; … … 26 29 * @author 2012, last modified by $Author: pharms$ 27 30 */ 28 public class UsabilitySmell { 31 public class UsabilitySmell implements Serializable { 32 33 /** */ 34 private static final long serialVersionUID = 1L; 29 35 30 36 /** */ … … 39 45 /** */ 40 46 private Map<String, Object> descriptionParameters; 47 48 /** */ 49 private List<String> tags; 50 51 /** */ 52 private ManualLabel manualLabel = ManualLabel.UNCHECKED; 41 53 42 54 /** … … 124 136 125 137 /* 138 * 126 139 */ 127 140 public String getBriefDescription() { 128 141 return description.getBriefDescription(); 142 } 143 144 /** 145 * 146 */ 147 public void addTag(String tag) { 148 if (this.tags == null) { 149 this.tags = new LinkedList<>(); 150 } 151 152 if (!this.tags.contains(tag)) { 153 this.tags.add(tag); 154 } 155 } 156 157 /** 158 * 159 */ 160 public void removeTag(String tag) { 161 if (this.tags != null) { 162 this.tags.remove(tag); 163 } 164 } 165 166 /** 167 * @param manualLabel the manualLabel to set 168 */ 169 public void setManualLabel(ManualLabel manualLabel) { 170 this.manualLabel = manualLabel; 171 } 172 173 /** 174 * @return the tags 175 */ 176 public List<String> getTags() { 177 if (tags != null) { 178 return Collections.unmodifiableList(tags); 179 } 180 else { 181 return Collections.emptyList(); 182 } 183 } 184 185 /** 186 * @return the manualLabel 187 */ 188 public ManualLabel getManualLabel() { 189 return manualLabel; 129 190 } 130 191 … … 170 231 } 171 232 233 /** */ 234 public static enum ManualLabel { 235 UNCHECKED, TRUE_POSITIVE, FALSE_POSITIVE; 236 } 172 237 }
Note: See TracChangeset
for help on using the changeset viewer.