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