Class ThumbnailElement
- java.lang.Object
-
- org.jivesoftware.smackx.thumbnails.element.ThumbnailElement
-
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
public class ThumbnailElement extends Object implements ExtensionElement
-
-
Field Summary
Fields Modifier and Type Field Description static StringELEM_HEIGHTstatic StringELEM_MEDIA_TYPEstatic StringELEM_URIstatic StringELEM_WIDTHstatic StringELEMENTstatic StringNAMESPACE
-
Constructor Summary
Constructors Constructor Description ThumbnailElement(String uri)ThumbnailElement(String uri, String mediaType, Integer width, Integer height)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetElementName()Returns the root element name.IntegergetHeight()StringgetMediaType()StringgetNamespace()Returns the root element XML namespace.StringgetUri()IntegergetWidth()CharSequencetoXML(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.smack.packet.XmlElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
ELEM_URI
public static final String ELEM_URI
- See Also:
- Constant Field Values
-
ELEM_MEDIA_TYPE
public static final String ELEM_MEDIA_TYPE
- See Also:
- Constant Field Values
-
ELEM_WIDTH
public static final String ELEM_WIDTH
- See Also:
- Constant Field Values
-
ELEM_HEIGHT
public static final String ELEM_HEIGHT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ThumbnailElement
public ThumbnailElement(String uri)
-
ThumbnailElement
public ThumbnailElement(String uri, String mediaType, Integer width, Integer height)
-
-
Method Detail
-
getMediaType
public String getMediaType()
-
toXML
public CharSequence toXML(XmlEnvironment xmlEnvironment)
-
getElementName
public String getElementName()
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-
-