1 /*
2 =================== DO NOT EDIT THIS FILE ====================
3 Generated by Modello
4 any modifications will be overwritten.
5 ==============================================================
6 */
7
8 package org.apache.continuum.configuration.model;
9
10 /**
11 * Class BuildAgentGroupConfiguration.
12 *
13 * @version $Revision$ $Date$
14 */
15 @SuppressWarnings( "all" )
16 public class BuildAgentGroupConfiguration
17 implements java.io.Serializable
18 {
19
20 //--------------------------/
21 //- Class/Member Variables -/
22 //--------------------------/
23
24 /**
25 * Field name.
26 */
27 private String name;
28
29 /**
30 * Field buildAgents.
31 */
32 private java.util.List<BuildAgentConfiguration> buildAgents;
33
34
35 //-----------/
36 //- Methods -/
37 //-----------/
38
39 /**
40 * Method addBuildAgent.
41 *
42 * @param buildAgentConfiguration
43 */
44 public void addBuildAgent( BuildAgentConfiguration buildAgentConfiguration )
45 {
46 getBuildAgents().add( buildAgentConfiguration );
47 } //-- void addBuildAgent( BuildAgentConfiguration )
48
49 /**
50 * Method getBuildAgents.
51 *
52 * @return List
53 */
54 public java.util.List<BuildAgentConfiguration> getBuildAgents()
55 {
56 if ( this.buildAgents == null )
57 {
58 this.buildAgents = new java.util.ArrayList<BuildAgentConfiguration>();
59 }
60
61 return this.buildAgents;
62 } //-- java.util.List<BuildAgentConfiguration> getBuildAgents()
63
64 /**
65 * Get the name field.
66 *
67 * @return String
68 */
69 public String getName()
70 {
71 return this.name;
72 } //-- String getName()
73
74 /**
75 * Method removeBuildAgent.
76 *
77 * @param buildAgentConfiguration
78 */
79 public void removeBuildAgent( BuildAgentConfiguration buildAgentConfiguration )
80 {
81 getBuildAgents().remove( buildAgentConfiguration );
82 } //-- void removeBuildAgent( BuildAgentConfiguration )
83
84 /**
85 * Set the buildAgents field.
86 *
87 * @param buildAgents
88 */
89 public void setBuildAgents( java.util.List<BuildAgentConfiguration> buildAgents )
90 {
91 this.buildAgents = buildAgents;
92 } //-- void setBuildAgents( java.util.List )
93
94 /**
95 * Set the name field.
96 *
97 * @param name
98 */
99 public void setName( String name )
100 {
101 this.name = name;
102 } //-- void setName( String )
103
104 }