View Javadoc

1   /*
2    * $Id$
3    */
4   
5   package org.apache.maven.model;
6   
7     //---------------------------------/
8    //- Imported classes and packages -/
9   //---------------------------------/
10  
11  import java.util.Date;
12  
13  /**
14   * Specifies the organization that produces this project.
15   * 
16   * @version $Revision$ $Date$
17   */
18  public class Organization implements java.io.Serializable {
19  
20  
21        //--------------------------/
22       //- Class/Member Variables -/
23      //--------------------------/
24  
25      /**
26       * The full name of the organization.
27       */
28      private String name;
29  
30      /**
31       * The URL to the organization's home page.
32       */
33      private String url;
34  
35  
36        //-----------/
37       //- Methods -/
38      //-----------/
39  
40      /**
41       * Get the full name of the organization.
42       * 
43       * @return String
44       */
45      public String getName()
46      {
47          return this.name;
48      } //-- String getName() 
49  
50      /**
51       * Get the URL to the organization's home page.
52       * 
53       * @return String
54       */
55      public String getUrl()
56      {
57          return this.url;
58      } //-- String getUrl() 
59  
60      /**
61       * Set the full name of the organization.
62       * 
63       * @param name
64       */
65      public void setName( String name )
66      {
67          this.name = name;
68      } //-- void setName( String ) 
69  
70      /**
71       * Set the URL to the organization's home page.
72       * 
73       * @param url
74       */
75      public void setUrl( String url )
76      {
77          this.url = url;
78      } //-- void setUrl( String ) 
79  
80  
81      private String modelEncoding = "UTF-8";
82  
83      /**
84       * Set an encoding used for reading/writing the model.
85       *
86       * @param modelEncoding the encoding used when reading/writing the model.
87       */
88      public void setModelEncoding( String modelEncoding )
89      {
90          this.modelEncoding = modelEncoding;
91      }
92  
93      /**
94       * @return the current encoding used when reading/writing this model.
95       */
96      public String getModelEncoding()
97      {
98          return modelEncoding;
99      }
100 }