View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2012-01-20 18:05:12,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.settings;
9   
10  /**
11   * 
12   *         
13   *         This is the property specification used to activate a
14   * profile. If the value field is empty,
15   *         then the existence of the named property will activate
16   * the profile, otherwise it does a case-sensitive
17   *         match against the property value as well.
18   *         
19   *       
20   * 
21   * @version $Revision$ $Date$
22   */
23  @SuppressWarnings( "all" )
24  public class ActivationProperty
25      implements java.io.Serializable, java.lang.Cloneable
26  {
27  
28        //--------------------------/
29       //- Class/Member Variables -/
30      //--------------------------/
31  
32      /**
33       * 
34       *             The name of the property to be used to activate
35       * a profile.
36       *           
37       */
38      private String name;
39  
40      /**
41       * 
42       *             The value of the property to be used to activate
43       * a profile.
44       *           
45       */
46      private String value;
47  
48  
49        //-----------/
50       //- Methods -/
51      //-----------/
52  
53      /**
54       * Method clone.
55       * 
56       * @return ActivationProperty
57       */
58      public ActivationProperty clone()
59      {
60          try
61          {
62              ActivationProperty copy = (ActivationProperty) super.clone();
63  
64              return copy;
65          }
66          catch ( java.lang.Exception ex )
67          {
68              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
69                  + " does not support clone()" ).initCause( ex );
70          }
71      } //-- ActivationProperty clone()
72  
73      /**
74       * Get the name of the property to be used to activate a
75       * profile.
76       * 
77       * @return String
78       */
79      public String getName()
80      {
81          return this.name;
82      } //-- String getName()
83  
84      /**
85       * Get the value of the property to be used to activate a
86       * profile.
87       * 
88       * @return String
89       */
90      public String getValue()
91      {
92          return this.value;
93      } //-- String getValue()
94  
95      /**
96       * Set the name of the property to be used to activate a
97       * profile.
98       * 
99       * @param name
100      */
101     public void setName( String name )
102     {
103         this.name = name;
104     } //-- void setName( String )
105 
106     /**
107      * Set the value of the property to be used to activate a
108      * profile.
109      * 
110      * @param value
111      */
112     public void setValue( String value )
113     {
114         this.value = value;
115     } //-- void setValue( String )
116 
117 }