Class XSPFExtensions
- java.lang.Object
-
- cz.martlin.xspf.playlist.base.XSPFNode
-
- cz.martlin.xspf.playlist.base.XSPFElement
-
- cz.martlin.xspf.playlist.base.XSPFCollection<XSPFExtension>
-
- cz.martlin.xspf.playlist.collections.XSPFExtensions
-
public class XSPFExtensions extends XSPFCollection<XSPFExtension>
An collection of theXSPFExtension.- 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 XSPFExtensions(Element container)Creates instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected XSPFExtensioncreate(Element child)Creates theXSPFElementfor the given XML element.XSPFExtensioncreateExtension()Creates (empty) extension.XSPFExtensioncreateExtension(URI application)Creates new extension for the given application.protected StringelemName()Returns the element name of the children.XSPFExtensionextension(URI application)Finds the extension for the given application.-
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
-
XSPFExtensions
public XSPFExtensions(Element container)
Creates instance.- Parameters:
container- either the playlist or track element
-
-
Method Detail
-
create
protected XSPFExtension create(Element child)
Description copied from class:XSPFCollectionCreates theXSPFElementfor the given XML element.- Specified by:
createin classXSPFCollection<XSPFExtension>- Returns:
-
elemName
protected String elemName()
Description copied from class:XSPFCollectionReturns the element name of the children.- Specified by:
elemNamein classXSPFCollection<XSPFExtension>- Returns:
-
createExtension
public XSPFExtension createExtension() throws XSPFException
Creates (empty) extension.- Returns:
- Throws:
XSPFException
-
createExtension
public XSPFExtension createExtension(URI application) throws XSPFException
Creates new extension for the given application.- Parameters:
application-- Returns:
- Throws:
XSPFException
-
extension
public XSPFExtension extension(URI application) throws XSPFException
Finds the extension for the given application. Null if no such.- Parameters:
application-- Returns:
- Throws:
XSPFException
-
-