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