src/core/net/sf/basedb/util/overview/Validator.java

Code
Comments
Other
Rev Date Author Line
3033 15 Dec 06 nicklas 1 /**
3033 15 Dec 06 nicklas 2   $Id$
3033 15 Dec 06 nicklas 3
3675 16 Aug 07 jari 4   Copyright (C) 2006 Nicklas Nordborg
3033 15 Dec 06 nicklas 5
3033 15 Dec 06 nicklas 6   This file is part of BASE - BioArray Software Environment.
3033 15 Dec 06 nicklas 7   Available at http://base.thep.lu.se/
3033 15 Dec 06 nicklas 8
3033 15 Dec 06 nicklas 9   BASE is free software; you can redistribute it and/or
3033 15 Dec 06 nicklas 10   modify it under the terms of the GNU General Public License
4479 05 Sep 08 jari 11   as published by the Free Software Foundation; either version 3
3033 15 Dec 06 nicklas 12   of the License, or (at your option) any later version.
3033 15 Dec 06 nicklas 13
3033 15 Dec 06 nicklas 14   BASE is distributed in the hope that it will be useful,
3033 15 Dec 06 nicklas 15   but WITHOUT ANY WARRANTY; without even the implied warranty of
3033 15 Dec 06 nicklas 16   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
3033 15 Dec 06 nicklas 17   GNU General Public License for more details.
3033 15 Dec 06 nicklas 18
3033 15 Dec 06 nicklas 19   You should have received a copy of the GNU General Public License
4515 11 Sep 08 jari 20   along with BASE. If not, see <http://www.gnu.org/licenses/>.
3033 15 Dec 06 nicklas 21 */
3033 15 Dec 06 nicklas 22 package net.sf.basedb.util.overview;
3033 15 Dec 06 nicklas 23
6047 18 Apr 12 nicklas 24 import net.sf.basedb.util.overview.extensions.ValidationRuleAction;
4789 24 Feb 09 nicklas 25 import net.sf.basedb.util.overview.validator.NodeValidator;
4789 24 Feb 09 nicklas 26
3033 15 Dec 06 nicklas 27 /**
3033 15 Dec 06 nicklas 28   Placeholder for a validation rule. An object instance contains a 
3033 15 Dec 06 nicklas 29   name and description of the validation and a default severity level.
3033 15 Dec 06 nicklas 30   <p>
3033 15 Dec 06 nicklas 31   The actual validation takes place in the overview generating code.
4789 24 Feb 09 nicklas 32   See implementations of {@link NodeValidator} interface.
3033 15 Dec 06 nicklas 33   
3033 15 Dec 06 nicklas 34   @author Nicklas
3033 15 Dec 06 nicklas 35   @version 2.2
3033 15 Dec 06 nicklas 36   @base.modified $Date$
3033 15 Dec 06 nicklas 37 */
3033 15 Dec 06 nicklas 38 public class Validator
6047 18 Apr 12 nicklas 39   implements ValidationRuleAction
3033 15 Dec 06 nicklas 40 {
3033 15 Dec 06 nicklas 41
3033 15 Dec 06 nicklas 42   /**
3033 15 Dec 06 nicklas 43     Validator rule that checks for missing protocols. Default severity level
3033 15 Dec 06 nicklas 44     is WARNING.
3033 15 Dec 06 nicklas 45   */
3033 15 Dec 06 nicklas 46   public static final Validator MISSING_PROTOCOL = new Validator(
3033 15 Dec 06 nicklas 47       "missing.protocol", "Missing protocol", 
3033 15 Dec 06 nicklas 48       "Checks if a protocol has been specified for items that can have a protocol",
3033 15 Dec 06 nicklas 49       "Missing protocol", Severity.WARNING
3033 15 Dec 06 nicklas 50     );
3033 15 Dec 06 nicklas 51
3033 15 Dec 06 nicklas 52   /**
3045 20 Dec 06 nicklas 53     Validator rule that checks for denied access to protocols. Default severity level
3045 20 Dec 06 nicklas 54     is WARNING.
3045 20 Dec 06 nicklas 55   */
3045 20 Dec 06 nicklas 56   public static final Validator DENIED_PROTOCOL = new Validator(
3045 20 Dec 06 nicklas 57       "denied.protocol", "Access denied to protocol", 
3045 20 Dec 06 nicklas 58       "Checks if the user is denied access to a protocol",
3045 20 Dec 06 nicklas 59       "Access denied to protocol", Severity.WARNING
3045 20 Dec 06 nicklas 60     );
3045 20 Dec 06 nicklas 61
3045 20 Dec 06 nicklas 62   /**
5807 14 Oct 11 nicklas 63     Validator rule that checks for missing parent derived bioassay. 
5807 14 Oct 11 nicklas 64     Default severity level is WARNING.
5807 14 Oct 11 nicklas 65     @since 3.0
3033 15 Dec 06 nicklas 66   */
5807 14 Oct 11 nicklas 67   public static final Validator MISSING_DERIVEDBIOASSAY = new Validator(
5807 14 Oct 11 nicklas 68       "missing.derivedbioassay", "Missing derived bioassay", 
5807 14 Oct 11 nicklas 69       "Checks if a parent bioassay has been specified for a raw bioassay",
5807 14 Oct 11 nicklas 70       "Missing parent bioassay", Severity.WARNING
3033 15 Dec 06 nicklas 71     );
3033 15 Dec 06 nicklas 72   
3033 15 Dec 06 nicklas 73   /**
5807 14 Oct 11 nicklas 74     Validator rule that checks for denied access to derived bioassay.
5807 14 Oct 11 nicklas 75     Default severity level is WARNING.
5807 14 Oct 11 nicklas 76     @since 3.0
3045 20 Dec 06 nicklas 77   */
5807 14 Oct 11 nicklas 78   public static final Validator DENIED_DERIVEDBIOASSAY = new Validator(
5807 14 Oct 11 nicklas 79       "denied.derivedbioassay", "Access denied to derived bioassay", 
5807 14 Oct 11 nicklas 80       "Checks if the user is denied access to a derived bioassay",
5807 14 Oct 11 nicklas 81       "Access denied to derived bioassay", Severity.WARNING
3045 20 Dec 06 nicklas 82     );
3045 20 Dec 06 nicklas 83   
3045 20 Dec 06 nicklas 84   /**
3859 18 Oct 07 nicklas 85     Validator rule that checks for denied access to platform. 
3859 18 Oct 07 nicklas 86     Default severity level is WARNING.
3859 18 Oct 07 nicklas 87   */
3859 18 Oct 07 nicklas 88   public static final Validator DENIED_PLATFORM = new Validator(
3859 18 Oct 07 nicklas 89       "denied.platform", "Access denied to platform", 
3859 18 Oct 07 nicklas 90       "Checks if the user is denied access to a platform",
3859 18 Oct 07 nicklas 91       "Access denied to platform", Severity.WARNING
3859 18 Oct 07 nicklas 92     );
3859 18 Oct 07 nicklas 93
3859 18 Oct 07 nicklas 94   /**
3859 18 Oct 07 nicklas 95     Validator rule that checks for denied access to (data) files. 
3859 18 Oct 07 nicklas 96     Default severity level is WARNING.
3859 18 Oct 07 nicklas 97   */
3859 18 Oct 07 nicklas 98   public static final Validator DENIED_FILE = new Validator(
3859 18 Oct 07 nicklas 99       "denied.file", "Access denied to file", 
3859 18 Oct 07 nicklas 100       "Checks if the user is denied access to a file",
3859 18 Oct 07 nicklas 101       "Access denied to file", Severity.WARNING
3859 18 Oct 07 nicklas 102     );
3859 18 Oct 07 nicklas 103   
3859 18 Oct 07 nicklas 104   /**
7861 21 Oct 20 nicklas 105     Validator rule that checks for denied access to (data) files. 
7861 21 Oct 20 nicklas 106     Default severity level is WARNING.
7861 21 Oct 20 nicklas 107     @since 3.17
7861 21 Oct 20 nicklas 108   */
7861 21 Oct 20 nicklas 109   public static final Validator MISSING_FILE = new Validator(
7861 21 Oct 20 nicklas 110       "missing.file", "Missing file", 
7861 21 Oct 20 nicklas 111       "Checks if a file has been specified for items that should have a file",
7861 21 Oct 20 nicklas 112       "Missing file", Severity.WARNING
7861 21 Oct 20 nicklas 113     );
7861 21 Oct 20 nicklas 114
7861 21 Oct 20 nicklas 115   
7861 21 Oct 20 nicklas 116   /**
3859 18 Oct 07 nicklas 117     Validator rule that checks for denied access to data file types. 
3859 18 Oct 07 nicklas 118     Default severity level is WARNING.
3859 18 Oct 07 nicklas 119   */
3859 18 Oct 07 nicklas 120   public static final Validator DENIED_DATAFILETYPE = new Validator(
3859 18 Oct 07 nicklas 121       "denied.datafiletype", "Access denied to data file type", 
3859 18 Oct 07 nicklas 122       "Checks if the user is denied access to a data file type",
3859 18 Oct 07 nicklas 123       "Access denied to data file type", Severity.WARNING
3859 18 Oct 07 nicklas 124     );
3859 18 Oct 07 nicklas 125   
3859 18 Oct 07 nicklas 126   /**
3033 15 Dec 06 nicklas 127     Validator rule that checks for missing software. Default severity level
3033 15 Dec 06 nicklas 128     is WARNING.
3033 15 Dec 06 nicklas 129   */
3033 15 Dec 06 nicklas 130   public static final Validator MISSING_SOFTWARE = new Validator(
3033 15 Dec 06 nicklas 131       "missing.software", "Missing software", 
5807 14 Oct 11 nicklas 132       "Checks if a software has been specified for a raw bioassay or derived bioassay",
3033 15 Dec 06 nicklas 133       "Missing software", Severity.WARNING
3033 15 Dec 06 nicklas 134     );
3033 15 Dec 06 nicklas 135   
3033 15 Dec 06 nicklas 136   /**
3045 20 Dec 06 nicklas 137     Validator rule that checks for denied access to software. Default severity level
3045 20 Dec 06 nicklas 138     is WARNING.
3045 20 Dec 06 nicklas 139   */
3045 20 Dec 06 nicklas 140   public static final Validator DENIED_SOFTWARE = new Validator(
3045 20 Dec 06 nicklas 141       "denied.software", "Access denied to software", 
3045 20 Dec 06 nicklas 142       "Checks if the user is denied access to a software",
3045 20 Dec 06 nicklas 143       "Access denied to software", Severity.WARNING
3045 20 Dec 06 nicklas 144     );
3045 20 Dec 06 nicklas 145   
3045 20 Dec 06 nicklas 146   /**
3033 15 Dec 06 nicklas 147     Validator rule that checks for missing hardware. Default severity level
3033 15 Dec 06 nicklas 148     is WARNING.
3033 15 Dec 06 nicklas 149   */
3033 15 Dec 06 nicklas 150   public static final Validator MISSING_HARDWARE = new Validator(
3033 15 Dec 06 nicklas 151       "missing.hardware", "Missing hardware", 
3033 15 Dec 06 nicklas 152       "Checks if a hardware (scanner, print robot, etc.) has been specified for " +
3033 15 Dec 06 nicklas 153       "item that can have a hardware.",
3859 18 Oct 07 nicklas 154       "Missing hardware", Severity.WARNING
3033 15 Dec 06 nicklas 155     );
3033 15 Dec 06 nicklas 156
3033 15 Dec 06 nicklas 157   /**
3045 20 Dec 06 nicklas 158     Validator rule that checks for denied access to hardware. Default severity level
3045 20 Dec 06 nicklas 159     is WARNING.
3045 20 Dec 06 nicklas 160   */
3045 20 Dec 06 nicklas 161   public static final Validator DENIED_HARDWARE = new Validator(
3045 20 Dec 06 nicklas 162       "denied.hardware", "Access denied to hardware", 
3045 20 Dec 06 nicklas 163       "Checks if the user is denied access to a hardware",
3045 20 Dec 06 nicklas 164       "Access denied to hardware", Severity.WARNING
3045 20 Dec 06 nicklas 165     );
3045 20 Dec 06 nicklas 166
3045 20 Dec 06 nicklas 167   /**
7005 09 Nov 15 nicklas 168     Validator rule that checks for missing kits. Default severity level
7005 09 Nov 15 nicklas 169     is WARNING.
7005 09 Nov 15 nicklas 170     @since 3.7
7005 09 Nov 15 nicklas 171   */
7005 09 Nov 15 nicklas 172   public static final Validator MISSING_KIT = new Validator(
7005 09 Nov 15 nicklas 173       "missing.kit", "Missing kit", 
7005 09 Nov 15 nicklas 174       "Checks if a kit has been specified for " +
7005 09 Nov 15 nicklas 175       "item that can have a kit.",
7005 09 Nov 15 nicklas 176       "Missing kit", Severity.WARNING
7005 09 Nov 15 nicklas 177     );
7005 09 Nov 15 nicklas 178   
7005 09 Nov 15 nicklas 179   /**
7005 09 Nov 15 nicklas 180     Validator rule that checks for denied access to kit. Default severity level
7005 09 Nov 15 nicklas 181     is WARNING.
7005 09 Nov 15 nicklas 182     @since 3.7
7005 09 Nov 15 nicklas 183   */
7005 09 Nov 15 nicklas 184   public static final Validator DENIED_KIT = new Validator(
7005 09 Nov 15 nicklas 185       "denied.kit", "Access denied to kit", 
7005 09 Nov 15 nicklas 186       "Checks if the user is denied access to a kit",
7005 09 Nov 15 nicklas 187       "Access denied to kit", Severity.WARNING
7005 09 Nov 15 nicklas 188     );
7005 09 Nov 15 nicklas 189
7005 09 Nov 15 nicklas 190   
7005 09 Nov 15 nicklas 191   /**
5651 08 Jun 11 nicklas 192     Validator rule that checks for missing physical bioassay. Default severity level
3033 15 Dec 06 nicklas 193     is WARNING.
5807 14 Oct 11 nicklas 194     @since 3.0
3033 15 Dec 06 nicklas 195   */
5807 14 Oct 11 nicklas 196   public static final Validator MISSING_PHYSICALBIOASSAY = new Validator(
5807 14 Oct 11 nicklas 197       "missing.physicalbioassay", "Missing physical bioassay", 
5807 14 Oct 11 nicklas 198       "Checks if a physical bioassay has been specified for a derived bioassay or array slide",
5651 08 Jun 11 nicklas 199       "Missing bioassay", Severity.WARNING
3033 15 Dec 06 nicklas 200     );
3033 15 Dec 06 nicklas 201
3033 15 Dec 06 nicklas 202   /**
5651 08 Jun 11 nicklas 203     Validator rule that checks for denied access to physical bioassay. Default severity level
3045 20 Dec 06 nicklas 204     is WARNING.
5807 14 Oct 11 nicklas 205     @since 3.0
3045 20 Dec 06 nicklas 206   */
5807 14 Oct 11 nicklas 207   public static final Validator DENIED_PHYSICALBIOASSAY = new Validator(
5807 14 Oct 11 nicklas 208       "denied.physicalbioassay", "Access denied to physical bioassay", 
5651 08 Jun 11 nicklas 209       "Checks if the user is denied access to a physical bioassay",
5807 14 Oct 11 nicklas 210       "Access denied to physical bioassay", Severity.WARNING
3045 20 Dec 06 nicklas 211     );
3045 20 Dec 06 nicklas 212
3045 20 Dec 06 nicklas 213   /**
3033 15 Dec 06 nicklas 214     Validator rule that checks for missing array slide. Default severity level
3033 15 Dec 06 nicklas 215     is WARNING.
3033 15 Dec 06 nicklas 216   */
3033 15 Dec 06 nicklas 217   public static final Validator MISSING_ARRAYSLIDE = new Validator(
3033 15 Dec 06 nicklas 218       "missing.slide", "Missing array slide", 
5651 08 Jun 11 nicklas 219       "Checks if an array slide has been specified for a physical bioassay",
3033 15 Dec 06 nicklas 220       "Missing array slide", Severity.WARNING
3033 15 Dec 06 nicklas 221     );
3033 15 Dec 06 nicklas 222
3033 15 Dec 06 nicklas 223   /**
3045 20 Dec 06 nicklas 224     Validator rule that checks for denied access to array slides. Default severity level
3045 20 Dec 06 nicklas 225     is WARNING.
3045 20 Dec 06 nicklas 226   */
3045 20 Dec 06 nicklas 227   public static final Validator DENIED_ARRAYSLIDE = new Validator(
3045 20 Dec 06 nicklas 228       "denied.slide", "Access denied to array slide", 
3045 20 Dec 06 nicklas 229       "Checks if the user is denied access to an array slide",
3045 20 Dec 06 nicklas 230       "Access denied to array slide", Severity.WARNING
3045 20 Dec 06 nicklas 231     );
3045 20 Dec 06 nicklas 232
3045 20 Dec 06 nicklas 233   /**
3033 15 Dec 06 nicklas 234     Validator rule that checks for missing extract. Default severity level
3033 15 Dec 06 nicklas 235     is WARNING.
3033 15 Dec 06 nicklas 236   */
3033 15 Dec 06 nicklas 237   public static final Validator MISSING_EXTRACT = new Validator(
3033 15 Dec 06 nicklas 238       "missing.extract", "Missing extract", 
5807 14 Oct 11 nicklas 239       "Checks if at least one extract has been specified for a " +
5807 14 Oct 11 nicklas 240       "physical bioassay",
3033 15 Dec 06 nicklas 241       "Missing extract", Severity.WARNING
3033 15 Dec 06 nicklas 242     );
3033 15 Dec 06 nicklas 243
3033 15 Dec 06 nicklas 244   /**
3045 20 Dec 06 nicklas 245     Validator rule that checks for denied access to extracts. Default severity level
3045 20 Dec 06 nicklas 246     is WARNING.
3045 20 Dec 06 nicklas 247   */
3045 20 Dec 06 nicklas 248   public static final Validator DENIED_EXTRACT = new Validator(
3045 20 Dec 06 nicklas 249       "denied.extract", "Access denied to extract", 
3045 20 Dec 06 nicklas 250       "Checks if the user is denied access to a extract",
3045 20 Dec 06 nicklas 251       "Access denied to extract", Severity.WARNING
3045 20 Dec 06 nicklas 252     );
3045 20 Dec 06 nicklas 253
3045 20 Dec 06 nicklas 254   
3045 20 Dec 06 nicklas 255   /**
3033 15 Dec 06 nicklas 256     Validator rule that checks for missing sample. Default severity level
3033 15 Dec 06 nicklas 257     is WARNING.
3033 15 Dec 06 nicklas 258   */
3033 15 Dec 06 nicklas 259   public static final Validator MISSING_SAMPLE = new Validator(
3033 15 Dec 06 nicklas 260       "missing.sample", "Missing sample", 
3045 20 Dec 06 nicklas 261       "Checks if a sample has been specified for an extract or pooled sample",
3033 15 Dec 06 nicklas 262       "Missing sample", Severity.WARNING
3033 15 Dec 06 nicklas 263     );
3033 15 Dec 06 nicklas 264
3033 15 Dec 06 nicklas 265   /**
3045 20 Dec 06 nicklas 266     Validator rule that checks for denied access to samples. Default severity level
3045 20 Dec 06 nicklas 267     is WARNING.
3045 20 Dec 06 nicklas 268   */
3045 20 Dec 06 nicklas 269   public static final Validator DENIED_SAMPLE = new Validator(
3045 20 Dec 06 nicklas 270       "denied.sample", "Access denied to sample", 
3045 20 Dec 06 nicklas 271       "Checks if the user is denied access to a sample",
3045 20 Dec 06 nicklas 272       "Access denied to sample", Severity.WARNING
3045 20 Dec 06 nicklas 273     );
3045 20 Dec 06 nicklas 274
3045 20 Dec 06 nicklas 275   
3045 20 Dec 06 nicklas 276   /**
3033 15 Dec 06 nicklas 277     Validator rule that checks for missing biosource. Default severity level
3033 15 Dec 06 nicklas 278     is WARNING.
3033 15 Dec 06 nicklas 279   */
3033 15 Dec 06 nicklas 280   public static final Validator MISSING_BIOSOURCE = new Validator(
3033 15 Dec 06 nicklas 281       "missing.biosource", "Missing biosource", 
3033 15 Dec 06 nicklas 282       "Checks if a biosource has been specified for a non-pooled sample",
3033 15 Dec 06 nicklas 283       "Missing biosource", Severity.WARNING
3033 15 Dec 06 nicklas 284     );
3033 15 Dec 06 nicklas 285
3033 15 Dec 06 nicklas 286   /**
3045 20 Dec 06 nicklas 287     Validator rule that checks for denied access to biosource. Default severity level
3045 20 Dec 06 nicklas 288     is WARNING.
3045 20 Dec 06 nicklas 289   */
3045 20 Dec 06 nicklas 290   public static final Validator DENIED_BIOSOURCE = new Validator(
3045 20 Dec 06 nicklas 291       "denied.biosource", "Access denied to biosource", 
3045 20 Dec 06 nicklas 292       "Checks if the user is denied access to a biosource",
3045 20 Dec 06 nicklas 293       "Access denied to biosource", Severity.WARNING
3045 20 Dec 06 nicklas 294     );
3045 20 Dec 06 nicklas 295
5651 08 Jun 11 nicklas 296   
3045 20 Dec 06 nicklas 297   /**
5651 08 Jun 11 nicklas 298     Validator rule that checks for missing tag. Default severity level
3045 20 Dec 06 nicklas 299     is WARNING.
3045 20 Dec 06 nicklas 300   */
5651 08 Jun 11 nicklas 301   public static final Validator MISSING_TAG = new Validator(
5651 08 Jun 11 nicklas 302       "missing.tag", "Missing tag", 
5651 08 Jun 11 nicklas 303       "Checks if a tag has been specified for an extract",
5651 08 Jun 11 nicklas 304       "Missing tag", Severity.WARNING
3045 20 Dec 06 nicklas 305     );
3045 20 Dec 06 nicklas 306   
3045 20 Dec 06 nicklas 307   /**
5651 08 Jun 11 nicklas 308     Validator rule that checks for denied access to tags. Default severity level
5651 08 Jun 11 nicklas 309     is WARNING.
5651 08 Jun 11 nicklas 310     @since 3.0
5651 08 Jun 11 nicklas 311   */
5651 08 Jun 11 nicklas 312   public static final Validator DENIED_TAG = new Validator(
5651 08 Jun 11 nicklas 313       "denied.tag", "Access denied to tag", 
5651 08 Jun 11 nicklas 314       "Checks if the user is denied access to a tag.",
5651 08 Jun 11 nicklas 315       "Access denied to tag", Severity.WARNING
5651 08 Jun 11 nicklas 316     );
5651 08 Jun 11 nicklas 317   
5651 08 Jun 11 nicklas 318   /**
3033 15 Dec 06 nicklas 319     Validator rule that checks for missing array design. Default severity level
3033 15 Dec 06 nicklas 320     is WARNING.
3033 15 Dec 06 nicklas 321   */
3033 15 Dec 06 nicklas 322   public static final Validator MISSING_ARRAYDESIGN = new Validator(
3045 20 Dec 06 nicklas 323       "missing.arraydesign", "Missing array design", 
3033 15 Dec 06 nicklas 324       "Checks if an array design has been specified for a raw bioassay",
3033 15 Dec 06 nicklas 325       "Missing array design", Severity.WARNING
3033 15 Dec 06 nicklas 326     );
3033 15 Dec 06 nicklas 327
3033 15 Dec 06 nicklas 328   /**
3045 20 Dec 06 nicklas 329     Validator rule that checks for denied access to an array design. Default severity level
3045 20 Dec 06 nicklas 330     is WARNING.
3045 20 Dec 06 nicklas 331   */
3045 20 Dec 06 nicklas 332   public static final Validator DENIED_ARRAYDESIGN = new Validator(
3045 20 Dec 06 nicklas 333       "denied.arraydesign", "Access denied to array design", 
3045 20 Dec 06 nicklas 334       "Checks if the user is denied access to an array design",
3045 20 Dec 06 nicklas 335       "Access denied to array design", Severity.WARNING
3045 20 Dec 06 nicklas 336     );
3045 20 Dec 06 nicklas 337
3045 20 Dec 06 nicklas 338   /**
3045 20 Dec 06 nicklas 339     Validator rule that checks for missing array batch. Default severity level
3045 20 Dec 06 nicklas 340     is WARNING.
3045 20 Dec 06 nicklas 341   */
3045 20 Dec 06 nicklas 342   public static final Validator MISSING_ARRAYBATCH = new Validator(
3045 20 Dec 06 nicklas 343       "missing.arraybatch", "Missing array batch", 
3045 20 Dec 06 nicklas 344       "Checks if an array batch has been specified for an array slide",
3045 20 Dec 06 nicklas 345       "Missing array batch", Severity.WARNING
3045 20 Dec 06 nicklas 346     );
3045 20 Dec 06 nicklas 347   
3045 20 Dec 06 nicklas 348   /**
3045 20 Dec 06 nicklas 349     Validator rule that checks for denied access to an array batch. Default severity level
3045 20 Dec 06 nicklas 350     is WARNING.
3045 20 Dec 06 nicklas 351   */
3045 20 Dec 06 nicklas 352   public static final Validator DENIED_ARRAYBATCH = new Validator(
3045 20 Dec 06 nicklas 353       "denied.arraybatch", "Access denied to array batch", 
3045 20 Dec 06 nicklas 354       "Checks if the user is denied access to an array batch",
3045 20 Dec 06 nicklas 355       "Access denied to array batch", Severity.WARNING
3045 20 Dec 06 nicklas 356     );
3045 20 Dec 06 nicklas 357
3045 20 Dec 06 nicklas 358   
3045 20 Dec 06 nicklas 359   /**
3033 15 Dec 06 nicklas 360     Validator rule that checks for missing experimental factor value. 
3033 15 Dec 06 nicklas 361     Default severity level is ERROR.
3033 15 Dec 06 nicklas 362   */
3033 15 Dec 06 nicklas 363   public static final Validator MISSING_FACTORVALUE = new Validator(
3033 15 Dec 06 nicklas 364       "missing.factorvalue", "Missing factor value", 
3045 20 Dec 06 nicklas 365       "Checks if a value has been specified for all experimental factors for a raw bioassay",
3033 15 Dec 06 nicklas 366       "Missing factor value", Severity.ERROR
3033 15 Dec 06 nicklas 367     );
3033 15 Dec 06 nicklas 368
3033 15 Dec 06 nicklas 369   /**
3033 15 Dec 06 nicklas 370     Validator rule that checks for missing protocol parameter values. 
3033 15 Dec 06 nicklas 371     Default severity level is ERROR.
3033 15 Dec 06 nicklas 372   */
3033 15 Dec 06 nicklas 373   public static final Validator MISSING_PARAMETER = new Validator(
3033 15 Dec 06 nicklas 374       "missing.parameter", "Missing parameter value", 
3045 20 Dec 06 nicklas 375       "Checks if a parameter value has been specified for all protocol parameters",
3033 15 Dec 06 nicklas 376       "Missing parameter value", Severity.ERROR
3033 15 Dec 06 nicklas 377     );
3033 15 Dec 06 nicklas 378
3033 15 Dec 06 nicklas 379   /**
3045 20 Dec 06 nicklas 380     Validator rule that checks for missing "Required for MIAME" annotation. 
3033 15 Dec 06 nicklas 381     Default severity level is ERROR.
3033 15 Dec 06 nicklas 382   */
3033 15 Dec 06 nicklas 383   public static final Validator MISSING_MIAME_ANNOTATION = new Validator(
3045 20 Dec 06 nicklas 384       "missing.miameannotation", "Missing MIAME annotation value", 
3045 20 Dec 06 nicklas 385       "Checks if an annotation value has been specified for a 'Required for MIAME' annotation type",
3045 20 Dec 06 nicklas 386       "Missing MIAME annotation value", Severity.ERROR
3033 15 Dec 06 nicklas 387     );
3033 15 Dec 06 nicklas 388
3045 20 Dec 06 nicklas 389   /**
3045 20 Dec 06 nicklas 390     Validator rule that checks for denied access to an annotation type. 
3045 20 Dec 06 nicklas 391     Default severity level is WARNING.
3045 20 Dec 06 nicklas 392   */
3045 20 Dec 06 nicklas 393   public static final Validator DENIED_ANNOTATIONTYPE = new Validator(
3045 20 Dec 06 nicklas 394       "denied.annotationtype", "Access denied to annotation type", 
3045 20 Dec 06 nicklas 395       "Checks if the user is denied access to an annotation type",
3045 20 Dec 06 nicklas 396       "Access denied to annotation type", Severity.WARNING
3045 20 Dec 06 nicklas 397     );
3033 15 Dec 06 nicklas 398   
3045 20 Dec 06 nicklas 399   /**
5500 18 Nov 10 nicklas 400     Validator rule that checks for a missing reference in an any-to-any link. 
5500 18 Nov 10 nicklas 401     Eg. due to the non-relational nature an any-to-any entry may point to an
5500 18 Nov 10 nicklas 402     item that has been deleted. Default severity level is WARNING.
5500 18 Nov 10 nicklas 403     @since 2.17
5500 18 Nov 10 nicklas 404   */
5500 18 Nov 10 nicklas 405   public static final Validator MISSING_ANYTOANY = new Validator(
5807 14 Oct 11 nicklas 406       "missing.anytoany", "Missing any-to-any target", 
5500 18 Nov 10 nicklas 407       "Checks if the item referenced to by an any-to-any link actually exists or not.",
5807 14 Oct 11 nicklas 408       "Missing any-to-any target", Severity.WARNING
5500 18 Nov 10 nicklas 409     );
5500 18 Nov 10 nicklas 410   
5500 18 Nov 10 nicklas 411   /**
5500 18 Nov 10 nicklas 412     Validator rule that checks for denied access the referenced item in an
5500 18 Nov 10 nicklas 413     any-to-any link. Default severity level is WARNING.
5500 18 Nov 10 nicklas 414     @since 2.17
5500 18 Nov 10 nicklas 415   */
5500 18 Nov 10 nicklas 416   public static final Validator DENIED_ANYTOANY = new Validator(
5500 18 Nov 10 nicklas 417       "denied.anytoany", "Access denied to any-to-any", 
5500 18 Nov 10 nicklas 418       "Checks if the user is denied access to the referenced item in any-to-any link.",
5500 18 Nov 10 nicklas 419       "Access denied to any-to-any", Severity.WARNING
5500 18 Nov 10 nicklas 420     );
5500 18 Nov 10 nicklas 421
6042 03 Apr 12 nicklas 422   /**
6042 03 Apr 12 nicklas 423     Validator rule that checks for missing bioplate location.
6042 03 Apr 12 nicklas 424     Default severity level is IGNORE.
6042 03 Apr 12 nicklas 425     @since 3.2
6042 03 Apr 12 nicklas 426   */
6042 03 Apr 12 nicklas 427   public static final Validator MISSING_BIOPLATE = new Validator(
6042 03 Apr 12 nicklas 428       "missing.bioplate", "Missing bioplate", 
6042 03 Apr 12 nicklas 429       "Checks if bioplate location has been specified for a biomaterial",
6042 03 Apr 12 nicklas 430       "Missing bioplate location", Severity.IGNORE
6042 03 Apr 12 nicklas 431     );
6042 03 Apr 12 nicklas 432
5500 18 Nov 10 nicklas 433   
5500 18 Nov 10 nicklas 434   /**
6042 03 Apr 12 nicklas 435     Validator rule that checks for denied access to a bioplate. 
6042 03 Apr 12 nicklas 436     Default severity level is WARNING.
6042 03 Apr 12 nicklas 437     @since 3.2
6042 03 Apr 12 nicklas 438   */
6042 03 Apr 12 nicklas 439   public static final Validator DENIED_BIOPLATE = new Validator(
6042 03 Apr 12 nicklas 440       "denioed.bioplate", "Access denied to bioplate",
6042 03 Apr 12 nicklas 441       "Checks if the user is defined access to a bioplate.",
6042 03 Apr 12 nicklas 442       "Access denied to bioplate", Severity.WARNING);
6042 03 Apr 12 nicklas 443   
6042 03 Apr 12 nicklas 444   
6042 03 Apr 12 nicklas 445   /**
3859 18 Oct 07 nicklas 446     Validator rule that checks if an item uses a different platform / variant than
3859 18 Oct 07 nicklas 447     specified by the project default. Default severity level is WARNING.
3859 18 Oct 07 nicklas 448   */
3859 18 Oct 07 nicklas 449   public static final Validator NONDEFAULT_PLATFORM = new Validator(
3859 18 Oct 07 nicklas 450       "nondefault.platform", "Use of non-default platform",
3859 18 Oct 07 nicklas 451       "Checks if an item uses a different platform than the default for the current project",
3859 18 Oct 07 nicklas 452       "Use of non-default platform", Severity.WARNING
3859 18 Oct 07 nicklas 453     );
3859 18 Oct 07 nicklas 454
3859 18 Oct 07 nicklas 455   /**
3045 20 Dec 06 nicklas 456     Validator rule that checks if an item uses a different protocol than
3045 20 Dec 06 nicklas 457     specified by the project default. Default severity level is WARNING.
3045 20 Dec 06 nicklas 458   */
3045 20 Dec 06 nicklas 459   public static final Validator NONDEFAULT_PROTOCOL = new Validator(
3045 20 Dec 06 nicklas 460       "nondefault.protocol", "Use of non-default protocol",
3045 20 Dec 06 nicklas 461       "Checks if an item uses a different protocol than the default for the current project",
3045 20 Dec 06 nicklas 462       "Use of non-default protocol", Severity.WARNING
3045 20 Dec 06 nicklas 463     );
3045 20 Dec 06 nicklas 464
3045 20 Dec 06 nicklas 465   /**
3045 20 Dec 06 nicklas 466     Validator rule that checks if an item uses a different hardware than
3045 20 Dec 06 nicklas 467     specified by the project default. Default severity level is WARNING.
3045 20 Dec 06 nicklas 468   */
3045 20 Dec 06 nicklas 469   public static final Validator NONDEFAULT_HARDWARE = new Validator(
3045 20 Dec 06 nicklas 470       "nondefault.hardware", "Use of non-default hardware",
3045 20 Dec 06 nicklas 471       "Checks if an item uses a different hardware (scanner, print robot, etc.) " +
3045 20 Dec 06 nicklas 472       "than the default for the current project",
3045 20 Dec 06 nicklas 473       "Use of non-default hardware", Severity.WARNING
3045 20 Dec 06 nicklas 474     );
3045 20 Dec 06 nicklas 475   
3045 20 Dec 06 nicklas 476   /**
3045 20 Dec 06 nicklas 477     Validator rule that checks if an item uses a different software than
3045 20 Dec 06 nicklas 478     specified by the project default. Default severity level is WARNING.
3045 20 Dec 06 nicklas 479   */
3045 20 Dec 06 nicklas 480   public static final Validator NONDEFAULT_SOFTWARE = new Validator(
3045 20 Dec 06 nicklas 481       "nondefault.software", "Use of non-default software",
3045 20 Dec 06 nicklas 482       "Checks if an item uses a different software (feature extraction) " +
3045 20 Dec 06 nicklas 483       "than the default for the current project",
3045 20 Dec 06 nicklas 484       "Use of non-default software", Severity.WARNING
3045 20 Dec 06 nicklas 485     );
3045 20 Dec 06 nicklas 486
3045 20 Dec 06 nicklas 487   /**
3045 20 Dec 06 nicklas 488     Validator rule that checks if an item uses a different array design than
3045 20 Dec 06 nicklas 489     specified by the project default. Default severity level is WARNING.
3045 20 Dec 06 nicklas 490   */
3045 20 Dec 06 nicklas 491   public static final Validator NONDEFAULT_ARRAYDESIGN = new Validator(
3045 20 Dec 06 nicklas 492       "nondefault.arraydesign", "Use of non-default array design",
3045 20 Dec 06 nicklas 493       "Checks if an item uses a different array design " +
3045 20 Dec 06 nicklas 494       "than the default for the current project",
3045 20 Dec 06 nicklas 495       "Use of non-default array design", Severity.WARNING
3045 20 Dec 06 nicklas 496     );
3045 20 Dec 06 nicklas 497   
3045 20 Dec 06 nicklas 498   /**
3045 20 Dec 06 nicklas 499     Validator rule that checks if an item uses a different raw data type than
3045 20 Dec 06 nicklas 500     specified by the project default. Default severity level is WARNING.
3045 20 Dec 06 nicklas 501   */
3045 20 Dec 06 nicklas 502   public static final Validator NONDEFAULT_RAWDATATYPE = new Validator(
3045 20 Dec 06 nicklas 503       "nondefault.rawdatatype", "Use of non-default raw data type",
3045 20 Dec 06 nicklas 504       "Checks if an experiment uses the same raw data type as specified by the " +
3045 20 Dec 06 nicklas 505       "default for the current project",
3045 20 Dec 06 nicklas 506       "Use of non-default raw data type", Severity.WARNING
3045 20 Dec 06 nicklas 507     );
3045 20 Dec 06 nicklas 508   
3045 20 Dec 06 nicklas 509   /**
3045 20 Dec 06 nicklas 510     Validator rule that checks if all raw bioassays in an experiment
3045 20 Dec 06 nicklas 511     uses the same array design. Default severity level is WARNING.
3045 20 Dec 06 nicklas 512   */
3045 20 Dec 06 nicklas 513   public static final Validator MULTIPLE_ARRAYDESIGNS = new Validator(
3045 20 Dec 06 nicklas 514       "misc.multiplearraydesigns", "Multiple array designs",
3045 20 Dec 06 nicklas 515       "Checks if all raw bioassays in an experiment uses the same " +
3045 20 Dec 06 nicklas 516       "array design.",
3045 20 Dec 06 nicklas 517       "Multiple array designs", Severity.WARNING
3045 20 Dec 06 nicklas 518     );
3045 20 Dec 06 nicklas 519
3045 20 Dec 06 nicklas 520   /**
3045 20 Dec 06 nicklas 521     Validator rule that checks if the array design for a raw bioassay
5807 14 Oct 11 nicklas 522     matches the array design of the associated physical bioassay.
3045 20 Dec 06 nicklas 523     Default severity level is WARNING.
3045 20 Dec 06 nicklas 524   */
3045 20 Dec 06 nicklas 525   public static final Validator NONMATHCING_ARRAYDESIGN = new Validator(
3045 20 Dec 06 nicklas 526       "misc.nonmatchingarraydesigns", "Array design mismatch",
3045 20 Dec 06 nicklas 527       "Checks if the array design for a raw bioassay is the same " +
5807 14 Oct 11 nicklas 528       "array design as of the associated physical bioassay.",
3045 20 Dec 06 nicklas 529       "Array design mismatch", Severity.WARNING
3045 20 Dec 06 nicklas 530     );
3045 20 Dec 06 nicklas 531
3045 20 Dec 06 nicklas 532   /**
5076 25 Aug 09 nicklas 533     Validator rule that checks if the number of raw data spots 
5076 25 Aug 09 nicklas 534     are the same as the number of features (given a certain threshold).
5076 25 Aug 09 nicklas 535     Default severity level is WARNING.
5076 25 Aug 09 nicklas 536   */
5076 25 Aug 09 nicklas 537   public static final Validator NONMATCHING_SPOTCOUNT = new Validator(
5076 25 Aug 09 nicklas 538       "misc.nonmatchingspotcount", "Raw spots <> features",
5076 25 Aug 09 nicklas 539       "Checks if the number of raw data spots matches the number of " +
5076 25 Aug 09 nicklas 540       "array design features. A threshold can be given as either an " +
5076 25 Aug 09 nicklas 541       "absolute number or as a percentage.",
5076 25 Aug 09 nicklas 542       "Raw spots <> features", Severity.WARNING
5076 25 Aug 09 nicklas 543     );
5076 25 Aug 09 nicklas 544
5076 25 Aug 09 nicklas 545   /**
5651 08 Jun 11 nicklas 546     Validator rule that checks if the tag attached to an extract
5651 08 Jun 11 nicklas 547     has a correct subtype. Default severity level is WARNING.
5651 08 Jun 11 nicklas 548     @since 3.0
5651 08 Jun 11 nicklas 549   */
5651 08 Jun 11 nicklas 550   public static final Validator INCORRECT_TAGTYPE = new Validator(
5651 08 Jun 11 nicklas 551       "subtype.tag", "Incorrect tag subtype",
5651 08 Jun 11 nicklas 552       "Checks if the tag attached to an extract has a correct subtype.",
5651 08 Jun 11 nicklas 553       "Incorrect tag subtype", Severity.WARNING
5651 08 Jun 11 nicklas 554     );
5651 08 Jun 11 nicklas 555
5651 08 Jun 11 nicklas 556   
5651 08 Jun 11 nicklas 557   /**
3045 20 Dec 06 nicklas 558     Validator rule that checks if the protocol attached to an item
3045 20 Dec 06 nicklas 559     has a correct protocol type. Default severity level is WARNING.
3045 20 Dec 06 nicklas 560   */
3045 20 Dec 06 nicklas 561   public static final Validator INCORRECT_PROTOCOLTYPE = new Validator(
5651 08 Jun 11 nicklas 562       "subtype.protocol", "Incorrect protocol subtype",
3045 20 Dec 06 nicklas 563       "Checks if the protocol attached to an item has a correct protocol type.",
5651 08 Jun 11 nicklas 564       "Incorrect protocol subtype", Severity.WARNING
3045 20 Dec 06 nicklas 565     );
3045 20 Dec 06 nicklas 566
3045 20 Dec 06 nicklas 567   /**
3045 20 Dec 06 nicklas 568     Validator rule that checks if the software attached to an item
3045 20 Dec 06 nicklas 569     has a correct software type. Default severity level is WARNING.
3045 20 Dec 06 nicklas 570   */
3045 20 Dec 06 nicklas 571   public static final Validator INCORRECT_SOFTWARETYPE = new Validator(
5651 08 Jun 11 nicklas 572       "subtype.software", "Incorrect software subtype",
3045 20 Dec 06 nicklas 573       "Checks if the software attached to an item has a correct software type.",
5651 08 Jun 11 nicklas 574       "Incorrect software subtype", Severity.WARNING
3045 20 Dec 06 nicklas 575     );
3045 20 Dec 06 nicklas 576
3045 20 Dec 06 nicklas 577   /**
3045 20 Dec 06 nicklas 578     Validator rule that checks if the hardware attached to an item
3045 20 Dec 06 nicklas 579     has a correct hardware type. Default severity level is WARNING.
3045 20 Dec 06 nicklas 580   */
3045 20 Dec 06 nicklas 581   public static final Validator INCORRECT_HARDWARETYPE = new Validator(
5651 08 Jun 11 nicklas 582       "subtype.hardware", "Incorrect hardware subtype",
3045 20 Dec 06 nicklas 583       "Checks if the hardware attached to an item has a correct hardware type.",
5651 08 Jun 11 nicklas 584       "Incorrect hardware subtype", Severity.WARNING
3045 20 Dec 06 nicklas 585     );
3045 20 Dec 06 nicklas 586   
3045 20 Dec 06 nicklas 587   /**
7005 09 Nov 15 nicklas 588     Validator rule that checks if the kit attached to an item
7005 09 Nov 15 nicklas 589     has a correct kit type. Default severity level is WARNING.
7005 09 Nov 15 nicklas 590     @since 3.7
7005 09 Nov 15 nicklas 591   */
7005 09 Nov 15 nicklas 592   public static final Validator INCORRECT_KITTYPE = new Validator(
7005 09 Nov 15 nicklas 593       "subtype.kit", "Incorrect kit subtype",
7005 09 Nov 15 nicklas 594       "Checks if the kit attached to an item has a correct kit type.",
7005 09 Nov 15 nicklas 595       "Incorrect kit subtype", Severity.WARNING
7005 09 Nov 15 nicklas 596     );
7005 09 Nov 15 nicklas 597
7005 09 Nov 15 nicklas 598   /**
7861 21 Oct 20 nicklas 599     Validator rule that checks if the file attached to an item
7861 21 Oct 20 nicklas 600     has a correct file type. Default severity level is WARNING.
7861 21 Oct 20 nicklas 601     @since 3.17
7861 21 Oct 20 nicklas 602   */
7861 21 Oct 20 nicklas 603   public static final Validator INCORRECT_FILETYPE = new Validator(
7861 21 Oct 20 nicklas 604       "subtype.file", "Incorrect file subtype",
7861 21 Oct 20 nicklas 605       "Checks if the file attached to an item has a correct file type.",
7861 21 Oct 20 nicklas 606       "Incorrect file subtype", Severity.WARNING
7861 21 Oct 20 nicklas 607     );
7861 21 Oct 20 nicklas 608   
7861 21 Oct 20 nicklas 609   /**
5651 08 Jun 11 nicklas 610     Validator that checks if the parent biosource of a sample
5651 08 Jun 11 nicklas 611     has the expected subtype. Default severity level is WARNING.
5651 08 Jun 11 nicklas 612     @since 3.0
5651 08 Jun 11 nicklas 613    */
5651 08 Jun 11 nicklas 614   public static final Validator INCORRECT_BIOSOURCE_TYPE = new Validator(
5651 08 Jun 11 nicklas 615       "subtype.biosource", "Incorrect biosource subtype",
5651 08 Jun 11 nicklas 616       "Checks if the parent biosource of a sample has the expected subtype.",
5651 08 Jun 11 nicklas 617       "Incorrect biosource subtype", Severity.WARNING
5651 08 Jun 11 nicklas 618   );
5651 08 Jun 11 nicklas 619
5651 08 Jun 11 nicklas 620   /**
5651 08 Jun 11 nicklas 621     Validator that checks if the parent sample of a sample/extract
5651 08 Jun 11 nicklas 622     has the expected subtype. Default severity level is WARNING.
5651 08 Jun 11 nicklas 623     @since 3.0
5651 08 Jun 11 nicklas 624    */
5651 08 Jun 11 nicklas 625   public static final Validator INCORRECT_SAMPLE_TYPE = new Validator(
5651 08 Jun 11 nicklas 626       "subtype.sample", "Incorrect sample subtype",
5651 08 Jun 11 nicklas 627       "Checks if the parent sample of a sample/extract has the expected subtype.",
5651 08 Jun 11 nicklas 628       "Incorrect sample subtype", Severity.WARNING
5651 08 Jun 11 nicklas 629   );
5651 08 Jun 11 nicklas 630
5651 08 Jun 11 nicklas 631   /**
5651 08 Jun 11 nicklas 632     Validator that checks if the parent extract of a extract/bioassay
5651 08 Jun 11 nicklas 633     has the expected subtype. Default severity level is WARNING.
5651 08 Jun 11 nicklas 634     @since 3.0
5651 08 Jun 11 nicklas 635    */
5651 08 Jun 11 nicklas 636   public static final Validator INCORRECT_EXTRACT_TYPE = new Validator(
5651 08 Jun 11 nicklas 637       "subtype.extract", "Incorrect extract subtype",
5651 08 Jun 11 nicklas 638       "Checks if the parent extract of an extract/physical bioassay has the expected subtype.",
5651 08 Jun 11 nicklas 639       "Incorrect extract subtype", Severity.WARNING
5651 08 Jun 11 nicklas 640   );
5807 14 Oct 11 nicklas 641
5807 14 Oct 11 nicklas 642   /**
6042 03 Apr 12 nicklas 643     Validator that checks if the biomaterial on a bioplate is
6042 03 Apr 12 nicklas 644     of the correct item type. Default severity level is ERROR.
6042 03 Apr 12 nicklas 645     @since 3.2
6042 03 Apr 12 nicklas 646    */
6042 03 Apr 12 nicklas 647   public static final Validator INCORRECT_BIOMATERIAL_TYPE = new Validator(
6042 03 Apr 12 nicklas 648       "subtype.biomaterial", "Incorrect biomaterial type",
6042 03 Apr 12 nicklas 649       "Checks if the biomaterial on a bioplate is of the correct item type.",
6042 03 Apr 12 nicklas 650       "Incorrect biomaterial type", Severity.ERROR
6042 03 Apr 12 nicklas 651   );
6042 03 Apr 12 nicklas 652   
6042 03 Apr 12 nicklas 653   /**
5807 14 Oct 11 nicklas 654     Validator that checks if a physical bioassay 
5807 14 Oct 11 nicklas 655     has the expected subtype. Default severity level is WARNING.
5807 14 Oct 11 nicklas 656     @since 3.0
5807 14 Oct 11 nicklas 657    */
5807 14 Oct 11 nicklas 658   public static final Validator INCORRECT_PHYSICALBIOASSAY_TYPE = new Validator(
5807 14 Oct 11 nicklas 659       "subtype.physicalbioassay", "Incorrect physical bioassay subtype",
5807 14 Oct 11 nicklas 660       "Checks if the physical bioassay has the expected subtype.",
5807 14 Oct 11 nicklas 661       "Incorrect physical bioassay subtype", Severity.WARNING
5807 14 Oct 11 nicklas 662   );
5807 14 Oct 11 nicklas 663
5807 14 Oct 11 nicklas 664   /**
5807 14 Oct 11 nicklas 665     Validator that checks if a derived bioassay 
5807 14 Oct 11 nicklas 666     has the expected subtype. Default severity level is WARNING.
5807 14 Oct 11 nicklas 667     @since 3.0
5807 14 Oct 11 nicklas 668    */
5807 14 Oct 11 nicklas 669   public static final Validator INCORRECT_DERIVEDBIOASSAY_TYPE = new Validator(
5807 14 Oct 11 nicklas 670       "subtype.derivedbioassay", "Incorrect derived bioassay subtype",
5807 14 Oct 11 nicklas 671       "Checks if the derived bioassay has the expected subtype.",
5807 14 Oct 11 nicklas 672       "Incorrect derived bioassay subtype", Severity.WARNING
5807 14 Oct 11 nicklas 673   );
5807 14 Oct 11 nicklas 674
5651 08 Jun 11 nicklas 675   
5651 08 Jun 11 nicklas 676   /**
5807 14 Oct 11 nicklas 677     Validator rule that checks if the position of an extract
5807 14 Oct 11 nicklas 678     on a physical bioassay is between 1 and the size of the
5807 14 Oct 11 nicklas 679     bioassay. Default severity level is WARNING.
5807 14 Oct 11 nicklas 680     @since 3.0
4134 08 Feb 08 nicklas 681   */
5807 14 Oct 11 nicklas 682   public static final Validator INCORRECT_BIOASSAY_POSITION = new Validator(
5807 14 Oct 11 nicklas 683       "misc.incorrectbioassayposition", "Incorrect bioassay position",
5807 14 Oct 11 nicklas 684       "Checks if the position of an extract on a physical bioassay " +
5807 14 Oct 11 nicklas 685       "is between 1 and the size of the bioassay.",
5807 14 Oct 11 nicklas 686       "Incorrect bioassay position", Severity.WARNING
4134 08 Feb 08 nicklas 687     );
4134 08 Feb 08 nicklas 688
4134 08 Feb 08 nicklas 689   /**
5807 14 Oct 11 nicklas 690     Validator rule that checks if a physical bioassay has more than one
5807 14 Oct 11 nicklas 691     tagged extract with the same tag and position. Default severity level is ERROR.
5807 14 Oct 11 nicklas 692     @since 3.0
4134 08 Feb 08 nicklas 693   */
5807 14 Oct 11 nicklas 694   public static final Validator NONUNIQUE_TAG = new Validator(
5807 14 Oct 11 nicklas 695       "misc.nonuniquetag", "Multiple extracts with same tag+position",
5807 14 Oct 11 nicklas 696       "Checks if a physical bioassay has more than one tagged extract with the " +
5807 14 Oct 11 nicklas 697       "same tag and position",
5807 14 Oct 11 nicklas 698       "Multiple tagged extracts with same tag+position", Severity.ERROR
4134 08 Feb 08 nicklas 699     );
5807 14 Oct 11 nicklas 700
4134 08 Feb 08 nicklas 701   /**
5807 14 Oct 11 nicklas 702     Validator rule that checks if the parent to a tagged extract has 
5807 14 Oct 11 nicklas 703     a different tag. Default severity level is WARNING.
5807 14 Oct 11 nicklas 704     @since 3.0
3045 20 Dec 06 nicklas 705   */
5807 14 Oct 11 nicklas 706   public static final Validator DIFFERENT_TAG = new Validator(
5807 14 Oct 11 nicklas 707       "misc.differenttag", "Parent extract has different tag",
5807 14 Oct 11 nicklas 708       "Checks if the parent to a tagged extract has a " +
5807 14 Oct 11 nicklas 709       "different tag",
5807 14 Oct 11 nicklas 710       "Parent extract has different tag", Severity.WARNING
3045 20 Dec 06 nicklas 711     );
3045 20 Dec 06 nicklas 712   
3045 20 Dec 06 nicklas 713   /**
5807 14 Oct 11 nicklas 714     Validator rule that checks if the parent to a non-tagged extract 
5807 14 Oct 11 nicklas 715     has a tag. Default severity level is WARNING.
5807 14 Oct 11 nicklas 716     @since 3.0
3045 20 Dec 06 nicklas 717   */
5807 14 Oct 11 nicklas 718   public static final Validator TAGGED_PARENT = new Validator(
5807 14 Oct 11 nicklas 719       "misc.taggedparent", "Un-tagged extract has tagged parent",
5807 14 Oct 11 nicklas 720       "Checks if the parent to an un-tagged extract has " +
5807 14 Oct 11 nicklas 721       "a tag.",
5807 14 Oct 11 nicklas 722       "Un-tagged extract has tagged parent", Severity.WARNING
3045 20 Dec 06 nicklas 723     );
5807 14 Oct 11 nicklas 724   
3045 20 Dec 06 nicklas 725   /**
5807 14 Oct 11 nicklas 726     Validator rule that checks if a child a raw- or derived-
5807 14 Oct 11 nicklas 727     bioassay has a different extract than the parent bioassay.
5807 14 Oct 11 nicklas 728     @since 3.0
5807 14 Oct 11 nicklas 729    */
5807 14 Oct 11 nicklas 730   public static final Validator PARENT_EXTRACT_MISMATCH = new Validator(
5807 14 Oct 11 nicklas 731       "misc.extractmismatch", "Extract mismatch",
6098 03 Sep 12 nicklas 732       "Checks if a child derived- or raw- bioassay has an " +
6098 03 Sep 12 nicklas 733       "extract that doesn't match the parent bioassay extract. It doesn't have to " +
6098 03 Sep 12 nicklas 734       "be an exact match, but the extracts should belong to the same subtree.",
5807 14 Oct 11 nicklas 735       "Extract mismatch", Severity.WARNING
3045 20 Dec 06 nicklas 736     );
3045 20 Dec 06 nicklas 737   
3045 20 Dec 06 nicklas 738   /**
3045 20 Dec 06 nicklas 739     Validator rule that checks if two items of the same type has the same
3045 20 Dec 06 nicklas 740     name. Default severity level is ERROR.
3045 20 Dec 06 nicklas 741   */
3045 20 Dec 06 nicklas 742   public static final Validator NONUNIQUE_NAME_FOR_TYPE = new Validator(
3045 20 Dec 06 nicklas 743       "misc.nonuniquenamefortype", "Non-unique name",
3045 20 Dec 06 nicklas 744       "Checks if more than one item of the same type has the same name.",
3045 20 Dec 06 nicklas 745       "Non-unique name", Severity.ERROR
3045 20 Dec 06 nicklas 746     );
3045 20 Dec 06 nicklas 747
3045 20 Dec 06 nicklas 748   /**
3045 20 Dec 06 nicklas 749     Validator rule that checks if two items of different type has the same
3045 20 Dec 06 nicklas 750     name. Default severity level is IGNORE.
3045 20 Dec 06 nicklas 751   */
3045 20 Dec 06 nicklas 752   public static final Validator NONUNIQUE_NAME_GLOBAL = new Validator(
3045 20 Dec 06 nicklas 753       "misc.nonuniquenameglobal", "Global non-unique name",
3045 20 Dec 06 nicklas 754       "Checks if more than one item (of any type) has the same name.",
3045 20 Dec 06 nicklas 755       "Global non-unique name", Severity.IGNORE
3045 20 Dec 06 nicklas 756     );
3045 20 Dec 06 nicklas 757
3045 20 Dec 06 nicklas 758   /**
3045 20 Dec 06 nicklas 759     Validator rule that checks for circular references among pooled items. 
3045 20 Dec 06 nicklas 760     Default severity level is ERROR.
3045 20 Dec 06 nicklas 761   */
3045 20 Dec 06 nicklas 762   public static final Validator CIRCULAR_REFERENCE = new Validator(
3045 20 Dec 06 nicklas 763       "misc.circular", "Circular reference to pooled item",
3045 20 Dec 06 nicklas 764       "Checks if there are circular references among pooled items.",
3045 20 Dec 06 nicklas 765       "Circular reference to pooled item", Severity.ERROR
3045 20 Dec 06 nicklas 766     );
3045 20 Dec 06 nicklas 767
3045 20 Dec 06 nicklas 768   
3045 20 Dec 06 nicklas 769   /**
3045 20 Dec 06 nicklas 770     Validator rule that checks if an annotation is a protocol parameter.
3045 20 Dec 06 nicklas 771     Default severity level is WARNING.
3045 20 Dec 06 nicklas 772   */
3045 20 Dec 06 nicklas 773   public static final Validator ANNOTATION_IS_PARAMETER = new Validator(
3045 20 Dec 06 nicklas 774       "annotation.isparameter", "Annotation is protocol parameter",
3045 20 Dec 06 nicklas 775       "Checks if an item has annotations that are protocol parameters.",
3045 20 Dec 06 nicklas 776       "Annotation is protocol parameter", Severity.WARNING
3045 20 Dec 06 nicklas 777     );
3045 20 Dec 06 nicklas 778
3045 20 Dec 06 nicklas 779   /**
3045 20 Dec 06 nicklas 780     Validator rule that checks if an annotation is not valid for the
3045 20 Dec 06 nicklas 781     current item type. Default severity level is WARNING.
3045 20 Dec 06 nicklas 782   */
3045 20 Dec 06 nicklas 783   public static final Validator ANNOTATION_INVALID_ITEM = new Validator(
3045 20 Dec 06 nicklas 784       "annotation.invaliditem", "Annotation invalid for item",
3045 20 Dec 06 nicklas 785       "Checks if an annotation is invalid for the type of item.",
3045 20 Dec 06 nicklas 786       "Annotation is invalid for item", Severity.WARNING
3045 20 Dec 06 nicklas 787     );
3045 20 Dec 06 nicklas 788
3045 20 Dec 06 nicklas 789   /**
3045 20 Dec 06 nicklas 790     Validator rule that checks if an annotation value is invalid
3045 20 Dec 06 nicklas 791     according to annotation type specification. Default severity level is ERROR.
3045 20 Dec 06 nicklas 792   */
3045 20 Dec 06 nicklas 793   public static final Validator ANNOTATION_INVALID_VALUE = new Validator(
3045 20 Dec 06 nicklas 794       "annotation.invalidvalue", "Annotation has invalid value",
3045 20 Dec 06 nicklas 795       "Checks if an annotation has an invalid value.",
3045 20 Dec 06 nicklas 796       "Annotation has invalid value", Severity.ERROR
3045 20 Dec 06 nicklas 797     );
6024 23 Mar 12 nicklas 798
6024 23 Mar 12 nicklas 799   /**
6024 23 Mar 12 nicklas 800     Validator rule that checks if an annotation have more values than
6024 23 Mar 12 nicklas 801     what the 'multiplicity' setting for the annotation type allow. 
6024 23 Mar 12 nicklas 802     Default severity level is WANRING.
6024 23 Mar 12 nicklas 803     @since 3.2
6024 23 Mar 12 nicklas 804   */
6024 23 Mar 12 nicklas 805   public static final Validator ANNOTATION_TOO_MANY_VALUES = new Validator(
6024 23 Mar 12 nicklas 806       "annotation.toomanyvalues", "Annotation has too many values",
6024 23 Mar 12 nicklas 807       "Checks if an annotation has more values than the 'multiplicty' setting allow.",
6024 23 Mar 12 nicklas 808       "Annotation has too many values", Severity.WARNING
6024 23 Mar 12 nicklas 809     );
6024 23 Mar 12 nicklas 810
3045 20 Dec 06 nicklas 811   
3045 20 Dec 06 nicklas 812   /**
3045 20 Dec 06 nicklas 813     Validator rule that checks if an inherited annotation value is inherited
3045 20 Dec 06 nicklas 814     from a parent item. Default severity level is ERROR.
3045 20 Dec 06 nicklas 815   */
3045 20 Dec 06 nicklas 816   public static final Validator ANNOTATION_INHERIT_FROM_NONPARENT = new Validator(
3045 20 Dec 06 nicklas 817       "annotation.inhertitfromnonparent", "Inheriting annotation from non-parent",
3045 20 Dec 06 nicklas 818       "Checks if an item inherits an annotation that is is not from a parent item.",
3045 20 Dec 06 nicklas 819       "Inherting annotation from non-parent", Severity.ERROR
3045 20 Dec 06 nicklas 820     );
3045 20 Dec 06 nicklas 821   
3045 20 Dec 06 nicklas 822   /**
6939 21 Aug 15 nicklas 823     Validator rule that checks if a cloned annotation value has lost
6939 21 Aug 15 nicklas 824     the reference to the parent item. Default severity level is WARNING.
6939 21 Aug 15 nicklas 825     @since 3.6
6939 21 Aug 15 nicklas 826   */
6939 21 Aug 15 nicklas 827   public static final Validator ANNOTATION_CLONED_FROM_UNKNOWNPARENT = new Validator(
6939 21 Aug 15 nicklas 828       "annotation.clonedfromunknownparent", "Cloned annotation from unknown parent",
6939 21 Aug 15 nicklas 829       "Checks if an item has a cloned annotation that no longer has a " +
6939 21 Aug 15 nicklas 830       "link back to the parent item.",
6939 21 Aug 15 nicklas 831       "Cloned annotation from unknown parent", Severity.WARNING
6939 21 Aug 15 nicklas 832     );
6939 21 Aug 15 nicklas 833
6939 21 Aug 15 nicklas 834   /**
6960 01 Oct 15 nicklas 835     Validator rule that checks if a cloned annotation value is in sync
6960 01 Oct 15 nicklas 836     with the source annotation. Default severity level is WARNING.
6960 01 Oct 15 nicklas 837     @since 3.6
6960 01 Oct 15 nicklas 838   */
6960 01 Oct 15 nicklas 839   public static final Validator ANNOTATION_CLONE_OUTOFSYNC = new Validator(
6960 01 Oct 15 nicklas 840       "annotation.cloneoutofsync", "Cloned annotation out-of-sync",
6960 01 Oct 15 nicklas 841       "Checks if an item has a cloned annotation that is " +
6960 01 Oct 15 nicklas 842       "out-of-sync with the source annotation.",
6960 01 Oct 15 nicklas 843       "Cloned annotation out-of-sync", Severity.WARNING
6960 01 Oct 15 nicklas 844     );
6960 01 Oct 15 nicklas 845
6960 01 Oct 15 nicklas 846   /**
4752 11 Feb 09 nicklas 847     Validator rule that checks if the logged in user has access to
4752 11 Feb 09 nicklas 848     the parent item of an inherited annotation value. Default severity 
4752 11 Feb 09 nicklas 849     level is WARNING.
4752 11 Feb 09 nicklas 850     @since 2.10
4752 11 Feb 09 nicklas 851   */
4752 11 Feb 09 nicklas 852   public static final Validator ANNOTATION_INHERIT_FROM_DENIEDPARENT = new Validator(
4752 11 Feb 09 nicklas 853       "annotation.inhertitfromdeniedparent", "Inheriting annotation from denied parent",
4752 11 Feb 09 nicklas 854       "Checks if an item inherits an annotation from a parent item to which the " +
4752 11 Feb 09 nicklas 855       "logged in user doesn't have access.",
4752 11 Feb 09 nicklas 856       "Inherting annotation from denied parent", Severity.WARNING
4752 11 Feb 09 nicklas 857     );
4752 11 Feb 09 nicklas 858
4752 11 Feb 09 nicklas 859   
4752 11 Feb 09 nicklas 860   /**
3045 20 Dec 06 nicklas 861     Validator rule that checks if two or more inherited annotations have the
3045 20 Dec 06 nicklas 862     same annotation type. Default severity level is ERROR.
3045 20 Dec 06 nicklas 863   */
3045 20 Dec 06 nicklas 864   public static final Validator ANNOTATION_INHERIT_MULTIPLE = new Validator(
3045 20 Dec 06 nicklas 865       "annotation.inhertitmultiple", "Inheriting multiple annotation of same type",
3045 20 Dec 06 nicklas 866       "Checks if an item inherits more than one annotation of the same annotation type.",
3045 20 Dec 06 nicklas 867       "Inheriting multiple annotation of same type", Severity.ERROR
3045 20 Dec 06 nicklas 868     );
3045 20 Dec 06 nicklas 869   
3859 18 Oct 07 nicklas 870   /**
3859 18 Oct 07 nicklas 871     Validator rule that checks if a data file can be used on the
3859 18 Oct 07 nicklas 872     current item type. Default severity level is WARNING.
3859 18 Oct 07 nicklas 873   */
3859 18 Oct 07 nicklas 874   public static final Validator DATAFILE_INVALID_ITEM = new Validator(
3859 18 Oct 07 nicklas 875       "datafile.invaliditem", "Data file can't be used on item",
3859 18 Oct 07 nicklas 876       "Checks if a data file can be used for a given item type.",
3859 18 Oct 07 nicklas 877       "Data file can't be used on item", Severity.WARNING
3859 18 Oct 07 nicklas 878     );
3859 18 Oct 07 nicklas 879
3859 18 Oct 07 nicklas 880   /**
3859 18 Oct 07 nicklas 881     Validator rule that checks if a data file has been validated
3859 18 Oct 07 nicklas 882     or not. Default severity level is WARNING, but this rule is not 
3859 18 Oct 07 nicklas 883     checked if the data file type doesn't have a validator.
3859 18 Oct 07 nicklas 884   */
3859 18 Oct 07 nicklas 885   public static final Validator DATAFILE_NOTVALIDATED = new Validator(
3859 18 Oct 07 nicklas 886       "datafile.notvalidated", "Data file has not been validated",
3859 18 Oct 07 nicklas 887       "Checks if a data file has been validated or not.",
3859 18 Oct 07 nicklas 888       "Data file has not been validated", Severity.WARNING
3859 18 Oct 07 nicklas 889     );
3859 18 Oct 07 nicklas 890   
3859 18 Oct 07 nicklas 891   /**
3859 18 Oct 07 nicklas 892     Validator rule that checks if a data file is valid.
3859 18 Oct 07 nicklas 893     Default severity level is ERROR, but this rule is not checked if
3859 18 Oct 07 nicklas 894     the data file hasn't been validated.
3859 18 Oct 07 nicklas 895   */
3859 18 Oct 07 nicklas 896   public static final Validator DATAFILE_INVALID = new Validator(
3859 18 Oct 07 nicklas 897       "datafile.invalid", "Data file is invalid",
3859 18 Oct 07 nicklas 898       "Checks if a data file is valid or not.",
3859 18 Oct 07 nicklas 899       "Data file is invalid", Severity.ERROR
3859 18 Oct 07 nicklas 900     );
3859 18 Oct 07 nicklas 901
3859 18 Oct 07 nicklas 902   /**
3859 18 Oct 07 nicklas 903     Validator rule that checks if all files required by the platform
3859 18 Oct 07 nicklas 904     are present or not. Default severity level is ERROR.
3859 18 Oct 07 nicklas 905   */
3859 18 Oct 07 nicklas 906   public static final Validator MISSING_DATAFILE = new Validator(
3859 18 Oct 07 nicklas 907       "datafile.missing", "Missing a required data file",
3859 18 Oct 07 nicklas 908       "Checks if all files required by a platform are present.",
3859 18 Oct 07 nicklas 909       "Missing a required data file", Severity.ERROR
3859 18 Oct 07 nicklas 910     );
3859 18 Oct 07 nicklas 911
3859 18 Oct 07 nicklas 912   /**
5721 06 Sep 11 nicklas 913     Validator rule that checks if a file is registered with
5721 06 Sep 11 nicklas 914     a platform/item subtype or not. Default severity level is WARNING.
3859 18 Oct 07 nicklas 915   */
3859 18 Oct 07 nicklas 916   public static final Validator DATAFILE_NOTPLATFORM = new Validator(
5721 06 Sep 11 nicklas 917       "datafile.notplatform", "File is not used by platform/subtype",
5721 06 Sep 11 nicklas 918       "Checks that all data files are used by the current platform/subtype.",
5721 06 Sep 11 nicklas 919       "File is not used by platform/subtype", Severity.WARNING
3859 18 Oct 07 nicklas 920     );
3859 18 Oct 07 nicklas 921   
5721 06 Sep 11 nicklas 922   /**
5721 06 Sep 11 nicklas 923     Validator rule that checks if there are more than one file
5721 06 Sep 11 nicklas 924     of a file type that doesn't allow multiple files. Default 
5721 06 Sep 11 nicklas 925     severity level is WARNING.
5721 06 Sep 11 nicklas 926     @since 3.0
5721 06 Sep 11 nicklas 927   */
5721 06 Sep 11 nicklas 928   public static final Validator DATAFILE_TOOMANYFILES = new Validator(
5721 06 Sep 11 nicklas 929       "datafile.toomanyfiles", "Too many files",
5721 06 Sep 11 nicklas 930       "Checks if an item has too many files of a type that doesn't " +
5721 06 Sep 11 nicklas 931       "allow more than one file.",
5721 06 Sep 11 nicklas 932       "Too many files", Severity.WARNING
5721 06 Sep 11 nicklas 933     );
7005 09 Nov 15 nicklas 934
7005 09 Nov 15 nicklas 935   /**
7005 09 Nov 15 nicklas 936     Validator rule that checks if a kit has been used after
7005 09 Nov 15 nicklas 937     it's exiration date. Default severity level is WARNING.
7005 09 Nov 15 nicklas 938     @since 3.7
7005 09 Nov 15 nicklas 939   */
7005 09 Nov 15 nicklas 940   public static final Validator KIT_USED_AFTER_EXPIRATIONDATE = new Validator(
7005 09 Nov 15 nicklas 941       "kit.usedafterexpirationdate", "Kit used after expiration date",
7005 09 Nov 15 nicklas 942       "Checks if a kit has been used after the expiration date.",
7005 09 Nov 15 nicklas 943       "Kit used after expiration date", Severity.WARNING
7005 09 Nov 15 nicklas 944     );
7005 09 Nov 15 nicklas 945
3033 15 Dec 06 nicklas 946   private String id;
3033 15 Dec 06 nicklas 947   private String title;
3033 15 Dec 06 nicklas 948   private String description;
3033 15 Dec 06 nicklas 949   private String failureSummary;
3033 15 Dec 06 nicklas 950   private Severity defaultSeverity;
3033 15 Dec 06 nicklas 951   
3033 15 Dec 06 nicklas 952   /**
3033 15 Dec 06 nicklas 953     Create a new validator.
3033 15 Dec 06 nicklas 954     @param id A unique ID among all validators
3033 15 Dec 06 nicklas 955     @param title The title for the validation rule 
3033 15 Dec 06 nicklas 956     @param description A lengthier description of the validation that takes place
3033 15 Dec 06 nicklas 957     @param failureSummary A short summary that is displayed when the validation
3033 15 Dec 06 nicklas 958       fails
3033 15 Dec 06 nicklas 959     @param defaultSeverity The default severity level of the validation
3033 15 Dec 06 nicklas 960   */
3033 15 Dec 06 nicklas 961   public Validator(String id, String title, String description, String failureSummary, Severity defaultSeverity)
3033 15 Dec 06 nicklas 962   {
3033 15 Dec 06 nicklas 963     this.id = id;
3033 15 Dec 06 nicklas 964     this.title = title;
3033 15 Dec 06 nicklas 965     this.description = description;
3033 15 Dec 06 nicklas 966     this.failureSummary = failureSummary;
3033 15 Dec 06 nicklas 967     this.defaultSeverity = defaultSeverity;
3033 15 Dec 06 nicklas 968   }
3033 15 Dec 06 nicklas 969   
3033 15 Dec 06 nicklas 970   /**
3033 15 Dec 06 nicklas 971     Get the unique ID of this validator.
3033 15 Dec 06 nicklas 972   */
6047 18 Apr 12 nicklas 973   @Override
3033 15 Dec 06 nicklas 974   public String getId()
3033 15 Dec 06 nicklas 975   {
3033 15 Dec 06 nicklas 976     return id;
3033 15 Dec 06 nicklas 977   }
3033 15 Dec 06 nicklas 978   
3033 15 Dec 06 nicklas 979   /**
3033 15 Dec 06 nicklas 980     Get the title of this validator.
3033 15 Dec 06 nicklas 981   */
6047 18 Apr 12 nicklas 982   @Override
3033 15 Dec 06 nicklas 983   public String getTitle()
3033 15 Dec 06 nicklas 984   {
3033 15 Dec 06 nicklas 985     return title;
3033 15 Dec 06 nicklas 986   }
3033 15 Dec 06 nicklas 987   
3033 15 Dec 06 nicklas 988   /**
3033 15 Dec 06 nicklas 989     Get a lengthier description of the validation that takes place
3033 15 Dec 06 nicklas 990   */
6047 18 Apr 12 nicklas 991   @Override
3033 15 Dec 06 nicklas 992   public String getDescription()
3033 15 Dec 06 nicklas 993   {
3033 15 Dec 06 nicklas 994     return description;
3033 15 Dec 06 nicklas 995   }
3033 15 Dec 06 nicklas 996   
3033 15 Dec 06 nicklas 997   /**
3033 15 Dec 06 nicklas 998     Get a short summary that is displayed when the validation fails
3033 15 Dec 06 nicklas 999   */
6047 18 Apr 12 nicklas 1000   @Override
3033 15 Dec 06 nicklas 1001   public String getFailureSummary()
3033 15 Dec 06 nicklas 1002   {
3033 15 Dec 06 nicklas 1003     return failureSummary;
3033 15 Dec 06 nicklas 1004   }
3033 15 Dec 06 nicklas 1005   
3033 15 Dec 06 nicklas 1006   /**
3033 15 Dec 06 nicklas 1007     Get the default severity level.
3033 15 Dec 06 nicklas 1008   */
6047 18 Apr 12 nicklas 1009   @Override
3033 15 Dec 06 nicklas 1010   public Severity getDefaultSeverity()
3033 15 Dec 06 nicklas 1011   {
3033 15 Dec 06 nicklas 1012     return defaultSeverity;
3033 15 Dec 06 nicklas 1013   }
3033 15 Dec 06 nicklas 1014 }