View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2013-02-24 03:31:02,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.model;
9   
10  /**
11   * Specifies the organization that produces this project.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class Organization
17      implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
18  {
19  
20        //--------------------------/
21       //- Class/Member Variables -/
22      //--------------------------/
23  
24      /**
25       * The full name of the organization.
26       */
27      private String name;
28  
29      /**
30       * The URL to the organization's home page.
31       */
32      private String url;
33  
34      /**
35       * Field locations.
36       */
37      private java.util.Map<Object, InputLocation> locations;
38  
39  
40        //-----------/
41       //- Methods -/
42      //-----------/
43  
44      /**
45       * Method clone.
46       * 
47       * @return Organization
48       */
49      public Organization clone()
50      {
51          try
52          {
53              Organization copy = (Organization) super.clone();
54  
55              if ( copy.locations != null )
56              {
57                  copy.locations = new java.util.LinkedHashMap( copy.locations );
58              }
59  
60              return copy;
61          }
62          catch ( java.lang.Exception ex )
63          {
64              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
65                  + " does not support clone()" ).initCause( ex );
66          }
67      } //-- Organization clone()
68  
69      /**
70       * 
71       * 
72       * @param key
73       * @return InputLocation
74       */
75      public InputLocation getLocation( Object key )
76      {
77          return ( locations != null ) ? locations.get( key ) : null;
78      } //-- InputLocation getLocation( Object )
79  
80      /**
81       * Get the full name of the organization.
82       * 
83       * @return String
84       */
85      public String getName()
86      {
87          return this.name;
88      } //-- String getName()
89  
90      /**
91       * Get the URL to the organization's home page.
92       * 
93       * @return String
94       */
95      public String getUrl()
96      {
97          return this.url;
98      } //-- String getUrl()
99  
100     /**
101      * 
102      * 
103      * @param key
104      * @param location
105      */
106     public void setLocation( Object key, InputLocation location )
107     {
108         if ( location != null )
109         {
110             if ( this.locations == null )
111             {
112                 this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
113             }
114             this.locations.put( key, location );
115         }
116     } //-- void setLocation( Object, InputLocation )
117 
118     /**
119      * Set the full name of the organization.
120      * 
121      * @param name
122      */
123     public void setName( String name )
124     {
125         this.name = name;
126     } //-- void setName( String )
127 
128     /**
129      * Set the URL to the organization's home page.
130      * 
131      * @param url
132      */
133     public void setUrl( String url )
134     {
135         this.url = url;
136     } //-- void setUrl( String )
137 
138 }