|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.melloware.jspiff.jaxp.XspfPlaylist
public class XspfPlaylist
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>
| 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 |
|---|
public XspfPlaylist()
XspfPlaylist.
public XspfPlaylist(XspfPlaylist source)
XspfPlaylist.
source - public XspfPlaylist(RStack stack)
XspfPlaylist by the Stack stack
that contains Elements.
This constructor is supposed to be used internally
by the Relaxer system.
stack - public XspfPlaylist(Document doc)
XspfPlaylist by the Document doc.
doc - public XspfPlaylist(Element element)
XspfPlaylist by the Element element.
element -
public XspfPlaylist(File file)
throws IOException,
SAXException,
ParserConfigurationException
XspfPlaylist by the File file.
file -
IOException
SAXException
ParserConfigurationException
public XspfPlaylist(String uri)
throws IOException,
SAXException,
ParserConfigurationException
XspfPlaylist
by the String representation of URI uri.
uri -
IOException
SAXException
ParserConfigurationException
public XspfPlaylist(URL url)
throws IOException,
SAXException,
ParserConfigurationException
XspfPlaylist by the URL url.
url -
IOException
SAXException
ParserConfigurationException
public XspfPlaylist(InputStream in)
throws IOException,
SAXException,
ParserConfigurationException
XspfPlaylist by the InputStream in.
in -
IOException
SAXException
ParserConfigurationException
public XspfPlaylist(InputSource is)
throws IOException,
SAXException,
ParserConfigurationException
XspfPlaylist by the InputSource is.
is -
IOException
SAXException
ParserConfigurationException
public XspfPlaylist(Reader reader)
throws IOException,
SAXException,
ParserConfigurationException
XspfPlaylist by the Reader reader.
reader -
IOException
SAXException
ParserConfigurationException| Method Detail |
|---|
public static boolean isMatch(Element element)
element is valid
for the XspfPlaylist.
element -
public static boolean isMatch(RStack stack)
stack
is valid for the XspfPlaylist.
This mehtod is supposed to be used internally
by the Relaxer system.
stack -
public static boolean isMatchHungry(RStack 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.
stack -
public String getAnnotation()
public String getAnnotationAsString()
public XspfAttribution getAttribution()
public String[] getAttribution_Location()
public String getCreator()
public String getCreatorAsString()
public Timestamp getDate()
public String getDateAsString()
public XspfExtension[] getExtension()
public XspfExtension getExtension(int index)
index -
public String getIdentifier()
public String getIdentifierAsString()
public String getImage()
public String getImageAsString()
public String getInfo()
public String getInfoAsString()
public String getLicense()
public String getLicenseAsString()
public XspfLink[] getLink()
public XspfLink getLink(int index)
index -
public String getLocation()
public String getLocationAsString()
public XspfMeta[] getMeta()
public XspfMeta getMeta(int index)
index -
public XspfPlaylistTrackList getPlaylistTrackList()
public String getTitle()
public String getTitleAsString()
public String getVersion()
public String getVersionAsString()
public void setAnnotation(String annotation)
annotation - public void setAnnotationByString(String string)
string - public void setAttribution(XspfAttribution attribution)
attribution - public void setAttribution_Location(String[] location)
location - public void setCreator(String creator)
creator - public void setCreatorByString(String string)
string - public void setDate(Timestamp date)
date - public void setDateByString(String string)
string - public void setExtension(XspfExtension[] extension)
extension - public void setExtension(XspfExtension extension)
extension -
public void setExtension(int index,
XspfExtension extension)
index - extension - public void setIdentifier(String identifier)
identifier - public void setIdentifierByString(String string)
string - public void setImage(String image)
image - public void setImageByString(String string)
string - public void setInfo(String info)
info - public void setInfoByString(String string)
string - public void setLicense(String license)
license - public void setLicenseByString(String string)
string - public void setLink(XspfLink[] link)
link - public void setLink(XspfLink link)
link -
public void setLink(int index,
XspfLink link)
index - link - public void setLocation(String location)
location - public void setLocationByString(String string)
string - public void setMeta(XspfMeta[] meta)
meta - public void setMeta(XspfMeta meta)
meta -
public void setMeta(int index,
XspfMeta meta)
index - meta - public void setPlaylistTrackList(XspfPlaylistTrackList playlistTrackList)
playlistTrackList - public void setTitle(String title)
title - public void setTitleByString(String string)
string - public void setVersion(String version)
version - public void setVersionByString(String string)
string - public void addAttribution_Location(String location)
location - public void addExtension(XspfExtension extension)
extension - public void addExtension(XspfExtension[] extension)
extension -
public void addExtension(int index,
XspfExtension extension)
index - extension - public void addLink(XspfLink link)
link - public void addLink(XspfLink[] link)
link -
public void addLink(int index,
XspfLink link)
index - link - public void addMeta(XspfMeta meta)
meta - public void addMeta(XspfMeta[] meta)
meta -
public void addMeta(int index,
XspfMeta meta)
index - meta - public void clearExtension()
public void clearLink()
public void clearMeta()
public Object clone()
clone in class Object
public Document makeDocument()
throws ParserConfigurationException
ParserConfigurationExceptionpublic void makeElement(Node parent)
parent.
parent - public void makeTextAttribute(StringBuffer buffer)
buffer -
public void makeTextAttribute(Writer buffer)
throws IOException
buffer -
IOExceptionpublic void makeTextAttribute(PrintWriter buffer)
buffer - public String makeTextDocument()
public void makeTextElement(StringBuffer buffer)
buffer -
public void makeTextElement(Writer buffer)
throws IOException
buffer -
IOExceptionpublic void makeTextElement(PrintWriter buffer)
buffer - public void removeExtension(int index)
index - public void removeExtension(XspfExtension extension)
extension - public void removeLink(int index)
index - public void removeLink(XspfLink link)
link - public void removeMeta(int index)
index - public void removeMeta(XspfMeta meta)
meta - public void setup(XspfPlaylist source)
XspfPlaylist by the XspfPlaylist source.
source - public void setup(Document doc)
XspfPlaylist by the Document doc.
doc - public void setup(Element element)
XspfPlaylist by the Element element.
element - public void setup(RStack stack)
XspfPlaylist by the Stack stack
that contains Elements.
This constructor is supposed to be used internally
by the Relaxer system.
stack -
public void setup(File file)
throws IOException,
SAXException,
ParserConfigurationException
XspfPlaylist by the File file.
file -
IOException
SAXException
ParserConfigurationException
public void setup(String uri)
throws IOException,
SAXException,
ParserConfigurationException