Main Page | Packages | Class Hierarchy | Class List | File List | Class Members

Settings.java

Go to the documentation of this file.
00001 //$Id: Settings_8java-source.html 336 2010-01-12 20:03:17Z linus $
00002 //Copyright (c) 2003, Mikael Albertsson, Mattias Danielsson, Per Engström, 
00003 //Fredrik Gröndahl, Martin Gyllensten, Anna Kent, Anders Olsson, 
00004 //Mattias Sidebäck.
00005 //All rights reserved.
00006 //
00007 //Redistribution and use in source and binary forms, with or without 
00008 //modification, are permitted provided that the following conditions are met:
00009 //
00010 //* Redistributions of source code must retain the above copyright notice, 
00011 //  this list of conditions and the following disclaimer.
00012 // 
00013 //* Redistributions in binary form must reproduce the above copyright 
00014 //  notice, this list of conditions and the following disclaimer in the 
00015 //  documentation and/or other materials provided with the distribution.
00016 //
00017 //* Neither the name of the University of Linköping nor the names of its 
00018 //  contributors may be used to endorse or promote products derived from 
00019 //  this software without specific prior written permission. 
00020 //
00021 //THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
00022 //AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
00023 //IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
00024 //ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
00025 //LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
00026 //CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
00027 //SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
00028 //INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
00029 //CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
00030 //ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 
00031 //THE POSSIBILITY OF SUCH DAMAGE.
00032 
00033 package org.argoprint.ui;
00034 
00035 import java.lang.*;
00036 
00037 /**
00038  * Stores and manipulates settings when ArgoPrint is running.
00039  * Todo: Add control to se if path-/filenames are correct.
00040  *
00041  * @author matda701, Mattias Danielsson
00042  */
00043 public class Settings{
00044     
00045     /**
00046      * The directory where files (diagrams) created by ArgoPrint
00047      * is to be stored.
00048      */
00049     private String _outputDir;
00050  
00051     /**
00052      * The name of the output XML-file
00053      */
00054     private String _outputFile;
00055     
00056     /**
00057      * The path to the template to be processed by Argoprint
00058      */
00059     private String _template;
00060     
00061     //private String _inputLang;
00062     //private String _model;
00063     
00064     /**
00065      * Constructor.
00066      */
00067     public Settings(){}
00068 
00069     /**
00070      * Constructor. Sets attributes to corresponding argument.
00071      */
00072     public Settings(String template, String file, String dir){
00073     _outputDir = new String(dir);
00074     _outputFile = new String(file);
00075     _template = new String(template);
00076     }
00077     
00078     /**
00079      * Setter for outputDir
00080      */
00081     public void setOutputDir(String dir){
00082     _outputDir = new String(dir);
00083     }
00084 
00085     /**
00086      * Setter for outputFile
00087      */
00088     public void setOutputFile(String file){
00089     _outputFile = new String(file);
00090     }
00091     
00092     /**
00093      * Setter for the path template 
00094      */
00095     public void setTemplate(String template){
00096     _template = new String(template);
00097     }
00098 
00099     /**
00100      * Getter for outputDir
00101      */
00102     public String getOutputDir(){
00103     return _outputDir;
00104     }
00105 
00106     /**
00107      * Getter for outputFile
00108      */
00109     public String getOutputFile(){
00110     return _outputFile;
00111     }
00112 
00113     /**
00114      * Getter for template
00115      */
00116     public String getTemplate(){
00117     return _template;
00118     }
00119 }
00120 

Generated on Tue Dec 2 22:50:56 2003 for ArgoPrint by doxygen 1.3.4