Class XSPFPlaylist
- java.lang.Object
-
- cz.martlin.xspf.playlist.base.XSPFNode
-
- cz.martlin.xspf.playlist.base.XSPFElement
-
- cz.martlin.xspf.playlist.base.XSPFCommon
-
- cz.martlin.xspf.playlist.elements.XSPFPlaylist
-
public class XSPFPlaylist extends XSPFCommon
The playlist element.- Author:
- martin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cz.martlin.xspf.playlist.base.XSPFElement
XSPFElement.XSPFCollectionFactory<E extends XSPFElement>
-
-
Constructor Summary
Constructors Constructor Description XSPFPlaylist(Element playlist)Creates instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XSPFAttributionattribution()Gets the (view of) the playlist attribution.booleanequals(Object obj)XSPFAttributiongetAttribution()Gets (copy of) the playlist attribution.java.time.LocalDateTimegetDate()Returns the playlist date.URIgetLicense()Returns the playlist license.XSPFTracksgetTracks()Returns the (copy of) the tracks.inthashCode()voidsetAttribution(XSPFAttribution attribution)Sets the (copy of) playlist attribution.voidsetDate(java.time.LocalDateTime date)Sets the playlist date.voidsetLicense(URI license)Sets the playlist license.voidsetTracks(XSPFTracks tracks)Set the (copy of) the tracks.StringtoString()XSPFTrackstracks()Returns the (view of) the tracks.-
Methods inherited from class cz.martlin.xspf.playlist.base.XSPFCommon
extensions, getAnnotation, getCreator, getExtensions, getIdentifier, getImage, getInfo, getLinks, getLocation, getMetas, getTitle, links, metas, setAnnotation, setCreator, setExtensions, setIdentifier, setImage, setInfo, setLinks, setLocation, setMetas, setTitle
-
Methods inherited from class cz.martlin.xspf.playlist.base.XSPFElement
collection, collection, getCollection, getCollection, getDate, getDuration, getElement, getInt, getNode, getStr, getStr, getUri, getUri, getUriAttr, setCollection, setCollection, setDate, setDuration, setInt, setStr, setStr, setUri, setUri, setUriAttr
-
-
-
-
Constructor Detail
-
XSPFPlaylist
public XSPFPlaylist(Element playlist)
Creates instance.- Parameters:
playlist- the playlist element
-
-
Method Detail
-
getDate
public java.time.LocalDateTime getDate() throws XSPFExceptionReturns the playlist date.- Returns:
- Throws:
XSPFException
-
setDate
public void setDate(java.time.LocalDateTime date) throws XSPFExceptionSets the playlist date.- Parameters:
date-- Throws:
XSPFException
-
getLicense
public URI getLicense() throws XSPFException
Returns the playlist license.- Returns:
- Throws:
XSPFException
-
setLicense
public void setLicense(URI license) throws XSPFException
Sets the playlist license.- Parameters:
license-- Throws:
XSPFException
-
getAttribution
public XSPFAttribution getAttribution() throws XSPFException
Gets (copy of) the playlist attribution.- Returns:
- Throws:
XSPFException
-
attribution
public XSPFAttribution attribution() throws XSPFException
Gets the (view of) the playlist attribution.- Returns:
- Throws:
XSPFException
-
setAttribution
public void setAttribution(XSPFAttribution attribution) throws XSPFException
Sets the (copy of) playlist attribution.- Parameters:
attribution-- Throws:
XSPFException
-
getTracks
public XSPFTracks getTracks() throws XSPFException
Returns the (copy of) the tracks.- Returns:
- Throws:
XSPFException
-
tracks
public XSPFTracks tracks() throws XSPFException
Returns the (view of) the tracks.- Returns:
- Throws:
XSPFException
-
setTracks
public void setTracks(XSPFTracks tracks) throws XSPFException
Set the (copy of) the tracks.- Parameters:
tracks-- Throws:
XSPFException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classXSPFCommon
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classXSPFCommon
-
-