Class XSPFExtension
- java.lang.Object
-
- cz.martlin.xspf.playlist.base.XSPFNode
-
- cz.martlin.xspf.playlist.base.XSPFElement
-
- cz.martlin.xspf.playlist.elements.XSPFExtension
-
public class XSPFExtension extends XSPFElement
An extension element.- 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 XSPFExtension(Element extension)Creates instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)URIgetApplication()Returns the application.ElementgetElement()Returns the element.XMLDocumentUtilitygetUtility(String nsPrefix, String nsURI)Returns the utility for the given extension.inthashCode()voidsetApplication(URI application)Sets the application.StringtoString()-
Methods inherited from class cz.martlin.xspf.playlist.base.XSPFElement
collection, collection, getCollection, getCollection, getDate, getDuration, getInt, getNode, getStr, getStr, getUri, getUri, getUriAttr, setCollection, setCollection, setDate, setDuration, setInt, setStr, setStr, setUri, setUri, setUriAttr
-
-
-
-
Constructor Detail
-
XSPFExtension
public XSPFExtension(Element extension)
Creates instance.- Parameters:
extension- an extension element
-
-
Method Detail
-
getApplication
public URI getApplication() throws XSPFException
Returns the application.- Returns:
- Throws:
XSPFException
-
setApplication
public void setApplication(URI application) throws XSPFException
Sets the application.- Parameters:
application-- Throws:
XSPFException
-
getElement
public Element getElement()
Description copied from class:XSPFElementReturns the element.- Overrides:
getElementin classXSPFElement- Returns:
-
getUtility
public XMLDocumentUtility getUtility(String nsPrefix, String nsURI) throws XSPFException
Returns the utility for the given extension.- Parameters:
nsPrefix- the XML namespace prefixnsURI- the XML namespace uri- Returns:
- Throws:
XSPFException
-
-