View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-09-01 13:05:08,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.plugin.resources.remote;
9   
10  /**
11   * Root element of the remote-resources.xml file.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class RemoteResourcesBundle
17      implements java.io.Serializable
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * Field remoteResources.
26       */
27      private java.util.List<String> remoteResources;
28  
29      /**
30       * 
31       *             Source encoding of the remote resources
32       * contained in the bundle.
33       *           
34       */
35      private String sourceEncoding;
36  
37      /**
38       * Field modelEncoding.
39       */
40      private String modelEncoding = "UTF-8";
41  
42  
43        //-----------/
44       //- Methods -/
45      //-----------/
46  
47      /**
48       * Method addRemoteResource.
49       * 
50       * @param string
51       */
52      public void addRemoteResource( String string )
53      {
54          getRemoteResources().add( string );
55      } //-- void addRemoteResource( String )
56  
57      /**
58       * Get the modelEncoding field.
59       * 
60       * @return String
61       */
62      public String getModelEncoding()
63      {
64          return this.modelEncoding;
65      } //-- String getModelEncoding()
66  
67      /**
68       * Method getRemoteResources.
69       * 
70       * @return List
71       */
72      public java.util.List<String> getRemoteResources()
73      {
74          if ( this.remoteResources == null )
75          {
76              this.remoteResources = new java.util.ArrayList<String>();
77          }
78  
79          return this.remoteResources;
80      } //-- java.util.List<String> getRemoteResources()
81  
82      /**
83       * Get source encoding of the remote resources contained in the
84       * bundle.
85       * 
86       * @return String
87       */
88      public String getSourceEncoding()
89      {
90          return this.sourceEncoding;
91      } //-- String getSourceEncoding()
92  
93      /**
94       * Method removeRemoteResource.
95       * 
96       * @param string
97       */
98      public void removeRemoteResource( String string )
99      {
100         getRemoteResources().remove( string );
101     } //-- void removeRemoteResource( String )
102 
103     /**
104      * Set the modelEncoding field.
105      * 
106      * @param modelEncoding
107      */
108     public void setModelEncoding( String modelEncoding )
109     {
110         this.modelEncoding = modelEncoding;
111     } //-- void setModelEncoding( String )
112 
113     /**
114      * Set remote resources that are contained in a remote
115      * resources bundle.
116      * 
117      * @param remoteResources
118      */
119     public void setRemoteResources( java.util.List<String> remoteResources )
120     {
121         this.remoteResources = remoteResources;
122     } //-- void setRemoteResources( java.util.List )
123 
124     /**
125      * Set source encoding of the remote resources contained in the
126      * bundle.
127      * 
128      * @param sourceEncoding
129      */
130     public void setSourceEncoding( String sourceEncoding )
131     {
132         this.sourceEncoding = sourceEncoding;
133     } //-- void setSourceEncoding( String )
134 
135 }