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    * Information about the issue tracking (or bug tracking) system
10   * used to manage this
11   *         project.
12   * 
13   * @version $Revision$ $Date$
14   */
15  @SuppressWarnings( "all" )
16  public class IssueManagement
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 name of the issue management system, e.g. Bugzilla.
26       */
27      private String system;
28  
29      /**
30       * URL for the issue management system used by the project.
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 IssueManagement
48       */
49      public IssueManagement clone()
50      {
51          try
52          {
53              IssueManagement copy = (IssueManagement) 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      } //-- IssueManagement 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 name of the issue management system, e.g. Bugzilla.
82       * 
83       * @return String
84       */
85      public String getSystem()
86      {
87          return this.system;
88      } //-- String getSystem()
89  
90      /**
91       * Get uRL for the issue management system used by the project.
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 name of the issue management system, e.g. Bugzilla.
120      * 
121      * @param system
122      */
123     public void setSystem( String system )
124     {
125         this.system = system;
126     } //-- void setSystem( String )
127 
128     /**
129      * Set uRL for the issue management system used by the project.
130      * 
131      * @param url
132      */
133     public void setUrl( String url )
134     {
135         this.url = url;
136     } //-- void setUrl( String )
137 
138 }