Class Tune


  • public final class Tune
    extends Object
    The implementation of the <tune/> element in the http://jabber.org/protocol/tune namespace.

    This class is immutable.

    See Also:
    XEP-0118: User Tune, XML Schema
    • Method Detail

      • getArtist

        public final String getArtist()
        Gets the artist or performer of the song or piece.
        Returns:
        The artist.
      • getLength

        public final Integer getLength()
        Gets the duration of the song or piece in seconds.
        Returns:
        The duration.
      • getRating

        public final Integer getRating()
        Gets the user's rating of the song or piece, from 1 (lowest) to 10 (highest).
        Returns:
        The rating.
      • getSource

        public final String getSource()
        Gets the collection (e.g., album) or other source (e.g., a band website that hosts streams or audio files).
        Returns:
        The source.
      • getTitle

        public final String getTitle()
        Gets the title of the song or piece.
        Returns:
        The title.
      • getTrack

        public final String getTrack()
        Gets a unique identifier for the tune; e.g., the track number within a collection or the specific URI for the object (e.g., a stream or audio file).
        Returns:
        The track.
      • getUri

        public final URI getUri()
        Gets a URI or URL pointing to information about the song, collection, or artist.
        Returns:
        The URI.