001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2013-02-24 03:32:14,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.model;
009    
010    /**
011     * Specifies the organization that produces this project.
012     * 
013     * @version $Revision$ $Date$
014     */
015    @SuppressWarnings( "all" )
016    public class Organization
017        implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
018    {
019    
020          //--------------------------/
021         //- Class/Member Variables -/
022        //--------------------------/
023    
024        /**
025         * The full name of the organization.
026         */
027        private String name;
028    
029        /**
030         * The URL to the organization's home page.
031         */
032        private String url;
033    
034        /**
035         * Field locations.
036         */
037        private java.util.Map<Object, InputLocation> locations;
038    
039    
040          //-----------/
041         //- Methods -/
042        //-----------/
043    
044        /**
045         * Method clone.
046         * 
047         * @return Organization
048         */
049        public Organization clone()
050        {
051            try
052            {
053                Organization copy = (Organization) super.clone();
054    
055                if ( copy.locations != null )
056                {
057                    copy.locations = new java.util.LinkedHashMap( copy.locations );
058                }
059    
060                return copy;
061            }
062            catch ( java.lang.Exception ex )
063            {
064                throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
065                    + " does not support clone()" ).initCause( ex );
066            }
067        } //-- Organization clone()
068    
069        /**
070         * 
071         * 
072         * @param key
073         * @return InputLocation
074         */
075        public InputLocation getLocation( Object key )
076        {
077            return ( locations != null ) ? locations.get( key ) : null;
078        } //-- InputLocation getLocation( Object )
079    
080        /**
081         * Get the full name of the organization.
082         * 
083         * @return String
084         */
085        public String getName()
086        {
087            return this.name;
088        } //-- String getName()
089    
090        /**
091         * Get the URL to the organization's home page.
092         * 
093         * @return String
094         */
095        public String getUrl()
096        {
097            return this.url;
098        } //-- String getUrl()
099    
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    }