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;
14  
15  import java.util.Collection;
16  
17  /**
18   * @author Sebastian Thomschke
19   */
20  public class ConstraintSet
21  {
22  	private Collection<Check> checks;
23  
24  	private final String id;
25  
26  	public ConstraintSet(final String id)
27  	{
28  		this.id = id;
29  	}
30  
31  	/**
32  	 * @return the checks
33  	 */
34  	public Collection<Check> getChecks()
35  	{
36  		return checks;
37  	}
38  
39  	/**
40  	 * @return the id
41  	 */
42  	public String getId()
43  	{
44  		return id;
45  	}
46  
47  	/**
48  	 * @param checks the checks to set
49  	 */
50  	public void setChecks(final Collection<Check> checks)
51  	{
52  		this.checks = checks;
53  	}
54  }