001    /*******************************************************************************
002     * Portions created by Sebastian Thomschke are copyright (c) 2005-2011 Sebastian
003     * Thomschke.
004     * 
005     * All Rights Reserved. This program and the accompanying materials
006     * are made available under the terms of the Eclipse Public License v1.0
007     * which accompanies this distribution, and is available at
008     * http://www.eclipse.org/legal/epl-v10.html
009     * 
010     * Contributors:
011     *     Sebastian Thomschke - initial implementation.
012     *******************************************************************************/
013    package net.sf.oval;
014    
015    import java.util.Collection;
016    
017    /**
018     * @author Sebastian Thomschke
019     */
020    public class ConstraintSet
021    {
022            private Collection<Check> checks;
023    
024            private final String id;
025    
026            public ConstraintSet(final String id)
027            {
028                    this.id = id;
029            }
030    
031            /**
032             * @return the checks
033             */
034            public Collection<Check> getChecks()
035            {
036                    return checks;
037            }
038    
039            /**
040             * @return the id
041             */
042            public String getId()
043            {
044                    return id;
045            }
046    
047            /**
048             * @param checks the checks to set
049             */
050            public void setChecks(final Collection<Check> checks)
051            {
052                    this.checks = checks;
053            }
054    }