Class UserTuneElement
- java.lang.Object
-
- org.jivesoftware.smackx.usertune.element.UserTuneElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public final class UserTuneElement extends Object implements ExtensionElement
ExtensionElement
that contains the UserTune.
Instance of UserTuneElement can be created usingUserTuneElement.Builder.build()
method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserTuneElement.Builder
This class defines a Builder class forUserTuneElement
.
-
Field Summary
Fields Modifier and Type Field Description static String
ELEMENT
static UserTuneElement
EMPTY_USER_TUNE
static String
NAMESPACE
static QName
QNAME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static UserTuneElement
from(Message message)
String
getArtist()
static UserTuneElement.Builder
getBuilder()
Returns a new instance ofUserTuneElement.Builder
.String
getElementName()
Returns the root element name.UInt16
getLength()
String
getNamespace()
Returns the root element XML namespace.Integer
getRating()
String
getSource()
String
getTitle()
String
getTrack()
URI
getUri()
int
hashCode()
static boolean
hasUserTuneElement(Message message)
XmlStringBuilder
toXML(XmlEnvironment xmlEnvironment)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
NAMESPACE
public static final String NAMESPACE
- See Also:
- Constant Field Values
-
ELEMENT
public static final String ELEMENT
- See Also:
- Constant Field Values
-
EMPTY_USER_TUNE
public static final UserTuneElement EMPTY_USER_TUNE
-
-
Method Detail
-
getNamespace
public String getNamespace()
Description copied from interface:FullyQualifiedElement
Returns the root element XML namespace.- Specified by:
getNamespace
in interfaceFullyQualifiedElement
- Returns:
- the namespace.
-
getElementName
public String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Specified by:
getElementName
in interfaceNamedElement
- Returns:
- the element name.
-
toXML
public XmlStringBuilder toXML(XmlEnvironment xmlEnvironment)
-
hasUserTuneElement
public static boolean hasUserTuneElement(Message message)
-
from
public static UserTuneElement from(Message message)
-
getBuilder
public static UserTuneElement.Builder getBuilder()
Returns a new instance ofUserTuneElement.Builder
.- Returns:
- Builder
-
-