Class XSPFLinks
- java.lang.Object
-
- cz.martlin.xspf.playlist.base.XSPFNode
-
- cz.martlin.xspf.playlist.base.XSPFElement
-
- cz.martlin.xspf.playlist.base.XSPFCollection<XSPFLink>
-
- cz.martlin.xspf.playlist.collections.XSPFLinks
-
public class XSPFLinks extends XSPFCollection<XSPFLink>
An collection of theXSPFLinks.- 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 protected XSPFLinkcreate(Element link)Creates theXSPFElementfor the given XML element.XSPFLinkcreateLink()Creates new (empty) link.XSPFLinkcreateLink(URI rel, URI content)Creates link with given rel and content.protected StringelemName()Returns the element name of the children.XSPFLinklink(URI rel)Returns link having the given rel.-
Methods inherited from class cz.martlin.xspf.playlist.base.XSPFCollection
add, createNew, equals, hashCode, iterate, list, remove, size, toString
-
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
-
XSPFLinks
public XSPFLinks(Element container)
Creates instance.- Parameters:
container- either the playlist or track element
-
-
Method Detail
-
elemName
protected String elemName()
Description copied from class:XSPFCollectionReturns the element name of the children.- Specified by:
elemNamein classXSPFCollection<XSPFLink>- Returns:
-
create
protected XSPFLink create(Element link)
Description copied from class:XSPFCollectionCreates theXSPFElementfor the given XML element.- Specified by:
createin classXSPFCollection<XSPFLink>- Returns:
-
createLink
public XSPFLink createLink() throws XSPFException
Creates new (empty) link.- Returns:
- Throws:
XSPFException
-
createLink
public XSPFLink createLink(URI rel, URI content) throws XSPFException
Creates link with given rel and content.- Parameters:
rel-content-- Returns:
- Throws:
XSPFException
-
link
public XSPFLink link(URI rel) throws XSPFException
Returns link having the given rel. Null if no such.- Parameters:
rel-- Returns:
- Throws:
XSPFException
-
-