1package eu.siacs.conversations.xmpp.jingle.stanzas;
2
3import com.google.common.base.Preconditions;
4
5import eu.siacs.conversations.xml.Element;
6
7public class GenericDescription extends Element {
8
9 GenericDescription(String name, final String namespace) {
10 super(name, namespace);
11 }
12
13 public static GenericDescription upgrade(final Element element) {
14 Preconditions.checkArgument("description".equals(element.getName()));
15 final GenericDescription description = new GenericDescription("description", element.getNamespace());
16 description.setAttributes(element.getAttributes());
17 description.setChildren(element.getChildren());
18 return description;
19 }
20}