1 /* 2 =================== DO NOT EDIT THIS FILE ==================== 3 Generated by Modello 1.0.1 on 2009-09-09 03:30:24, 4 any modifications will be overwritten. 5 ============================================================== 6 */ 7 8 package org.apache.maven.model; 9 10 /** 11 * Modifications to the build process which is activated based on 12 * environmental 13 * parameters or command line arguments. 14 * 15 * @version $Revision$ $Date$ 16 */ 17 public class Profile 18 extends ModelBase 19 implements java.io.Serializable 20 { 21 22 //--------------------------/ 23 //- Class/Member Variables -/ 24 //--------------------------/ 25 26 /** 27 * The identifier of this build profile. This is used for 28 * command line 29 * activation, and identifies profiles to be 30 * merged. 31 * 32 */ 33 private String id; 34 35 /** 36 * The conditional logic which will automatically trigger the 37 * inclusion of this 38 * profile. 39 */ 40 private Activation activation; 41 42 /** 43 * Information required to build the project. 44 */ 45 private BuildBase build; 46 47 48 //-----------/ 49 //- Methods -/ 50 //-----------/ 51 52 /** 53 * Get the conditional logic which will automatically trigger 54 * the inclusion of this 55 * profile. 56 * 57 * @return Activation 58 */ 59 public Activation getActivation() 60 { 61 return this.activation; 62 } //-- Activation getActivation() 63 64 /** 65 * Get information required to build the project. 66 * 67 * @return BuildBase 68 */ 69 public BuildBase getBuild() 70 { 71 return this.build; 72 } //-- BuildBase getBuild() 73 74 /** 75 * Get the identifier of this build profile. This is used for 76 * command line 77 * activation, and identifies profiles to be 78 * merged. 79 * 80 * @return String 81 */ 82 public String getId() 83 { 84 return this.id; 85 } //-- String getId() 86 87 /** 88 * Set the conditional logic which will automatically trigger 89 * the inclusion of this 90 * profile. 91 * 92 * @param activation 93 */ 94 public void setActivation( Activation activation ) 95 { 96 this.activation = activation; 97 } //-- void setActivation( Activation ) 98 99 /** 100 * Set information required to build the project. 101 * 102 * @param build 103 */ 104 public void setBuild( BuildBase build ) 105 { 106 this.build = build; 107 } //-- void setBuild( BuildBase ) 108 109 /** 110 * Set the identifier of this build profile. This is used for 111 * command line 112 * activation, and identifies profiles to be 113 * merged. 114 * 115 * @param id 116 */ 117 public void setId( String id ) 118 { 119 this.id = id; 120 } //-- void setId( String ) 121 122 123 124 // We don't want this to be parseable...it's sort of 'hidden' 125 // default source for this profile is in the pom itself. 126 private String source = "pom"; 127 128 public void setSource( String source ) 129 { 130 this.source = source; 131 } 132 133 public String getSource() 134 { 135 return source; 136 } 137 138 /** 139 * @see java.lang.Object#toString() 140 */ 141 public String toString() 142 { 143 return "Profile {id: " + getId() + ", source: " + getSource() + "}"; 144 } 145 146 147 }