mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Add XmlStringBuilder.emptyElement(Enum)
This commit is contained in:
parent
c7a162f316
commit
fca884d76b
1 changed files with 4 additions and 0 deletions
|
@ -235,6 +235,10 @@ public class XmlStringBuilder implements Appendable, CharSequence {
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public XmlStringBuilder emptyElement(Enum<?> element) {
|
||||||
|
return emptyElement(element.name());
|
||||||
|
}
|
||||||
|
|
||||||
public XmlStringBuilder emptyElement(String element) {
|
public XmlStringBuilder emptyElement(String element) {
|
||||||
halfOpenElement(element);
|
halfOpenElement(element);
|
||||||
return closeEmptyElement();
|
return closeEmptyElement();
|
||||||
|
|
Loading…
Reference in a new issue