01: /*******************************************************************************
02: * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
03: * Thomschke.
04: *
05: * All Rights Reserved. This program and the accompanying materials
06: * are made available under the terms of the Eclipse Public License v1.0
07: * which accompanies this distribution, and is available at
08: * http://www.eclipse.org/legal/epl-v10.html
09: *
10: * Contributors:
11: * Sebastian Thomschke - initial implementation.
12: *******************************************************************************/package net.sf.oval.configuration.pojo.elements;
13:
14: import java.util.Set;
15:
16: /**
17: * @author Sebastian Thomschke
18: */
19: public class ClassConfiguration extends ConfigurationElement {
20: private static final long serialVersionUID = 1L;
21:
22: /**
23: * class type
24: */
25: public Class<?> type;
26:
27: /**
28: * object level constraints configuration
29: */
30: public ObjectConfiguration objectConfiguration;
31:
32: /**
33: * field constraints configuration
34: */
35: public Set<FieldConfiguration> fieldConfigurations;
36:
37: /**
38: * constructor constraints configuration
39: */
40: public Set<ConstructorConfiguration> constructorConfigurations;
41:
42: /**
43: * method constraints configuration
44: */
45: public Set<MethodConfiguration> methodConfigurations;
46:
47: /**
48: * Automatically apply field constraints to
49: * the corresponding parameters of constructors
50: * declared within the same class. A corresponding paramater
51: * is a parameter with the same name and type as the field.
52: */
53: public Boolean applyFieldConstraintsToConstructors;
54:
55: /**
56: * Automatically apply field constraints to the
57: * parameters of the corresponding setter methods
58: * declared within the same class. A corresponding setter
59: * method is a method following the JavaBean convention and
60: * its parameter has as the same type as the field.
61: */
62: public Boolean applyFieldConstraintsToSetters;
63:
64: /**
65: * Specifies if invariants are checked prior and after
66: * calls to non-private methods and constructors.
67: */
68: public Boolean checkInvariants;
69: }
|