1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-13 07:04:49 +02:00

Add XmlStringBuilder.emptyElement(Enum)

This commit is contained in:
Florian Schmaus 2014-09-12 11:03:12 +02:00
parent c7a162f316
commit fca884d76b

View file

@ -235,6 +235,10 @@ public class XmlStringBuilder implements Appendable, CharSequence {
return this;
}
public XmlStringBuilder emptyElement(Enum<?> element) {
return emptyElement(element.name());
}
public XmlStringBuilder emptyElement(String element) {
halfOpenElement(element);
return closeEmptyElement();