Class XSPFAttribution
- java.lang.Object
-
- cz.martlin.xspf.playlist.base.XSPFNode
-
- cz.martlin.xspf.playlist.base.XSPFElement
-
- cz.martlin.xspf.playlist.elements.XSPFAttribution
-
public class XSPFAttribution extends XSPFElement
An attribution element.- Author:
- martin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXSPFAttribution.XSPFAttributionItemThe attribution item is just an element name with such element's content.-
Nested classes/interfaces inherited from class cz.martlin.xspf.playlist.base.XSPFElement
XSPFElement.XSPFCollectionFactory<E extends XSPFElement>
-
-
Constructor Summary
Constructors Constructor Description XSPFAttribution(Element attribution)Creates instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(XSPFAttribution.XSPFAttributionItem item)Adds given item.voidadd(String element, String value)Adds item with given element name and value.booleanequals(Object obj)inthashCode()List<XSPFAttribution.XSPFAttributionItem>list()Lists the items.StringtoString()-
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
-
XSPFAttribution
public XSPFAttribution(Element attribution)
Creates instance.- Parameters:
attribution- the attribution element
-
-
Method Detail
-
list
public List<XSPFAttribution.XSPFAttributionItem> list() throws XSPFException
Lists the items.- Returns:
- Throws:
XSPFException
-
add
public void add(XSPFAttribution.XSPFAttributionItem item) throws XSPFException
Adds given item.- Parameters:
item-- Throws:
XSPFException
-
add
public void add(String element, String value) throws XSPFException
Adds item with given element name and value.- Parameters:
element-value-- Throws:
XSPFException
-
-