001    /*
002     =================== DO NOT EDIT THIS FILE ====================
003     Generated by Modello 1.4.1 on 2013-02-24 03:31:02,
004     any modifications will be overwritten.
005     ==============================================================
006     */
007    
008    package org.apache.maven.model;
009    
010    /**
011     * Information about the issue tracking (or bug tracking) system
012     * used to manage this
013     *         project.
014     * 
015     * @version $Revision$ $Date$
016     */
017    @SuppressWarnings( "all" )
018    public class IssueManagement
019        implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
020    {
021    
022          //--------------------------/
023         //- Class/Member Variables -/
024        //--------------------------/
025    
026        /**
027         * The name of the issue management system, e.g. Bugzilla.
028         */
029        private String system;
030    
031        /**
032         * URL for the issue management system used by the project.
033         */
034        private String url;
035    
036        /**
037         * Field locations.
038         */
039        private java.util.Map<Object, InputLocation> locations;
040    
041    
042          //-----------/
043         //- Methods -/
044        //-----------/
045    
046        /**
047         * Method clone.
048         * 
049         * @return IssueManagement
050         */
051        public IssueManagement clone()
052        {
053            try
054            {
055                IssueManagement copy = (IssueManagement) super.clone();
056    
057                if ( copy.locations != null )
058                {
059                    copy.locations = new java.util.LinkedHashMap( copy.locations );
060                }
061    
062                return copy;
063            }
064            catch ( java.lang.Exception ex )
065            {
066                throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
067                    + " does not support clone()" ).initCause( ex );
068            }
069        } //-- IssueManagement clone()
070    
071        /**
072         * 
073         * 
074         * @param key
075         * @return InputLocation
076         */
077        public InputLocation getLocation( Object key )
078        {
079            return ( locations != null ) ? locations.get( key ) : null;
080        } //-- InputLocation getLocation( Object )
081    
082        /**
083         * Get the name of the issue management system, e.g. Bugzilla.
084         * 
085         * @return String
086         */
087        public String getSystem()
088        {
089            return this.system;
090        } //-- String getSystem()
091    
092        /**
093         * Get uRL for the issue management system used by the project.
094         * 
095         * @return String
096         */
097        public String getUrl()
098        {
099            return this.url;
100        } //-- String getUrl()
101    
102        /**
103         * 
104         * 
105         * @param key
106         * @param location
107         */
108        public void setLocation( Object key, InputLocation location )
109        {
110            if ( location != null )
111            {
112                if ( this.locations == null )
113                {
114                    this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
115                }
116                this.locations.put( key, location );
117            }
118        } //-- void setLocation( Object, InputLocation )
119    
120        /**
121         * Set the name of the issue management system, e.g. Bugzilla.
122         * 
123         * @param system
124         */
125        public void setSystem( String system )
126        {
127            this.system = system;
128        } //-- void setSystem( String )
129    
130        /**
131         * Set uRL for the issue management system used by the project.
132         * 
133         * @param url
134         */
135        public void setUrl( String url )
136        {
137            this.url = url;
138        } //-- void setUrl( String )
139    
140    }