001// =================== DO NOT EDIT THIS FILE ==================== 002// Generated by Modello 1.7, 003// any modifications will be overwritten. 004// ============================================================== 005 006package org.apache.archiva.configuration; 007 008/** 009 * Class ProxyConnectorRuleConfiguration. 010 * 011 * @version $Revision$ $Date$ 012 */ 013@SuppressWarnings( "all" ) 014public class ProxyConnectorRuleConfiguration 015 implements java.io.Serializable 016{ 017 018 //--------------------------/ 019 //- Class/Member Variables -/ 020 //--------------------------/ 021 022 /** 023 * 024 * The type if this rule: whiteList, blackList 025 * etc.. 026 * 027 */ 028 private String ruleType; 029 030 /** 031 * 032 * The pattern for this rule: whiteList, blackList 033 * etc.. 034 * 035 */ 036 private String pattern; 037 038 /** 039 * Field proxyConnectors. 040 */ 041 private java.util.List<ProxyConnectorConfiguration> proxyConnectors; 042 043 044 //-----------/ 045 //- Methods -/ 046 //-----------/ 047 048 /** 049 * Method addProxyConnector. 050 * 051 * @param proxyConnectorConfiguration 052 */ 053 public void addProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration ) 054 { 055 getProxyConnectors().add( proxyConnectorConfiguration ); 056 } //-- void addProxyConnector( ProxyConnectorConfiguration ) 057 058 /** 059 * Get the pattern for this rule: whiteList, blackList etc.. 060 * 061 * @return String 062 */ 063 public String getPattern() 064 { 065 return this.pattern; 066 } //-- String getPattern() 067 068 /** 069 * Method getProxyConnectors. 070 * 071 * @return List 072 */ 073 public java.util.List<ProxyConnectorConfiguration> getProxyConnectors() 074 { 075 if ( this.proxyConnectors == null ) 076 { 077 this.proxyConnectors = new java.util.ArrayList<ProxyConnectorConfiguration>(); 078 } 079 080 return this.proxyConnectors; 081 } //-- java.util.List<ProxyConnectorConfiguration> getProxyConnectors() 082 083 /** 084 * Get the type if this rule: whiteList, blackList etc.. 085 * 086 * @return String 087 */ 088 public String getRuleType() 089 { 090 return this.ruleType; 091 } //-- String getRuleType() 092 093 /** 094 * Method removeProxyConnector. 095 * 096 * @param proxyConnectorConfiguration 097 */ 098 public void removeProxyConnector( ProxyConnectorConfiguration proxyConnectorConfiguration ) 099 { 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}