diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-07-09 21:04:10 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-07-09 21:04:10 +0200 |
commit | 056382107891892c98d9236871b4f3e95db884e4 (patch) | |
tree | ba457fe754999451f66457ae1ea9a85124eb9d7e /src/main/java/de/pixart/messenger/xml/Element.java | |
parent | b339e03c87497eb2f8531ec2a8dc02d16c3f33ab (diff) |
reset subject and name on empty
Diffstat (limited to 'src/main/java/de/pixart/messenger/xml/Element.java')
-rw-r--r-- | src/main/java/de/pixart/messenger/xml/Element.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/xml/Element.java b/src/main/java/de/pixart/messenger/xml/Element.java index f90efa555..e9eaa1394 100644 --- a/src/main/java/de/pixart/messenger/xml/Element.java +++ b/src/main/java/de/pixart/messenger/xml/Element.java @@ -134,6 +134,11 @@ public class Element { return this; } + public Element removeAttribute(String name) { + this.attributes.remove(name); + return this; + } + public Element setAttributes(Hashtable<String, String> attributes) { this.attributes = attributes; return this; |