File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
src/main/java/org/codehaus/plexus/util/xml Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 16
16
* limitations under the License.
17
17
*/
18
18
19
+ import org .codehaus .plexus .util .StringUtils ;
19
20
import org .codehaus .plexus .util .xml .pull .XmlSerializer ;
20
21
21
22
import java .io .IOException ;
@@ -183,6 +184,17 @@ public String getAttribute( String name )
183
184
return ( null != attributes ) ? attributes .get ( name ) : null ;
184
185
}
185
186
187
+ /**
188
+ *
189
+ * @param name name of the attribute to be removed
190
+ * @return <code>true</code> if the attribute has been removed
191
+ * @since 3.4.0
192
+ */
193
+ public boolean removeAttribute ( String name )
194
+ {
195
+ return StringUtils .isEmpty ( name ) ? false : attributes .remove ( name ) == null ;
196
+ }
197
+
186
198
/**
187
199
* Set the attribute value
188
200
*
You can’t perform that action at this time.
0 commit comments