Package cz.martlin.xspf.playlist.base
Class XSPFCommon
- java.lang.Object
-
- cz.martlin.xspf.playlist.base.XSPFNode
-
- cz.martlin.xspf.playlist.base.XSPFElement
-
- cz.martlin.xspf.playlist.base.XSPFCommon
-
- Direct Known Subclasses:
XSPFPlaylist,XSPFTrack
public abstract class XSPFCommon extends XSPFElement
The abstract superclass containing the common properties of theXSPFPlaylistandXSPFTrack.- 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 XSPFCommon(Element element)Creates instance for the given playlist/track element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)XSPFExtensionsextensions()Returns the playlist/track extensions (as view).StringgetAnnotation()Returns the playlist/track annotation.StringgetCreator()Returns the playlist/track creator.XSPFExtensionsgetExtensions()Returns the playlist/track extensions (as copy).URIgetIdentifier()Returns the playlist/track identifier.URIgetImage()Returns the playlist/track image.URIgetInfo()Returns the playlist/track info.XSPFLinksgetLinks()Returns the playlist/track links (as a copy).URIgetLocation()Returns the playlist/track location.XSPFMetasgetMetas()Returns the playlist/track metas (as a copy).StringgetTitle()Returns the playlist/track title.inthashCode()XSPFLinkslinks()Returns the playlist/track links (as a view).XSPFMetasmetas()Returns the playlist/track metas (as a view).voidsetAnnotation(String annotation)Sets the playlist/track annotation.voidsetCreator(String creator)Sets the playlist/track creator.voidsetExtensions(XSPFExtensions extensions)Sets the (copy of the) playlist/track extensions.voidsetIdentifier(URI identifier)Sets the playlist/track identifier.voidsetImage(URI image)Sets the playlist/track image.voidsetInfo(URI info)Sets the playlist/track info.voidsetLinks(XSPFLinks links)Sets the (copy of) the playlist/track links.voidsetLocation(URI location)Sets the playlist/track location.voidsetMetas(XSPFMetas metas)Sets (copy of) the playlist/track metas.voidsetTitle(String title)Sets the playlist/track title.-
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
-
XSPFCommon
public XSPFCommon(Element element)
Creates instance for the given playlist/track element.- Parameters:
element-
-
-
Method Detail
-
getLocation
public URI getLocation() throws XSPFException
Returns the playlist/track location.- Returns:
- Throws:
XSPFException
-
setLocation
public void setLocation(URI location) throws XSPFException
Sets the playlist/track location.- Parameters:
location-- Throws:
XSPFException
-
getIdentifier
public URI getIdentifier() throws XSPFException
Returns the playlist/track identifier.- Returns:
- Throws:
XSPFException
-
setIdentifier
public void setIdentifier(URI identifier) throws XSPFException
Sets the playlist/track identifier.- Parameters:
identifier-- Throws:
XSPFException
-
getTitle
public String getTitle() throws XSPFException
Returns the playlist/track title.- Returns:
- Throws:
XSPFException
-
setTitle
public void setTitle(String title) throws XSPFException
Sets the playlist/track title.- Parameters:
title-- Throws:
XSPFException
-
getCreator
public String getCreator() throws XSPFException
Returns the playlist/track creator.- Returns:
- Throws:
XSPFException
-
setCreator
public void setCreator(String creator) throws XSPFException
Sets the playlist/track creator.- Parameters:
creator-- Throws:
XSPFException
-
getAnnotation
public String getAnnotation() throws XSPFException
Returns the playlist/track annotation.- Returns:
- Throws:
XSPFException
-
setAnnotation
public void setAnnotation(String annotation) throws XSPFException
Sets the playlist/track annotation.- Parameters:
annotation-- Throws:
XSPFException
-
getInfo
public URI getInfo() throws XSPFException
Returns the playlist/track info.- Returns:
- Throws:
XSPFException
-
setInfo
public void setInfo(URI info) throws XSPFException
Sets the playlist/track info.- Parameters:
info-- Throws:
XSPFException
-
getImage
public URI getImage() throws XSPFException
Returns the playlist/track image.- Returns:
- Throws:
XSPFException
-
setImage
public void setImage(URI image) throws XSPFException
Sets the playlist/track image.- Parameters:
image-- Throws:
XSPFException
-
getLinks
public XSPFLinks getLinks() throws XSPFException
Returns the playlist/track links (as a copy).- Returns:
- Throws:
XSPFException
-
links
public XSPFLinks links() throws XSPFException
Returns the playlist/track links (as a view).- Returns:
- Throws:
XSPFException
-
setLinks
public void setLinks(XSPFLinks links) throws XSPFException
Sets the (copy of) the playlist/track links.- Parameters:
links-- Throws:
XSPFException
-
getMetas
public XSPFMetas getMetas() throws XSPFException
Returns the playlist/track metas (as a copy).- Returns:
- Throws:
XSPFException
-
metas
public XSPFMetas metas() throws XSPFException
Returns the playlist/track metas (as a view).- Returns:
- Throws:
XSPFException
-
setMetas
public void setMetas(XSPFMetas metas) throws XSPFException
Sets (copy of) the playlist/track metas.- Parameters:
metas-- Throws:
XSPFException
-
getExtensions
public XSPFExtensions getExtensions() throws XSPFException
Returns the playlist/track extensions (as copy).- Returns:
- Throws:
XSPFException
-
extensions
public XSPFExtensions extensions() throws XSPFException
Returns the playlist/track extensions (as view).- Returns:
- Throws:
XSPFException
-
setExtensions
public void setExtensions(XSPFExtensions extensions) throws XSPFException
Sets the (copy of the) playlist/track extensions.- Parameters:
extensions-- Throws:
XSPFException
-
-