1
2
3
4
5
6 package org.apache.maven.plugin.doap.options;
7
8
9
10
11
12
13 @SuppressWarnings( "all" )
14 public class ExtOptions
15 implements java.io.Serializable
16 {
17
18
19
20
21
22
23
24
25 private String xmlnsPrefix;
26
27
28
29
30 private String xmlnsNamespaceURI;
31
32
33
34
35 private java.util.Map<Object, String> extensions;
36
37
38
39
40
41
42
43
44
45
46
47
48 public void addExtension( Object key, String value )
49 {
50 getExtensions().put( key, value );
51 }
52
53
54
55
56
57
58
59 public boolean equals( Object other )
60 {
61 if ( this == other )
62 {
63 return true;
64 }
65
66 if ( !( other instanceof ExtOptions ) )
67 {
68 return false;
69 }
70
71 ExtOptions that = (ExtOptions) other;
72 boolean result = true;
73
74 result = result && ( getExtensions() == null ? that.getExtensions() == null : getExtensions().equals( that.getExtensions() ) );
75
76 return result;
77 }
78
79
80
81
82
83
84 public java.util.Map<Object, String> getExtensions()
85 {
86 if ( this.extensions == null )
87 {
88 this.extensions = new java.util.HashMap<Object, String>();
89 }
90
91 return this.extensions;
92 }
93
94
95
96
97
98
99 public String getXmlnsNamespaceURI()
100 {
101 return this.xmlnsNamespaceURI;
102 }
103
104
105
106
107
108
109 public String getXmlnsPrefix()
110 {
111 return this.xmlnsPrefix;
112 }
113
114
115
116
117
118
119 public int hashCode()
120 {
121 int result = 17;
122
123 result = 37 * result + ( extensions != null ? extensions.hashCode() : 0 );
124
125 return result;
126 }
127
128
129
130
131
132
133 public void setExtensions( java.util.Map extensions )
134 {
135 this.extensions = extensions;
136 }
137
138
139
140
141
142
143 public void setXmlnsNamespaceURI( String xmlnsNamespaceURI )
144 {
145 this.xmlnsNamespaceURI = xmlnsNamespaceURI;
146 }
147
148
149
150
151
152
153 public void setXmlnsPrefix( String xmlnsPrefix )
154 {
155 this.xmlnsPrefix = xmlnsPrefix;
156 }
157
158
159
160
161
162
163 public java.lang.String toString()
164 {
165 StringBuilder buf = new StringBuilder( 128 );
166
167 buf.append( "extensions = '" );
168 buf.append( getExtensions() );
169 buf.append( "'" );
170
171 return buf.toString();
172 }
173
174 }