/*OsmUi is a user interface for Osmosis Copyright (C) 2011 Verena Käfer, Peter Vollmer, Niklas Schnelle This program 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 any later version. This program 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 this program. If not, see <http://www.gnu.org/licenses/>. */ /** * */ package de.osmui.model.pipelinemodel.parameters; import java.io.Serializable; import de.osmui.model.osm.TParameter; /** * This class is used to store all Parameters of types not covered by another specific class * * @author Niklas Schnelle, Peter Vollmer, Verena käfer * * @see OtherParameterTest * */ public class OtherParameter extends AbstractParameter implements Serializable { private static final long serialVersionUID = -2583615666697475187L; protected String value; public OtherParameter(TParameter desc, String value){ super(desc, value); setValue(value); } /* (non-Javadoc) * @see de.osumi.model.pipelinemodel.AbstractParameter#getCommandlineForm() */ @Override public String getCommandlineForm() { return this.getName()+"=\""+this.getValue()+"\""; } /* (non-Javadoc) * @see de.osumi.model.pipelinemodel.AbstractParameter#getValue() */ @Override public String getValue() { return value; } /* (non-Javadoc) * @see de.osumi.model.pipelinemodel.AbstractParameter#setValue(java.lang.String) */ @Override public void setValue(String s) throws IllegalArgumentException { this.value=s; } }