View Javadoc
1   /*******************************************************************************
2    * Portions created by Sebastian Thomschke are copyright (c) 2005-2011 Sebastian
3    * Thomschke.
4    * 
5    * All Rights Reserved. This program and the accompanying materials
6    * are made available under the terms of the Eclipse Public License v1.0
7    * which accompanies this distribution, and is available at
8    * http://www.eclipse.org/legal/epl-v10.html
9    * 
10   * Contributors:
11   *     Sebastian Thomschke - initial implementation.
12   *******************************************************************************/
13  package net.sf.oval.configuration.pojo.elements;
14  
15  import java.util.List;
16  
17  import net.sf.oval.Check;
18  import net.sf.oval.CheckExclusion;
19  
20  /**
21   * @author Sebastian Thomschke
22   */
23  public class ParameterConfiguration extends ConfigurationElement
24  {
25  	private static final long serialVersionUID = 1L;
26  
27  	/**
28  	 * the type of the parameter
29  	 */
30  	public Class< ? > type;
31  
32  	/**
33  	 * the checks for the parameter
34  	 */
35  	public List<Check> checks;
36  
37  	/**
38  	 * the check exclusions for the parameter
39  	 */
40  	public List<CheckExclusion> checkExclusions;
41  
42  	public boolean hasCheckExclusions()
43  	{
44  		return checkExclusions != null && checkExclusions.size() > 0;
45  	}
46  
47  	public boolean hasChecks()
48  	{
49  		return checks != null && checks.size() > 0;
50  	}
51  }