1 // =================== DO NOT EDIT THIS FILE ====================
2 // Generated by Modello 1.7,
3 // any modifications will be overwritten.
4 // ==============================================================
5
6 package org.apache.archiva.configuration;
7
8 /**
9 * Class ProxyConnectorRuleConfiguration.
10 *
11 * @version $Revision$ $Date$
12 */
13 @SuppressWarnings( "all" )
14 public class ProxyConnectorRuleConfiguration
15 implements java.io.Serializable
16 {
17
18 //--------------------------/
19 //- Class/Member Variables -/
20 //--------------------------/
21
22 /**
23 *
24 * The type if this rule: whiteList, blackList
25 * etc..
26 *
27 */
28 private String ruleType;
29
30 /**
31 *
32 * The pattern for this rule: whiteList, blackList
33 * etc..
34 *
35 */
36 private String pattern;
37
38 /**
39 * Field proxyConnectors.
40 */
41 private java.util.List<ProxyConnectorConfiguration> proxyConnectors;
42
43
44 //-----------/
45 //- Methods -/
46 //-----------/
47
48 /**
49 * Method addProxyConnector.
50 *
51 * @param proxyConnectorConfiguration
52 */
53 public void addProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration )
54 {
55 getProxyConnectors().add( proxyConnectorConfiguration );
56 } //-- void addProxyConnector( ProxyConnectorConfiguration )
57
58 /**
59 * Get the pattern for this rule: whiteList, blackList etc..
60 *
61 * @return String
62 */
63 public String getPattern()
64 {
65 return this.pattern;
66 } //-- String getPattern()
67
68 /**
69 * Method getProxyConnectors.
70 *
71 * @return List
72 */
73 public java.util.List<ProxyConnectorConfiguration> getProxyConnectors()
74 {
75 if ( this.proxyConnectors == null )
76 {
77 this.proxyConnectors = new java.util.ArrayList<ProxyConnectorConfiguration>();
78 }
79
80 return this.proxyConnectors;
81 } //-- java.util.List<ProxyConnectorConfiguration> getProxyConnectors()
82
83 /**
84 * Get the type if this rule: whiteList, blackList etc..
85 *
86 * @return String
87 */
88 public String getRuleType()
89 {
90 return this.ruleType;
91 } //-- String getRuleType()
92
93 /**
94 * Method removeProxyConnector.
95 *
96 * @param proxyConnectorConfiguration
97 */
98 public void removeProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration )
99 {
100 getProxyConnectors().remove( proxyConnectorConfiguration );
101 } //-- void removeProxyConnector( ProxyConnectorConfiguration )
102
103 /**
104 * Set the pattern for this rule: whiteList, blackList etc..
105 *
106 * @param pattern
107 */
108 public void setPattern( String pattern )
109 {
110 this.pattern = pattern;
111 } //-- void setPattern( String )
112
113 /**
114 * Set associated proxyConnectors configuration.
115 *
116 * @param proxyConnectors
117 */
118 public void setProxyConnectors( java.util.List<ProxyConnectorConfiguration> proxyConnectors )
119 {
120 this.proxyConnectors = proxyConnectors;
121 } //-- void setProxyConnectors( java.util.List )
122
123 /**
124 * Set the type if this rule: whiteList, blackList etc..
125 *
126 * @param ruleType
127 */
128 public void setRuleType( String ruleType )
129 {
130 this.ruleType = ruleType;
131 } //-- void setRuleType( String )
132
133 }