View Javadoc
1   // =================== DO NOT EDIT THIS FILE ====================
2   // Generated by Modello 2.4.0,
3   // any modifications will be overwritten.
4   // ==============================================================
5   
6   package org.apache.maven.plugin.resources.remote;
7   
8   /**
9    * Root element of the remote-resources.xml file.
10   * 
11   * @version $Revision$ $Date$
12   */
13  @SuppressWarnings( "all" )
14  public class RemoteResourcesBundle
15      implements java.io.Serializable
16  {
17  
18        //--------------------------/
19       //- Class/Member Variables -/
20      //--------------------------/
21  
22      /**
23       * Field remoteResources.
24       */
25      private java.util.List<String> remoteResources;
26  
27      /**
28       * Source encoding of the remote resources contained in the
29       * bundle.
30       */
31      private String sourceEncoding;
32  
33      /**
34       * Field requiredProjectProperties.
35       */
36      private java.util.List<String> requiredProjectProperties;
37  
38      /**
39       * Field modelEncoding.
40       */
41      private String modelEncoding = "UTF-8";
42  
43  
44        //-----------/
45       //- Methods -/
46      //-----------/
47  
48      /**
49       * Method addRemoteResource.
50       * 
51       * @param string a string object.
52       */
53      public void addRemoteResource( String string )
54      {
55          getRemoteResources().add( string );
56      } //-- void addRemoteResource( String )
57  
58      /**
59       * Method addRequiredProjectProperty.
60       * 
61       * @param string a string object.
62       */
63      public void addRequiredProjectProperty( String string )
64      {
65          getRequiredProjectProperties().add( string );
66      } //-- void addRequiredProjectProperty( String )
67  
68      /**
69       * Get the modelEncoding field.
70       * 
71       * @return String
72       */
73      public String getModelEncoding()
74      {
75          return this.modelEncoding;
76      } //-- String getModelEncoding()
77  
78      /**
79       * Method getRemoteResources.
80       * 
81       * @return List
82       */
83      public java.util.List<String> getRemoteResources()
84      {
85          if ( this.remoteResources == null )
86          {
87              this.remoteResources = new java.util.ArrayList<String>();
88          }
89  
90          return this.remoteResources;
91      } //-- java.util.List<String> getRemoteResources()
92  
93      /**
94       * Method getRequiredProjectProperties.
95       * 
96       * @return List
97       */
98      public java.util.List<String> getRequiredProjectProperties()
99      {
100         if ( this.requiredProjectProperties == null )
101         {
102             this.requiredProjectProperties = new java.util.ArrayList<String>();
103         }
104 
105         return this.requiredProjectProperties;
106     } //-- java.util.List<String> getRequiredProjectProperties()
107 
108     /**
109      * Get source encoding of the remote resources contained in the
110      * bundle.
111      * 
112      * @return String
113      */
114     public String getSourceEncoding()
115     {
116         return this.sourceEncoding;
117     } //-- String getSourceEncoding()
118 
119     /**
120      * Method removeRemoteResource.
121      * 
122      * @param string a string object.
123      */
124     public void removeRemoteResource( String string )
125     {
126         getRemoteResources().remove( string );
127     } //-- void removeRemoteResource( String )
128 
129     /**
130      * Method removeRequiredProjectProperty.
131      * 
132      * @param string a string object.
133      */
134     public void removeRequiredProjectProperty( String string )
135     {
136         getRequiredProjectProperties().remove( string );
137     } //-- void removeRequiredProjectProperty( String )
138 
139     /**
140      * Set the modelEncoding field.
141      * 
142      * @param modelEncoding a modelEncoding object.
143      */
144     public void setModelEncoding( String modelEncoding )
145     {
146         this.modelEncoding = modelEncoding;
147     } //-- void setModelEncoding( String )
148 
149     /**
150      * Set remote resources that are contained in a remote
151      * resources bundle.
152      * 
153      * @param remoteResources a remoteResources object.
154      */
155     public void setRemoteResources( java.util.List<String> remoteResources )
156     {
157         this.remoteResources = remoteResources;
158     } //-- void setRemoteResources( java.util.List )
159 
160     /**
161      * Set project properties needed to process Velocity template
162      * by this resource bundle.
163      * 
164      * @param requiredProjectProperties a requiredProjectProperties
165      * object.
166      */
167     public void setRequiredProjectProperties( java.util.List<String> requiredProjectProperties )
168     {
169         this.requiredProjectProperties = requiredProjectProperties;
170     } //-- void setRequiredProjectProperties( java.util.List )
171 
172     /**
173      * Set source encoding of the remote resources contained in the
174      * bundle.
175      * 
176      * @param sourceEncoding a sourceEncoding object.
177      */
178     public void setSourceEncoding( String sourceEncoding )
179     {
180         this.sourceEncoding = sourceEncoding;
181     } //-- void setSourceEncoding( String )
182 
183 }