View Javadoc

1   /*
2    =================== DO NOT EDIT THIS FILE ====================
3    Generated by Modello 1.4.1 on 2012-01-20 18:09:18,
4    any modifications will be overwritten.
5    ==============================================================
6    */
7   
8   package org.apache.maven.model;
9   
10  /**
11   * Information about the issue tracking (or bug tracking) system
12   * used to manage this
13   *         project.
14   * 
15   * @version $Revision$ $Date$
16   */
17  @SuppressWarnings( "all" )
18  public class IssueManagement
19      implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
20  {
21  
22        //--------------------------/
23       //- Class/Member Variables -/
24      //--------------------------/
25  
26      /**
27       * The name of the issue management system, e.g. Bugzilla.
28       */
29      private String system;
30  
31      /**
32       * URL for the issue management system used by the project.
33       */
34      private String url;
35  
36      /**
37       * Field locations.
38       */
39      private java.util.Map<Object, InputLocation> locations;
40  
41  
42        //-----------/
43       //- Methods -/
44      //-----------/
45  
46      /**
47       * Method clone.
48       * 
49       * @return IssueManagement
50       */
51      public IssueManagement clone()
52      {
53          try
54          {
55              IssueManagement copy = (IssueManagement) super.clone();
56  
57              if ( copy.locations != null )
58              {
59                  copy.locations = new java.util.LinkedHashMap( copy.locations );
60              }
61  
62              return copy;
63          }
64          catch ( java.lang.Exception ex )
65          {
66              throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
67                  + " does not support clone()" ).initCause( ex );
68          }
69      } //-- IssueManagement clone()
70  
71      /**
72       * 
73       * 
74       * @param key
75       * @return InputLocation
76       */
77      public InputLocation getLocation( Object key )
78      {
79          return ( locations != null ) ? locations.get( key ) : null;
80      } //-- InputLocation getLocation( Object )
81  
82      /**
83       * Get the name of the issue management system, e.g. Bugzilla.
84       * 
85       * @return String
86       */
87      public String getSystem()
88      {
89          return this.system;
90      } //-- String getSystem()
91  
92      /**
93       * Get uRL for the issue management system used by the project.
94       * 
95       * @return String
96       */
97      public String getUrl()
98      {
99          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 }