Java tutorial
/* * Copyright (c) 2012. The Genome Analysis Centre, Norwich, UK * MISO project contacts: Robert Davey, Mario Caccamo @ TGAC * ********************************************************************* * * This file is part of MISO. * * MISO is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * MISO 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with MISO. If not, see <http://www.gnu.org/licenses/>. * * ********************************************************************* */ package uk.ac.bbsrc.tgac.browser.process.parameter; import org.springframework.util.StringUtils; import uk.ac.ebi.fgpt.conan.model.AbstractConanParameter; import java.io.File; import java.io.IOException; /** * uk.ac.bbsrc.tgac.miso.analysis.parameter * <p/> * Info * * @author Rob Davey * @date 14/10/11 * @since 0.1.2 */ public class PathParameter extends AbstractConanParameter implements Optionable, Transientable { private boolean optional = false; private boolean t = false; public PathParameter(String name) { super(name); } public PathParameter(String name, boolean isBoolean) { super(name, isBoolean); } public PathParameter(String name, String description) { super(name, description); } public PathParameter(String name, String description, boolean isBoolean) { super(name, description, isBoolean); } @Override public boolean validateParameterValue(String value) { return !StringUtils.containsWhitespace(value) && !value.contains("~"); } @Override public boolean isOptional() { return optional; } @Override public void setOptional(boolean optional) { this.optional = optional; } @Override public boolean isTransient() { return t; } @Override public void setTransient(boolean t) { this.t = t; } }