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