Class XSPFTrack
- 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.XSPFTrack
-
public class XSPFTrack extends XSPFCommon
The track element.- Author:
- martin
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class cz.martlin.xspf.playlist.base.XSPFElement
XSPFElement.XSPFCollectionFactory<E extends XSPFElement>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAlbum()Returns the track album.java.time.DurationgetDuration()Returns the track duration.IntegergetTrackNum()Returns the trackNum.inthashCode()voidsetAlbum(String album)Sets the track album.voidsetDuration(java.time.Duration duration)Sets the track duration.voidsetTrackNum(int trackNum)Sets the trackNum.StringtoString()-
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
-
XSPFTrack
public XSPFTrack(Element track)
Creates instance.- Parameters:
track- the track element
-
-
Method Detail
-
getDuration
public java.time.Duration getDuration() throws XSPFExceptionReturns the track duration.- Returns:
- Throws:
XSPFException
-
setDuration
public void setDuration(java.time.Duration duration) throws XSPFExceptionSets the track duration.- Parameters:
duration-- Throws:
XSPFException
-
getAlbum
public String getAlbum() throws XSPFException
Returns the track album.- Returns:
- Throws:
XSPFException
-
setAlbum
public void setAlbum(String album) throws XSPFException
Sets the track album.- Parameters:
album-- Throws:
XSPFException
-
getTrackNum
public Integer getTrackNum() throws XSPFException
Returns the trackNum.- Returns:
- Throws:
XSPFException
-
setTrackNum
public void setTrackNum(int trackNum) throws XSPFExceptionSets the trackNum.- Parameters:
trackNum-- Throws:
XSPFException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classXSPFCommon
-
equals
public boolean equals(Object obj)
- Overrides:
equalsin classXSPFCommon
-
-