Skip to content
Snippets Groups Projects
Select Git revision
  • 82d5f12c6c64d466138a9632bb3935cedc707000
  • main default protected
  • Kelvinrr-patch-3
  • radius_update
  • revert-616-apollo_pan
  • vims
  • 0.10
  • Kelvinrr-patch-2
  • revert-563-minirf_fix
  • Kelvinrr-patch-1
  • 0.9
  • acpaquette-patch-3
  • acpaquette-patch-2
  • acpaquette-patch-1
  • spiceql
  • ci-coverage
  • 0.10.0
  • 0.9.1
  • 0.9.0
  • 0.8.7
  • 0.8.8
  • 0.8.6
  • 0.8.3
  • 0.8.4
  • 0.8.5
  • 0.8.2
  • 0.8.1
  • 0.8.0
  • 0.7.3
  • 0.7.2
  • 0.7.1
  • 0.7.0
  • 0.6.5
  • 0.6.4
  • 0.6.3
  • 0.6.2
36 results

setup.py

Blame
  • InputParamController.java 1.71 KiB
    package uws.job.parameters;
    
    /*
     * This file is part of UWSLibrary.
     * 
     * UWSLibrary is free software: you can redistribute it and/or modify
     * it under the terms of the GNU Lesser General Public License as published by
     * the Free Software Foundation, either version 3 of the License, or
     * (at your option) any later version.
     * 
     * UWSLibrary is distributed in the hope that it will be useful,
     * but WITHOUT ANY WARRANTY; without even the implied warranty of
     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     * GNU Lesser General Public License for more details.
     * 
     * You should have received a copy of the GNU Lesser General Public License
     * along with UWSLibrary.  If not, see <http://www.gnu.org/licenses/>.
     * 
     * Copyright 2012 - UDS/Centre de Données astronomiques de Strasbourg (CDS)
     */
    
    import uws.UWSException;
    
    /**
     * <p>Lets controlling an input parameter of a UWS job.</p>
     * 
     * @author Gr&eacute;gory Mantelet (CDS)
     * @version 4.0
     */
    public interface InputParamController {
    
    	/**
    	 * Returns the default value of the controlled parameter.
    	 * 
    	 * @return	Default value (<i>null</i> is allowed).
    	 */
    	public Object getDefault();
    
    	/**
    	 * <p>Checks the value of the controlled parameter and builds a new object from this value.</p>
    	 * 
    	 * @param value				Parameter value to check.
    	 * @return					The same value or a new object built from the given value.
    	 * @throws UWSException		If the given value is strongly incorrect.
    	 */
    	public Object check(final Object value) throws UWSException;
    
    	/**
    	 * Tells whether the controlled parameter may be modified after initialization.
    	 * 
    	 * @return	<i>true</i> to allow the modification, <i>false</i> otherwise.
    	 */
    	public boolean allowModification();
    
    }