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