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.configuration.pojo.elements;
014    
015    import java.util.List;
016    
017    import net.sf.oval.Check;
018    import net.sf.oval.CheckExclusion;
019    
020    /**
021     * @author Sebastian Thomschke
022     */
023    public class ParameterConfiguration extends ConfigurationElement
024    {
025            private static final long serialVersionUID = 1L;
026    
027            /**
028             * the type of the parameter
029             */
030            public Class< ? > type;
031    
032            /**
033             * the checks for the parameter
034             */
035            public List<Check> checks;
036    
037            /**
038             * the check exclusions for the parameter
039             */
040            public List<CheckExclusion> checkExclusions;
041    
042            public boolean hasCheckExclusions()
043            {
044                    return checkExclusions != null && checkExclusions.size() > 0;
045            }
046    
047            public boolean hasChecks()
048            {
049                    return checks != null && checks.size() > 0;
050            }
051    }