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