View Javadoc

1   /*
2    * $Id$
3    */
4   
5   package org.apache.maven.artifact.repository.metadata;
6   
7     //---------------------------------/
8    //- Imported classes and packages -/
9   //---------------------------------/
10  
11  import java.util.Date;
12  
13  /**
14   * Mapping information for a single plugin within this group.
15   * 
16   * @version $Revision$ $Date$
17   */
18  public class Plugin implements java.io.Serializable {
19  
20  
21        //--------------------------/
22       //- Class/Member Variables -/
23      //--------------------------/
24  
25      /**
26       * Display name for the plugin.
27       */
28      private String name;
29  
30      /**
31       * The plugin invocation prefix (i.e. eclipse for
32       * eclipse:eclipse).
33       */
34      private String prefix;
35  
36      /**
37       * The plugin artifactId.
38       */
39      private String artifactId;
40  
41  
42        //-----------/
43       //- Methods -/
44      //-----------/
45  
46      /**
47       * Get the plugin artifactId.
48       * 
49       * @return String
50       */
51      public String getArtifactId()
52      {
53          return this.artifactId;
54      } //-- String getArtifactId() 
55  
56      /**
57       * Get display name for the plugin.
58       * 
59       * @return String
60       */
61      public String getName()
62      {
63          return this.name;
64      } //-- String getName() 
65  
66      /**
67       * Get the plugin invocation prefix (i.e. eclipse for
68       * eclipse:eclipse).
69       * 
70       * @return String
71       */
72      public String getPrefix()
73      {
74          return this.prefix;
75      } //-- String getPrefix() 
76  
77      /**
78       * Set the plugin artifactId.
79       * 
80       * @param artifactId
81       */
82      public void setArtifactId( String artifactId )
83      {
84          this.artifactId = artifactId;
85      } //-- void setArtifactId( String ) 
86  
87      /**
88       * Set display name for the plugin.
89       * 
90       * @param name
91       */
92      public void setName( String name )
93      {
94          this.name = name;
95      } //-- void setName( String ) 
96  
97      /**
98       * Set the plugin invocation prefix (i.e. eclipse for
99       * eclipse:eclipse).
100      * 
101      * @param prefix
102      */
103     public void setPrefix( String prefix )
104     {
105         this.prefix = prefix;
106     } //-- void setPrefix( String ) 
107 
108 
109     private String modelEncoding = "UTF-8";
110 
111     /**
112      * Set an encoding used for reading/writing the model.
113      *
114      * @param modelEncoding the encoding used when reading/writing the model.
115      */
116     public void setModelEncoding( String modelEncoding )
117     {
118         this.modelEncoding = modelEncoding;
119     }
120 
121     /**
122      * @return the current encoding used when reading/writing this model.
123      */
124     public String getModelEncoding()
125     {
126         return modelEncoding;
127     }
128 }