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 1616 * limitations under the License.
1717 */
1818
19+ import org .codehaus .plexus .util .StringUtils ;
1920import org .codehaus .plexus .util .xml .pull .XmlSerializer ;
2021
2122import java .io .IOException ;
@@ -183,6 +184,17 @@ public String getAttribute( String name )
183184 return ( null != attributes ) ? attributes .get ( name ) : null ;
184185 }
185186
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+
186198 /**
187199 * Set the attribute value
188200 *
You can’t perform that action at this time.
0 commit comments