Class MediaElement
- java.lang.Object
-
- org.jivesoftware.smackx.mediaelement.element.MediaElement
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
,FormFieldChildElement
public class MediaElement extends Object implements FormFieldChildElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MediaElement.Builder
static class
MediaElement.Uri
-
Constructor Summary
Constructors Constructor Description MediaElement(MediaElement.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MediaElement.Builder
builder()
MediaElement
from(FormField formField)
String
getElementName()
Returns the root element name.UInt16
getHeight()
String
getNamespace()
Returns the root element XML namespace.QName
getQName()
List<MediaElement.Uri>
getUris()
UInt16
getWidth()
XmlStringBuilder
toXML(XmlEnvironment xmlEnvironment)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smackx.xdata.FormFieldChildElement
checkConsistency, isExclusiveElement, mustBeOnlyOfHisKind, requiresNoTypeSet, validate
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MediaElement
public MediaElement(MediaElement.Builder builder)
-
-
Method Detail
-
getUris
public List<MediaElement.Uri> getUris()
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getQName
public QName getQName()
- Specified by:
getQName
in interfaceFullyQualifiedElement
-
toXML
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment)
-
from
public MediaElement from(FormField formField)
-
builder
public static MediaElement.Builder builder()
-
-