View Javadoc
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 an activator which will detect an operating
30   * system's attributes in order to activate
31   *         its profile.
32   *         
33   *       
34   * 
35   * @version $Revision$ $Date$
36   */
37  @SuppressWarnings( "all" )
38  public class ActivationOS
39      implements java.io.Serializable, java.lang.Cloneable
40  {
41  
42        //--------------------------/
43       //- Class/Member Variables -/
44      //--------------------------/
45  
46      /**
47       * 
48       *             The name of the OS to be used to activate a
49       * profile.
50       *           
51       */
52      private String name;
53  
54      /**
55       * 
56       *             The general family of the OS to be used to
57       * activate a
58       *             profile (e.g. 'windows')
59       *           .
60       */
61      private String family;
62  
63      /**
64       * 
65       *             The architecture of the OS to be used to
66       * activate a profile.
67       *           
68       */
69      private String arch;
70  
71      /**
72       * 
73       *             The version of the OS to be used to activate a
74       * profile.
75       *           
76       */
77      private String version;
78  
79  
80        //-----------/
81       //- Methods -/
82      //-----------/
83  
84      /**
85       * Method clone.
86       * 
87       * @return ActivationOS
88       */
89      public ActivationOS clone()
90      {
91          try
92          {
93              ActivationOS copy = (ActivationOS) super.clone();
94  
95              return copy;
96          }
97          catch ( java.lang.Exception ex )
98          {
99              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
100                 + " does not support clone()" ).initCause( ex );
101         }
102     } //-- ActivationOS clone()
103 
104     /**
105      * Get the architecture of the OS to be used to activate a
106      * profile.
107      * 
108      * @return String
109      */
110     public String getArch()
111     {
112         return this.arch;
113     } //-- String getArch()
114 
115     /**
116      * Get the general family of the OS to be used to activate a
117      *             profile (e.g. 'windows').
118      * 
119      * @return String
120      */
121     public String getFamily()
122     {
123         return this.family;
124     } //-- String getFamily()
125 
126     /**
127      * Get the name of the OS to be used to activate a profile.
128      * 
129      * @return String
130      */
131     public String getName()
132     {
133         return this.name;
134     } //-- String getName()
135 
136     /**
137      * Get the version of the OS to be used to activate a profile.
138      * 
139      * @return String
140      */
141     public String getVersion()
142     {
143         return this.version;
144     } //-- String getVersion()
145 
146     /**
147      * Set the architecture of the OS to be used to activate a
148      * profile.
149      * 
150      * @param arch a arch object.
151      */
152     public void setArch( String arch )
153     {
154         this.arch = arch;
155     } //-- void setArch( String )
156 
157     /**
158      * Set the general family of the OS to be used to activate a
159      *             profile (e.g. 'windows').
160      * 
161      * @param family a family object.
162      */
163     public void setFamily( String family )
164     {
165         this.family = family;
166     } //-- void setFamily( String )
167 
168     /**
169      * Set the name of the OS to be used to activate a profile.
170      * 
171      * @param name a name object.
172      */
173     public void setName( String name )
174     {
175         this.name = name;
176     } //-- void setName( String )
177 
178     /**
179      * Set the version of the OS to be used to activate a profile.
180      * 
181      * @param version a version object.
182      */
183     public void setVersion( String version )
184     {
185         this.version = version;
186     } //-- void setVersion( String )
187 
188 }