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 String
ELEM_HEIGHT
static String
ELEM_MEDIA_TYPE
static String
ELEM_URI
static String
ELEM_WIDTH
static String
ELEMENT
static String
NAMESPACE
-
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 String
getElementName()
Returns the root element name.Integer
getHeight()
String
getMediaType()
String
getNamespace()
Returns the root element XML namespace.String
getUri()
Integer
getWidth()
CharSequence
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.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:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
getNamespace
public String getNamespace()
Description copied from interface:XmlElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceXmlElement
- Returns:
- the namespace.
-
-