1
2
3
4
5
6 package org.apache.maven.model;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class Organization
15 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
16 {
17
18
19
20
21
22
23
24
25 private String name;
26
27
28
29
30 private String url;
31
32
33
34
35 private java.util.Map<Object, InputLocation> locations;
36
37
38
39
40
41
42
43
44
45
46
47 public Organization clone()
48 {
49 try
50 {
51 Organization copy = (Organization) super.clone();
52
53 if ( copy.locations != null )
54 {
55 copy.locations = new java.util.LinkedHashMap( copy.locations );
56 }
57
58 return copy;
59 }
60 catch ( java.lang.Exception ex )
61 {
62 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
63 + " does not support clone()" ).initCause( ex );
64 }
65 }
66
67
68
69
70
71
72
73 public InputLocation getLocation( Object key )
74 {
75 return ( locations != null ) ? locations.get( key ) : null;
76 }
77
78
79
80
81
82
83 public String getName()
84 {
85 return this.name;
86 }
87
88
89
90
91
92
93 public String getUrl()
94 {
95 return this.url;
96 }
97
98
99
100
101
102
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 }
115
116
117
118
119
120
121 public void setName( String name )
122 {
123 this.name = name;
124 }
125
126
127
128
129
130
131 public void setUrl( String url )
132 {
133 this.url = url;
134 }
135
136 }