Class MediaElement
- java.lang.Object
-
- org.jivesoftware.smackx.mediaelement.element.MediaElement
-
- All Implemented Interfaces:
Element
,FullyQualifiedElement
,NamedElement
,XmlLangElement
,FormFieldChildElement
public class MediaElement extends java.lang.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)
java.lang.String
getElementName()
Returns the root element name.UInt16
getHeight()
java.lang.String
getNamespace()
Returns the root element XML namespace.javax.xml.namespace.QName
getQName()
java.util.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 java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final java.lang.String NAMESPACE
- See Also:
- Constant Field Values
-
QNAME
public static final javax.xml.namespace.QName QNAME
-
-
Constructor Detail
-
MediaElement
public MediaElement(MediaElement.Builder builder)
-
-
Method Detail
-
getUris
public java.util.List<MediaElement.Uri> getUris()
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public java.lang.String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getQName
public javax.xml.namespace.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()
-
-