1 /* 2 Licensed to the Apache Software Foundation (ASF) under one 3 or more contributor license agreements. See the NOTICE file 4 distributed with this work for additional information 5 regarding copyright ownership. The ASF licenses this file 6 to you under the Apache License, Version 2.0 (the 7 "License"); you may not use this file except in compliance 8 with the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12 Unless required by applicable law or agreed to in writing, 13 software distributed under the License is distributed on an 14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 15 KIND, either express or implied. See the License for the 16 specific language governing permissions and limitations 17 under the License. 18 =================== DO NOT EDIT THIS FILE ==================== 19 Generated by Modello 2.4.0, 20 any modifications will be overwritten. 21 ============================================================== 22 */ 23 24 package org.apache.maven.settings; 25 26 /** 27 * 28 * 29 * This is the property specification used to activate a 30 * profile. If the value field is empty, 31 * then the existence of the named property will activate 32 * the profile, otherwise it does a case-sensitive 33 * match against the property value as well. 34 * 35 * 36 * 37 * @version $Revision$ $Date$ 38 */ 39 @SuppressWarnings( "all" ) 40 public class ActivationProperty 41 implements java.io.Serializable, java.lang.Cloneable 42 { 43 44 //--------------------------/ 45 //- Class/Member Variables -/ 46 //--------------------------/ 47 48 /** 49 * 50 * The name of the property to be used to activate 51 * a profile. 52 * 53 */ 54 private String name; 55 56 /** 57 * 58 * The value of the property to be used to activate 59 * a profile. 60 * 61 */ 62 private String value; 63 64 65 //-----------/ 66 //- Methods -/ 67 //-----------/ 68 69 /** 70 * Method clone. 71 * 72 * @return ActivationProperty 73 */ 74 public ActivationProperty clone() 75 { 76 try 77 { 78 ActivationProperty copy = (ActivationProperty) super.clone(); 79 80 return copy; 81 } 82 catch ( java.lang.Exception ex ) 83 { 84 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName() 85 + " does not support clone()" ).initCause( ex ); 86 } 87 } //-- ActivationProperty clone() 88 89 /** 90 * Get the name of the property to be used to activate a 91 * profile. 92 * 93 * @return String 94 */ 95 public String getName() 96 { 97 return this.name; 98 } //-- String getName() 99 100 /** 101 * Get the value of the property to be used to activate a 102 * profile. 103 * 104 * @return String 105 */ 106 public String getValue() 107 { 108 return this.value; 109 } //-- String getValue() 110 111 /** 112 * Set the name of the property to be used to activate a 113 * profile. 114 * 115 * @param name a name object. 116 */ 117 public void setName( String name ) 118 { 119 this.name = name; 120 } //-- void setName( String ) 121 122 /** 123 * Set the value of the property to be used to activate a 124 * profile. 125 * 126 * @param value a value object. 127 */ 128 public void setValue( String value ) 129 { 130 this.value = value; 131 } //-- void setValue( String ) 132 133 }