com.melloware.jspiff.jaxp
Class XspfPlaylist

java.lang.Object
  extended by com.melloware.jspiff.jaxp.XspfPlaylist
All Implemented Interfaces:
Serializable, Cloneable

public class XspfPlaylist
extends Object
implements Serializable, Cloneable

XspfPlaylist is generated from xspf.rng by Relaxer. This class is derived from:

 <element name="playlist">
             <attribute name="version">
                 <data type="string">
                     <param name="pattern">\d+</param>
                 </data>
             </attribute>

             <optional>
                 <element name="title">
                     <text/>
                 </element>
             </optional>
             <optional>
                 <element name="creator">
                     <text/>
                 </element>
             </optional>
             <optional>
                 <element name="annotation">
                     <text/>
                 </element>
             </optional>
             <optional>
                 <element name="info">
                     <text/>
                 </element>
             </optional>
             <optional>
                 <element name="location">
                     <data type="anyURI"/>
                 </element>
             </optional>
             <optional>
                 <element name="identifier">
                     <data type="anyURI"/>
                 </element>
             </optional>
             <optional>
                 <element name="image">
                     <data type="anyURI"/>
                 </element>
             </optional>
             <optional>
                 <element name="date">
                     <data type="dateTime"/>
                 </element>
             </optional>
             <optional>
                 <element name="license">
                     <data type="anyURI"/>
                 </element>
             </optional>

             <optional>
                 <ref name="attribution"/>
             </optional>

             <zeroOrMore>
                 <ref name="link"/>
             </zeroOrMore>
             <zeroOrMore>
                 <ref name="meta"/>
             </zeroOrMore>
             <zeroOrMore>
                 <ref name="extension"/>
             </zeroOrMore>

             <element name="trackList">
                 <zeroOrMore>
                     <ref name="track"/>
                 </zeroOrMore>
             </element>
         </element>

Version:
xspf.rng (Wed Sep 27 17:36:25 EDT 2006)
Author:
Relaxer 1.1b (http://www.relaxer.org), Emil A. Lefkof III
See Also:
Serialized Form

Constructor Summary
XspfPlaylist()
          Creates a XspfPlaylist.
XspfPlaylist(Document doc)
          Creates a XspfPlaylist by the Document doc.
XspfPlaylist(Element element)
          Creates a XspfPlaylist by the Element element.
XspfPlaylist(File file)
          Creates a XspfPlaylist by the File file.
XspfPlaylist(InputSource is)
          Creates a XspfPlaylist by the InputSource is.
XspfPlaylist(InputStream in)
          Creates a XspfPlaylist by the InputStream in.
XspfPlaylist(Reader reader)
          Creates a XspfPlaylist by the Reader reader.
XspfPlaylist(RStack stack)
          Creates a XspfPlaylist by the Stack stack that contains Elements.
XspfPlaylist(String uri)
          Creates a XspfPlaylist by the String representation of URI uri.
XspfPlaylist(URL url)
          Creates a XspfPlaylist by the URL url.
XspfPlaylist(XspfPlaylist source)
          Creates a XspfPlaylist.
 
Method Summary
 void addAttribution_Location(String location)
          Adds attribute.
 void addExtension(int index, XspfExtension extension)
          Adds the XspfExtension property extension by index.
 void addExtension(XspfExtension extension)
          Adds the XspfExtension property extension.
 void addExtension(XspfExtension[] extension)
          Adds the XspfExtension property extension.
 void addLink(int index, XspfLink link)
          Adds the XspfLink property link by index.
 void addLink(XspfLink link)
          Adds the XspfLink property link.
 void addLink(XspfLink[] link)
          Adds the XspfLink property link.
 void addMeta(int index, XspfMeta meta)
          Adds the XspfMeta property meta by index.
 void addMeta(XspfMeta meta)
          Adds the XspfMeta property meta.
 void addMeta(XspfMeta[] meta)
          Adds the XspfMeta property meta.
 void clearExtension()
          Clear the XspfExtension property extension.
 void clearLink()
          Clear the XspfLink property link.
 void clearMeta()
          Clear the XspfMeta property meta.
 Object clone()
           
 String getAnnotation()
          Gets the String property annotation.
 String getAnnotationAsString()
          Gets the property value as String.
 String[] getAttribution_Location()
          Gets attribute.
 XspfAttribution getAttribution()
          Gets the XspfAttribution property attribution.
 String getCreator()
          Gets the String property creator.
 String getCreatorAsString()
          Gets the property value as String.
 Timestamp getDate()
          Gets the java.sql.Timestamp property date.
 String getDateAsString()
          Gets the property value as String.
 XspfExtension[] getExtension()
          Gets the XspfExtension property extension.
 XspfExtension getExtension(int index)
          Gets the XspfExtension property extension by index.
 String getIdentifier()
          Gets the String property identifier.
 String getIdentifierAsString()
          Gets the property value as String.
 String getImage()
          Gets the String property image.
 String getImageAsString()
          Gets the property value as String.
 String getInfo()
          Gets the String property info.
 String getInfoAsString()
          Gets the property value as String.
 String getLicense()
          Gets the String property license.
 String getLicenseAsString()
          Gets the property value as String.
 XspfLink[] getLink()
          Gets the XspfLink property link.
 XspfLink getLink(int index)
          Gets the XspfLink property link by index.
 String getLocation()
          Gets the String property location.
 String getLocationAsString()
          Gets the property value as String.
 XspfMeta[] getMeta()
          Gets the XspfMeta property meta.
 XspfMeta getMeta(int index)
          Gets the XspfMeta property meta by index.
 XspfPlaylistTrackList getPlaylistTrackList()
          Gets the XspfPlaylistTrackList property playlistTrackList.
 String getTitle()
          Gets the String property title.
 String getTitleAsString()
          Gets the property value as String.
 String getVersion()
          Gets the String property version.
 String getVersionAsString()
          Gets the property value as String.
static boolean isMatch(Element element)
          Tests if a Element element is valid for the XspfPlaylist.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfPlaylist.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfPlaylist.
 Document makeDocument()
          Creates a DOM document representation of the object.
 void makeElement(Node parent)
          Creates a DOM representation of the object.
 void makeTextAttribute(PrintWriter buffer)
          Makes an XML text representation.
 void makeTextAttribute(StringBuffer buffer)
          Makes an XML text representation.
 void makeTextAttribute(Writer buffer)
          Makes an XML text representation.
 String makeTextDocument()
          Makes an XML text representation.
 void makeTextElement(PrintWriter buffer)
          Makes an XML text representation.
 void makeTextElement(StringBuffer buffer)
          Makes an XML text representation.
 void makeTextElement(Writer buffer)
          Makes an XML text representation.
 void removeExtension(int index)
          Remove the XspfExtension property extension by index.
 void removeExtension(XspfExtension extension)
          Remove the XspfExtension property extension by object.
 void removeLink(int index)
          Remove the XspfLink property link by index.
 void removeLink(XspfLink link)
          Remove the XspfLink property link by object.
 void removeMeta(int index)
          Remove the XspfMeta property meta by index.
 void removeMeta(XspfMeta meta)
          Remove the XspfMeta property meta by object.
 void setAnnotation(String annotation)
          Sets the String property annotation.
 void setAnnotationByString(String string)
          Sets the property value by String.
 void setAttribution_Location(String[] location)
          Gets attribute.
 void setAttribution(XspfAttribution attribution)
          Sets the XspfAttribution property attribution.
 void setCreator(String creator)
          Sets the String property creator.
 void setCreatorByString(String string)
          Sets the property value by String.
 void setDate(Timestamp date)
          Sets the java.sql.Timestamp property date.
 void setDateByString(String string)
          Sets the property value by String.
 void setExtension(int index, XspfExtension extension)
          Sets the XspfExtension property extension by index.
 void setExtension(XspfExtension extension)
          Sets the XspfExtension property extension.
 void setExtension(XspfExtension[] extension)
          Sets the XspfExtension property extension.
 void setIdentifier(String identifier)
          Sets the String property identifier.
 void setIdentifierByString(String string)
          Sets the property value by String.
 void setImage(String image)
          Sets the String property image.
 void setImageByString(String string)
          Sets the property value by String.
 void setInfo(String info)
          Sets the String property info.
 void setInfoByString(String string)
          Sets the property value by String.
 void setLicense(String license)
          Sets the String property license.
 void setLicenseByString(String string)
          Sets the property value by String.
 void setLink(int index, XspfLink link)
          Sets the XspfLink property link by index.
 void setLink(XspfLink link)
          Sets the XspfLink property link.
 void setLink(XspfLink[] link)
          Sets the XspfLink property link.
 void setLocation(String location)
          Sets the String property location.
 void setLocationByString(String string)
          Sets the property value by String.
 void setMeta(int index, XspfMeta meta)
          Sets the XspfMeta property meta by index.
 void setMeta(XspfMeta meta)
          Sets the XspfMeta property meta.
 void setMeta(XspfMeta[] meta)
          Sets the XspfMeta property meta.
 void setPlaylistTrackList(XspfPlaylistTrackList playlistTrackList)
          Sets the XspfPlaylistTrackList property playlistTrackList.
 void setTitle(String title)
          Sets the String property title.
 void setTitleByString(String string)
          Sets the property value by String.
 void setup(Document doc)
          Initializes the XspfPlaylist by the Document doc.
 void setup(Element element)
          Initializes the XspfPlaylist by the Element element.
 void setup(File file)
          Initializes the XspfPlaylist by the File file.
 void setup(InputSource is)
          Initializes the XspfPlaylist by the InputSource is.
 void setup(InputStream in)
          Initializes the XspfPlaylist by the InputStream in.
 void setup(Reader reader)
          Initializes the XspfPlaylist by the Reader reader.
 void setup(RStack stack)
          Initializes the XspfPlaylist by the Stack stack that contains Elements.
 void setup(String uri)
          Initializes the XspfPlaylist by the String representation of URI uri.
 void setup(URL url)
          Initializes the XspfPlaylist by the URL url.
 void setup(XspfPlaylist source)
          Initializes the XspfPlaylist by the XspfPlaylist source.
 void setVersion(String version)
          Sets the String property version.
 void setVersionByString(String string)
          Sets the property value by String.
 int sizeExtension()
          Gets number of the XspfExtension property extension.
 int sizeLink()
          Gets number of the XspfLink property link.
 int sizeMeta()
          Gets number of the XspfMeta property meta.
 String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XspfPlaylist

public XspfPlaylist()
Creates a XspfPlaylist.


XspfPlaylist

public XspfPlaylist(XspfPlaylist source)
Creates a XspfPlaylist.

Parameters:
source -

XspfPlaylist

public XspfPlaylist(RStack stack)
Creates a XspfPlaylist by the Stack stack that contains Elements. This constructor is supposed to be used internally by the Relaxer system.

Parameters:
stack -

XspfPlaylist

public XspfPlaylist(Document doc)
Creates a XspfPlaylist by the Document doc.

Parameters:
doc -

XspfPlaylist

public XspfPlaylist(Element element)
Creates a XspfPlaylist by the Element element.

Parameters:
element -

XspfPlaylist

public XspfPlaylist(File file)
             throws IOException,
                    SAXException,
                    ParserConfigurationException
Creates a XspfPlaylist by the File file.

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylist

public XspfPlaylist(String uri)
             throws IOException,
                    SAXException,
                    ParserConfigurationException
Creates a XspfPlaylist by the String representation of URI uri.

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylist

public XspfPlaylist(URL url)
             throws IOException,
                    SAXException,
                    ParserConfigurationException
Creates a XspfPlaylist by the URL url.

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylist

public XspfPlaylist(InputStream in)
             throws IOException,
                    SAXException,
                    ParserConfigurationException
Creates a XspfPlaylist by the InputStream in.

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylist

public XspfPlaylist(InputSource is)
             throws IOException,
                    SAXException,
                    ParserConfigurationException
Creates a XspfPlaylist by the InputSource is.

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylist

public XspfPlaylist(Reader reader)
             throws IOException,
                    SAXException,
                    ParserConfigurationException
Creates a XspfPlaylist by the Reader reader.

Parameters:
reader -
Throws:
IOException
SAXException
ParserConfigurationException
Method Detail

isMatch

public static boolean isMatch(Element element)
Tests if a Element element is valid for the XspfPlaylist.

Parameters:
element -
Returns:
boolean

isMatch

public static boolean isMatch(RStack stack)
Tests if elements contained in a Stack stack is valid for the XspfPlaylist. This mehtod is supposed to be used internally by the Relaxer system.

Parameters:
stack -
Returns:
boolean

isMatchHungry

public static boolean isMatchHungry(RStack stack)
Tests if elements contained in a Stack stack is valid for the XspfPlaylist. This method consumes the stack contents during matching operation. This mehtod is supposed to be used internally by the Relaxer system.

Parameters:
stack -
Returns:
boolean

getAnnotation

public String getAnnotation()
Gets the String property annotation.

Returns:
String

getAnnotationAsString

public String getAnnotationAsString()
Gets the property value as String.

Returns:
String

getAttribution

public XspfAttribution getAttribution()
Gets the XspfAttribution property attribution.

Returns:
XspfAttribution

getAttribution_Location

public String[] getAttribution_Location()
Gets attribute.

Returns:
String[]

getCreator

public String getCreator()
Gets the String property creator.

Returns:
String

getCreatorAsString

public String getCreatorAsString()
Gets the property value as String.

Returns:
String

getDate

public Timestamp getDate()
Gets the java.sql.Timestamp property date.

Returns:
java.sql.Timestamp

getDateAsString

public String getDateAsString()
Gets the property value as String.

Returns:
String

getExtension

public XspfExtension[] getExtension()
Gets the XspfExtension property extension.

Returns:
XspfExtension[]

getExtension

public XspfExtension getExtension(int index)
Gets the XspfExtension property extension by index.

Parameters:
index -
Returns:
XspfExtension

getIdentifier

public String getIdentifier()
Gets the String property identifier.

Returns:
String

getIdentifierAsString

public String getIdentifierAsString()
Gets the property value as String.

Returns:
String

getImage

public String getImage()
Gets the String property image.

Returns:
String

getImageAsString

public String getImageAsString()
Gets the property value as String.

Returns:
String

getInfo

public String getInfo()
Gets the String property info.

Returns:
String

getInfoAsString

public String getInfoAsString()
Gets the property value as String.

Returns:
String

getLicense

public String getLicense()
Gets the String property license.

Returns:
String

getLicenseAsString

public String getLicenseAsString()
Gets the property value as String.

Returns:
String

getLink

public XspfLink[] getLink()
Gets the XspfLink property link.

Returns:
XspfLink[]

getLink

public XspfLink getLink(int index)
Gets the XspfLink property link by index.

Parameters:
index -
Returns:
XspfLink

getLocation

public String getLocation()
Gets the String property location.

Returns:
String

getLocationAsString

public String getLocationAsString()
Gets the property value as String.

Returns:
String

getMeta

public XspfMeta[] getMeta()
Gets the XspfMeta property meta.

Returns:
XspfMeta[]

getMeta

public XspfMeta getMeta(int index)
Gets the XspfMeta property meta by index.

Parameters:
index -
Returns:
XspfMeta

getPlaylistTrackList

public XspfPlaylistTrackList getPlaylistTrackList()
Gets the XspfPlaylistTrackList property playlistTrackList.

Returns:
XspfPlaylistTrackList

getTitle

public String getTitle()
Gets the String property title.

Returns:
String

getTitleAsString

public String getTitleAsString()
Gets the property value as String.

Returns:
String

getVersion

public String getVersion()
Gets the String property version.

Returns:
String

getVersionAsString

public String getVersionAsString()
Gets the property value as String.

Returns:
String

setAnnotation

public void setAnnotation(String annotation)
Sets the String property annotation.

Parameters:
annotation -

setAnnotationByString

public void setAnnotationByString(String string)
Sets the property value by String.

Parameters:
string -

setAttribution

public void setAttribution(XspfAttribution attribution)
Sets the XspfAttribution property attribution.

Parameters:
attribution -

setAttribution_Location

public void setAttribution_Location(String[] location)
Gets attribute.

Parameters:
location -

setCreator

public void setCreator(String creator)
Sets the String property creator.

Parameters:
creator -

setCreatorByString

public void setCreatorByString(String string)
Sets the property value by String.

Parameters:
string -

setDate

public void setDate(Timestamp date)
Sets the java.sql.Timestamp property date.

Parameters:
date -

setDateByString

public void setDateByString(String string)
Sets the property value by String.

Parameters:
string -

setExtension

public void setExtension(XspfExtension[] extension)
Sets the XspfExtension property extension.

Parameters:
extension -

setExtension

public void setExtension(XspfExtension extension)
Sets the XspfExtension property extension.

Parameters:
extension -

setExtension

public void setExtension(int index,
                         XspfExtension extension)
Sets the XspfExtension property extension by index.

Parameters:
index -
extension -

setIdentifier

public void setIdentifier(String identifier)
Sets the String property identifier.

Parameters:
identifier -

setIdentifierByString

public void setIdentifierByString(String string)
Sets the property value by String.

Parameters:
string -

setImage

public void setImage(String image)
Sets the String property image.

Parameters:
image -

setImageByString

public void setImageByString(String string)
Sets the property value by String.

Parameters:
string -

setInfo

public void setInfo(String info)
Sets the String property info.

Parameters:
info -

setInfoByString

public void setInfoByString(String string)
Sets the property value by String.

Parameters:
string -

setLicense

public void setLicense(String license)
Sets the String property license.

Parameters:
license -

setLicenseByString

public void setLicenseByString(String string)
Sets the property value by String.

Parameters:
string -

setLink

public void setLink(XspfLink[] link)
Sets the XspfLink property link.

Parameters:
link -

setLink

public void setLink(XspfLink link)
Sets the XspfLink property link.

Parameters:
link -

setLink

public void setLink(int index,
                    XspfLink link)
Sets the XspfLink property link by index.

Parameters:
index -
link -

setLocation

public void setLocation(String location)
Sets the String property location.

Parameters:
location -

setLocationByString

public void setLocationByString(String string)
Sets the property value by String.

Parameters:
string -

setMeta

public void setMeta(XspfMeta[] meta)
Sets the XspfMeta property meta.

Parameters:
meta -

setMeta

public void setMeta(XspfMeta meta)
Sets the XspfMeta property meta.

Parameters:
meta -

setMeta

public void setMeta(int index,
                    XspfMeta meta)
Sets the XspfMeta property meta by index.

Parameters:
index -
meta -

setPlaylistTrackList

public void setPlaylistTrackList(XspfPlaylistTrackList playlistTrackList)
Sets the XspfPlaylistTrackList property playlistTrackList.

Parameters:
playlistTrackList -

setTitle

public void setTitle(String title)
Sets the String property title.

Parameters:
title -

setTitleByString

public void setTitleByString(String string)
Sets the property value by String.

Parameters:
string -

setVersion

public void setVersion(String version)
Sets the String property version.

Parameters:
version -

setVersionByString

public void setVersionByString(String string)
Sets the property value by String.

Parameters:
string -

addAttribution_Location

public void addAttribution_Location(String location)
Adds attribute.

Parameters:
location -

addExtension

public void addExtension(XspfExtension extension)
Adds the XspfExtension property extension.

Parameters:
extension -

addExtension

public void addExtension(XspfExtension[] extension)
Adds the XspfExtension property extension.

Parameters:
extension -

addExtension

public void addExtension(int index,
                         XspfExtension extension)
Adds the XspfExtension property extension by index.

Parameters:
index -
extension -

addLink

public void addLink(XspfLink link)
Adds the XspfLink property link.

Parameters:
link -

addLink

public void addLink(XspfLink[] link)
Adds the XspfLink property link.

Parameters:
link -

addLink

public void addLink(int index,
                    XspfLink link)
Adds the XspfLink property link by index.

Parameters:
index -
link -

addMeta

public void addMeta(XspfMeta meta)
Adds the XspfMeta property meta.

Parameters:
meta -

addMeta

public void addMeta(XspfMeta[] meta)
Adds the XspfMeta property meta.

Parameters:
meta -

addMeta

public void addMeta(int index,
                    XspfMeta meta)
Adds the XspfMeta property meta by index.

Parameters:
index -
meta -

clearExtension

public void clearExtension()
Clear the XspfExtension property extension.


clearLink

public void clearLink()
Clear the XspfLink property link.


clearMeta

public void clearMeta()
Clear the XspfMeta property meta.


clone

public Object clone()
Overrides:
clone in class Object
Returns:
Object

makeDocument

public Document makeDocument()
                      throws ParserConfigurationException
Creates a DOM document representation of the object.

Returns:
Document
Throws:
ParserConfigurationException

makeElement

public void makeElement(Node parent)
Creates a DOM representation of the object. Result is appended to the Node parent.

Parameters:
parent -

makeTextAttribute

public void makeTextAttribute(StringBuffer buffer)
Makes an XML text representation.

Parameters:
buffer -

makeTextAttribute

public void makeTextAttribute(Writer buffer)
                       throws IOException
Makes an XML text representation.

Parameters:
buffer -
Throws:
IOException

makeTextAttribute

public void makeTextAttribute(PrintWriter buffer)
Makes an XML text representation.

Parameters:
buffer -

makeTextDocument

public String makeTextDocument()
Makes an XML text representation.

Returns:
String

makeTextElement

public void makeTextElement(StringBuffer buffer)
Makes an XML text representation.

Parameters:
buffer -

makeTextElement

public void makeTextElement(Writer buffer)
                     throws IOException
Makes an XML text representation.

Parameters:
buffer -
Throws:
IOException

makeTextElement

public void makeTextElement(PrintWriter buffer)
Makes an XML text representation.

Parameters:
buffer -

removeExtension

public void removeExtension(int index)
Remove the XspfExtension property extension by index.

Parameters:
index -

removeExtension

public void removeExtension(XspfExtension extension)
Remove the XspfExtension property extension by object.

Parameters:
extension -

removeLink

public void removeLink(int index)
Remove the XspfLink property link by index.

Parameters:
index -

removeLink

public void removeLink(XspfLink link)
Remove the XspfLink property link by object.

Parameters:
link -

removeMeta

public void removeMeta(int index)
Remove the XspfMeta property meta by index.

Parameters:
index -

removeMeta

public void removeMeta(XspfMeta meta)
Remove the XspfMeta property meta by object.

Parameters:
meta -

setup

public void setup(XspfPlaylist source)
Initializes the XspfPlaylist by the XspfPlaylist source.

Parameters:
source -

setup

public void setup(Document doc)
Initializes the XspfPlaylist by the Document doc.

Parameters:
doc -

setup

public void setup(Element element)
Initializes the XspfPlaylist by the Element element.

Parameters:
element -

setup

public void setup(RStack stack)
Initializes the XspfPlaylist by the Stack stack that contains Elements. This constructor is supposed to be used internally by the Relaxer system.

Parameters:
stack -

setup

public void setup(File file)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfPlaylist by the File file.

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(String uri)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the