mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Merge branch '4.4'
This commit is contained in:
commit
fa88f78232
3 changed files with 20 additions and 2 deletions
|
@ -184,6 +184,19 @@ public abstract class StanzaBuilder<B extends StanzaBuilder<B>> implements Stanz
|
|||
return getThis();
|
||||
}
|
||||
|
||||
public final B removeExtension(String elementName, String namespace) {
|
||||
QName key = new QName(namespace, elementName);
|
||||
extensionElements.remove(key);
|
||||
return getThis();
|
||||
}
|
||||
|
||||
public final B removeExtension(ExtensionElement extension) {
|
||||
QName key = extension.getQName();
|
||||
List<XmlElement> list = extensionElements.getAll(key);
|
||||
list.remove(extension);
|
||||
return getThis();
|
||||
}
|
||||
|
||||
public abstract Stanza build();
|
||||
|
||||
public abstract B getThis();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue