Coverage Report - org.deduced.generator.java.GeneratorOptions
 
Classes in this File Line Coverage Branch Coverage Complexity
GeneratorOptions
100%
19/19
N/A
1
 
 1  
 /**
 2  
  *    Copyright 2005-2011 Steve McDuff d-duff@users.sourceforge.net
 3  
  *
 4  
  * Licensed under the Apache License, Version 2.0 (the "License");
 5  
  * you may not use this file except in compliance with the License.
 6  
  * You may obtain a copy of the License at
 7  
  *
 8  
  * http://www.apache.org/licenses/LICENSE-2.0
 9  
  *
 10  
  * Unless required by applicable law or agreed to in writing, software
 11  
  * distributed under the License is distributed on an "AS IS" BASIS,
 12  
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 13  
  * See the License for the specific language governing permissions and
 14  
  * limitations under the License.
 15  
  */
 16  
 package org.deduced.generator.java;
 17  
 
 18  
 /**
 19  
  * Options used to run the java file generator
 20  
  * 
 21  
  * @author Steve McDuff
 22  
  */
 23  
 public class GeneratorOptions
 24  
 {
 25  
 
 26  
         /**
 27  
          * the show help option
 28  
          */
 29  7
         private boolean showHelp = false;
 30  
 
 31  
         /**
 32  
          * are XML loading errors ignored while generating
 33  
          */
 34  7
         private boolean ignoringXmlLoadingErrors = false;
 35  
 
 36  
         /**
 37  
          * input file name used to generate java files
 38  
          */
 39  
         private String inputFileName;
 40  
 
 41  
         /**
 42  
          * folder where the generated files will be created
 43  
          */
 44  
         private String outputFolderName;
 45  
 
 46  
         /**
 47  
          * list of all the XML schema files to load before generating the input file
 48  
          */
 49  
         private String[] dependencyFileNameList;
 50  
 
 51  
         /**
 52  
          * constructor
 53  
          */
 54  
         public GeneratorOptions()
 55  7
         {
 56  
 
 57  7
         }
 58  
 
 59  
         /**
 60  
          * @return true if the setting is to ignore XML loading errors
 61  
          */
 62  
         public boolean isIgnoringXmlLoadingErrors()
 63  
         {
 64  12
                 return ignoringXmlLoadingErrors;
 65  
         }
 66  
 
 67  
         /**
 68  
          * set the setting to ignore XML loading errors
 69  
          * 
 70  
          * @param setIgnoringXmlLoadingErrors the setting to ignore XML loading
 71  
          *            errors
 72  
          */
 73  
         public void setIgnoringXmlLoadingErrors(
 74  
                 boolean setIgnoringXmlLoadingErrors)
 75  
         {
 76  10
                 ignoringXmlLoadingErrors = setIgnoringXmlLoadingErrors;
 77  10
         }
 78  
 
 79  
         /**
 80  
          * 
 81  
          * @return true if the option to show help is selected
 82  
          */
 83  
         public boolean isShowHelp()
 84  
         {
 85  7
                 return showHelp;
 86  
         }
 87  
 
 88  
         /**
 89  
          * set option to show help
 90  
          * 
 91  
          * @param setShowHelp option to show help
 92  
          */
 93  
         public void setShowHelp(
 94  
                 boolean setShowHelp)
 95  
         {
 96  8
                 showHelp = setShowHelp;
 97  8
         }
 98  
 
 99  
         /**
 100  
          * get the input file name
 101  
          * 
 102  
          * @return the input file name
 103  
          */
 104  
         public String getInputFileName()
 105  
         {
 106  22
                 return inputFileName;
 107  
         }
 108  
 
 109  
         /**
 110  
          * set the input file name
 111  
          * 
 112  
          * @param setInputFileName the input file name
 113  
          */
 114  
         public void setInputFileName(
 115  
                 String setInputFileName)
 116  
         {
 117  12
                 inputFileName = setInputFileName;
 118  12
         }
 119  
 
 120  
         /**
 121  
          * get the output folder name
 122  
          * 
 123  
          * @return the output folder name
 124  
          */
 125  
         public String getOutputFolderName()
 126  
         {
 127  6
                 return outputFolderName;
 128  
         }
 129  
 
 130  
         /**
 131  
          * set the output folder name
 132  
          * 
 133  
          * @param setOutputFolderName the output folder name
 134  
          */
 135  
         public void setOutputFolderName(
 136  
                 String setOutputFolderName)
 137  
         {
 138  9
                 outputFolderName = setOutputFolderName;
 139  9
         }
 140  
 
 141  
         /**
 142  
          * get the dependency file name list
 143  
          * 
 144  
          * @return the dependency file name list
 145  
          */
 146  
         public String[] getDependencyFileNameList()
 147  
         {
 148  14
                 return dependencyFileNameList;
 149  
         }
 150  
 
 151  
         /**
 152  
          * set the dependency file name list
 153  
          * 
 154  
          * @param setDependencyFileNameList the dependency file name list
 155  
          */
 156  
         public void setDependencyFileNameList(
 157  
                 String[] setDependencyFileNameList)
 158  
         {
 159  11
                 dependencyFileNameList = setDependencyFileNameList;
 160  11
         }
 161  
 
 162  
 }