Class XSPFMetas
- java.lang.Object
-
- cz.martlin.xspf.playlist.base.XSPFNode
-
- cz.martlin.xspf.playlist.base.XSPFElement
-
- cz.martlin.xspf.playlist.base.XSPFCollection<XSPFMeta>
-
- cz.martlin.xspf.playlist.collections.XSPFMetas
-
public class XSPFMetas extends XSPFCollection<XSPFMeta>
An collection fo theXSPFMetas.- 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 XSPFMetacreate(Element meta)Creates theXSPFElementfor the given XML element.XSPFMetacreateMeta()Creates (empty) meta.XSPFMetacreateMeta(URI rel, String content)Creates the meta with given rel and content.protected StringelemName()Returns the element name of the children.XSPFMetameta(URI rel)Returns meta 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
-
XSPFMetas
public XSPFMetas(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<XSPFMeta>- Returns:
-
create
protected XSPFMeta create(Element meta)
Description copied from class:XSPFCollectionCreates theXSPFElementfor the given XML element.- Specified by:
createin classXSPFCollection<XSPFMeta>- Returns:
-
createMeta
public XSPFMeta createMeta() throws XSPFException
Creates (empty) meta.- Returns:
- Throws:
XSPFException
-
createMeta
public XSPFMeta createMeta(URI rel, String content) throws XSPFException
Creates the meta with given rel and content.- Parameters:
rel-content-- Returns:
- Throws:
XSPFException
-
meta
public XSPFMeta meta(URI rel) throws XSPFException
Returns meta having the given rel. Null if no such.- Parameters:
rel-- Returns:
- Throws:
XSPFException
-
-