1 package org.codehaus.mojo.appassembler; 2 3 /* 4 * The MIT License 5 * 6 * Copyright (c) 2006-2012, The Codehaus 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a copy of 9 * this software and associated documentation files (the "Software"), to deal in 10 * the Software without restriction, including without limitation the rights to 11 * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 * of the Software, and to permit persons to whom the Software is furnished to do 13 * so, subject to the following conditions: 14 * 15 * The above copyright notice and this permission notice shall be included in all 16 * copies or substantial portions of the Software. 17 * 18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 * SOFTWARE. 25 */ 26 27 import java.util.List; 28 import java.util.Properties; 29 30 /** 31 * This class contains the generator configuration. 32 * 33 * @author <a href="mailto:trygve.laugstol@objectware.no">Trygve Laugstøl</a> 34 */ 35 public class GeneratorConfiguration 36 { 37 private String generator; 38 39 private Properties configuration; 40 41 /** 42 * The platforms to be included in the generator. This is currently only used in JSW generator. Options are: 43 * "linux-ppc-64", "linux-x86-32", "linux-x86-64", "macosx-ppc-32", "macosx-x86-universal-32", "solaris-sparc-32", 44 * "solaris-sparc-64", "solaris-x86-32", "windows-x86-32 45 */ 46 private List<String> includes; 47 48 /** 49 * @return Current generator. 50 */ 51 public String getGenerator() 52 { 53 return generator; 54 } 55 56 /** 57 * Set the generator. 58 * 59 * @param generator 60 */ 61 public void setGenerator( String generator ) 62 { 63 this.generator = generator; 64 } 65 66 /** 67 * Get the configuration. 68 * 69 * @return The configuration. 70 */ 71 public Properties getConfiguration() 72 { 73 return configuration; 74 } 75 76 /** 77 * Set the configuration. 78 * 79 * @param configuration Set the given configuration. 80 */ 81 public void setConfiguration( Properties configuration ) 82 { 83 this.configuration = configuration; 84 } 85 86 /* 87 * (non-Javadoc) 88 * @see java.lang.Object#toString() 89 */ 90 public String toString() 91 { 92 return "generator = " + generator + "; configuration = " + configuration; 93 } 94 95 /** 96 * Get the includes. 97 * 98 * @return The includes. 99 */ 100 public List<String> getIncludes() 101 { 102 return includes; 103 } 104 105 /** 106 * Define the includes. 107 * 108 * @param includes set to the given includes. 109 */ 110 public void setIncludes( List<String> includes ) 111 { 112 this.includes = includes; 113 } 114 }