001    /*-----------------------------------------------------------------------
002     *  Copyright (C) 2006
003     *  Associated Universities, Inc. Washington DC, USA.
004     *  This program is free software; you can redistribute it and/or
005     *  modify it under the terms of the GNU General Public License as
006     *  published by the Free Software Foundation; either version 2 of
007     *  the License, or (at your option) any later version.
008     *
009     *  This program is distributed in the hope that it will be useful,
010     *  but WITHOUT ANY WARRANTY; without even the implied warranty of
011     *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012     *  GNU General Public License for more details.
013     *
014     *  Correspondence concerning this software should be addressed as follows:
015     *         Internet email: switz@nrao.edu
016     *         Postal address: SSS Software
017     *                         National Radio Astronomy Observatory
018     *                         Post Office Box 0
019     *                         Socorro, NM 87801  USA
020     *-----------------------------------------------------------------------*/
021    package edu.nrao.sss.model.parameter;
022    
023    import java.util.ArrayList;
024    import java.util.List;
025    
026    import edu.nrao.sss.validation.AbstractValidator;
027    import edu.nrao.sss.validation.Validation;
028    import edu.nrao.sss.validation.ValidationPurpose;
029    
030    public class BatchUpdateFileValidator extends AbstractValidator<BatchUpdateFile> {
031    
032        /** Creates a new instance. */
033        public BatchUpdateFileValidator() {
034            super(BatchUpdateFileValidator.class.getName(), BatchUpdateFile.class);
035        }
036    
037        /*
038         * (non-Javadoc)
039         *
040         * @see AbstractValidator#makeValidationList(ValidationPurpose)
041         */
042        @Override
043        protected List<Validation<BatchUpdateFile>> makeValidationList(ValidationPurpose purpose) {
044            List<Validation<BatchUpdateFile>> validations = new ArrayList<Validation<BatchUpdateFile>>();
045            validations.add(new BatchUpdateFileValidation(this, purpose));
046            return validations;
047        }
048    }