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   *     Chris Pheby - inspectInterfaces
13   *******************************************************************************/
14  package net.sf.oval.configuration.pojo.elements;
15  
16  import java.util.Set;
17  
18  /**
19   * @author Sebastian Thomschke
20   */
21  public class ClassConfiguration extends ConfigurationElement
22  {
23  	private static final long serialVersionUID = 1L;
24  
25  	/**
26  	 * class type
27  	 */
28  	public Class< ? > type;
29  
30  	/**
31  	 * object level constraints configuration
32  	 */
33  	public ObjectConfiguration objectConfiguration;
34  
35  	/**
36  	 * field constraints configuration
37  	 */
38  	public Set<FieldConfiguration> fieldConfigurations;
39  
40  	/**
41  	 * constructor constraints configuration
42  	 */
43  	public Set<ConstructorConfiguration> constructorConfigurations;
44  
45  	/**
46  	 * method constraints configuration
47  	 */
48  	public Set<MethodConfiguration> methodConfigurations;
49  
50  	/**
51  	 * Automatically apply field constraints to the corresponding parameters
52  	 * of constructors declared within the same class. A corresponding
53  	 * parameter is a parameter with the same name and type as the field.
54  	 */
55  	public Boolean applyFieldConstraintsToConstructors;
56  
57  	/**
58  	 * Automatically apply field constraints to the parameters of the
59  	 * corresponding setter methods declared within the same class. A
60  	 * corresponding setter method is a method following the JavaBean
61  	 * convention and its parameter has as the same type as the field.
62  	 */
63  	public Boolean applyFieldConstraintsToSetters;
64  
65  	/**
66  	 * Declares if parameter values of constructors and methods are expected to be not null.
67  	 * This can be weakened by using the @net.sf.oval.constraint.exclusion.Nullable annotation on specific parameters.
68  	 */
69  	public Boolean assertParametersNotNull;
70  
71  	/**
72  	 * Specifies if invariants are checked prior and after calls to
73  	 * non-private methods and constructors.
74  	 */
75  	public Boolean checkInvariants;
76  
77  	/**
78  	 * Specifies whether annotations can be applied to interfaces that this class implements,
79  	 * supporting a documentation function
80  	 */
81  	public Boolean inspectInterfaces;
82  }