|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.melloware.jspiff.jaxp.XspfTrack
public class XspfTrack
XspfTrack is generated from xspf.rng by Relaxer. This class is derived from:
<element name="track">
<zeroOrMore>
<element name="location">
<data type="anyURI"/>
</element>
</zeroOrMore>
<zeroOrMore>
<element name="identifier">
<data type="anyURI"/>
</element>
</zeroOrMore>
<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="image">
<data type="anyURI"/>
</element>
</optional>
<optional>
<element name="album">
<text/>
</element>
</optional>
<optional>
<element name="trackNum">
<data type="nonNegativeInteger"/>
</element>
</optional>
<optional>
<element name="duration">
<data type="nonNegativeInteger"/>
</element>
</optional>
<zeroOrMore>
<ref name="link"/>
</zeroOrMore>
<zeroOrMore>
<ref name="meta"/>
</zeroOrMore>
<zeroOrMore>
<ref name="extension"/>
</zeroOrMore>
</element>
| Constructor Summary | |
|---|---|
XspfTrack()
Creates a XspfTrack. |
|
XspfTrack(Document doc)
Creates a XspfTrack by the Document doc. |
|
XspfTrack(Element element)
Creates a XspfTrack by the Element element. |
|
XspfTrack(File file)
Creates a XspfTrack by the File file. |
|
XspfTrack(InputSource is)
Creates a XspfTrack by the InputSource is. |
|
XspfTrack(InputStream in)
Creates a XspfTrack by the InputStream in. |
|
XspfTrack(Reader reader)
Creates a XspfTrack by the Reader reader. |
|
XspfTrack(RStack stack)
Creates a XspfTrack by the Stack stack
that contains Elements. |
|
XspfTrack(String uri)
Creates a XspfTrack
by the String representation of URI uri. |
|
XspfTrack(URL url)
Creates a XspfTrack by the URL url. |
|
XspfTrack(XspfTrack source)
Creates a XspfTrack. |
|
| Method Summary | |
|---|---|
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 |
addIdentifier(int index,
String identifier)
Adds the String property identifier by index. |
void |
addIdentifier(String identifier)
Adds the String property identifier. |
void |
addIdentifier(String[] identifier)
Adds the String property identifier. |
void |
addIdentifierByString(String string)
Adds the property value by String. |
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 |
addLocation(int index,
String location)
Adds the String property location by index. |
void |
addLocation(String location)
Adds the String property location. |
void |
addLocation(String[] location)
Adds the String property location. |
void |
addLocationByString(String string)
Adds the property value by String. |
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 |
clearIdentifier()
Clear the String property identifier. |
void |
clearLink()
Clear the XspfLink property link. |
void |
clearLocation()
Clear the String property location. |
void |
clearMeta()
Clear the XspfMeta property meta. |
Object |
clone()
|
String |
getAlbum()
Gets the String property album. |
String |
getAlbumAsString()
Gets the property value as String. |
String |
getAnnotation()
Gets the String property annotation. |
String |
getAnnotationAsString()
Gets the property value as String. |
String |
getCreator()
Gets the String property creator. |
String |
getCreatorAsString()
Gets the property value as String. |
BigInteger |
getDuration()
Gets the java.math.BigInteger property duration. |
String |
getDurationAsString()
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 |
getIdentifier(int index)
Gets the String property identifier by index. |
String[] |
getIdentifierAsString()
Gets the property value as String array. |
String |
getIdentifierAsString(int index)
Gets the property value by index 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. |
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 |
getLocation(int index)
Gets the String property location by index. |
String[] |
getLocationAsString()
Gets the property value as String array. |
String |
getLocationAsString(int index)
Gets the property value by index as String. |
XspfMeta[] |
getMeta()
Gets the XspfMeta property meta. |
XspfMeta |
getMeta(int index)
Gets the XspfMeta property meta by index. |
String |
getTitle()
Gets the String property title. |
String |
getTitleAsString()
Gets the property value as String. |
BigInteger |
getTrackNum()
Gets the java.math.BigInteger property trackNum. |
String |
getTrackNumAsString()
Gets the property value as String. |
static boolean |
isMatch(Element element)
Tests if a Element element is valid
for the XspfTrack. |
static boolean |
isMatch(RStack stack)
Tests if elements contained in a Stack stack
is valid for the XspfTrack. |
static boolean |
isMatchHungry(RStack stack)
Tests if elements contained in a Stack stack
is valid for the XspfTrack. |
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 |
removeIdentifier(int index)
Remove the String property identifier by index. |
void |
removeIdentifier(String identifier)
Remove the String property identifier 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 |
removeLocation(int index)
Remove the String property location by index. |
void |
removeLocation(String location)
Remove the String property location 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 |
setAlbum(String album)
Sets the String property album. |
void |
setAlbumByString(String string)
Sets the property value by String. |
void |
setAnnotation(String annotation)
Sets the String property annotation. |
void |
setAnnotationByString(String string)
Sets the property value by String. |
void |
setCreator(String creator)
Sets the String property creator. |
void |
setCreatorByString(String string)
Sets the property value by String. |
void |
setDuration(BigInteger duration)
Sets the java.math.BigInteger property duration. |
void |
setDurationByString(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(int index,
String identifier)
Sets the String property identifier by index. |
void |
setIdentifier(String identifier)
Sets the String property identifier. |
void |
setIdentifier(String[] identifier)
Sets the String property identifier. |
void |
setIdentifierByString(int index,
String value)
Sets the property value by String via index. |
void |
setIdentifierByString(String[] strings)
Sets the property value by String array. |
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 |
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(int index,
String location)
Sets the String property location by index. |
void |
setLocation(String location)
Sets the String property location. |
void |
setLocation(String[] location)
Sets the String property location. |
void |
setLocationByString(int index,
String value)
Sets the property value by String via index. |
void |
setLocationByString(String[] strings)
Sets the property value by String array. |
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 |
setTitle(String title)
Sets the String property title. |
void |
setTitleByString(String string)
Sets the property value by String. |
void |
setTrackNum(BigInteger trackNum)
Sets the java.math.BigInteger property trackNum. |
void |
setTrackNumByString(String string)
Sets the property value by String. |
void |
setup(Document doc)
Initializes the XspfTrack by the Document doc. |
void |
setup(Element element)
Initializes the XspfTrack by the Element element. |
void |
setup(File file)
Initializes the XspfTrack by the File file. |
void |
setup(InputSource is)
Initializes the XspfTrack by the InputSource is. |
void |
setup(InputStream in)
Initializes the XspfTrack by the InputStream in. |
void |
setup(Reader reader)
Initializes the XspfTrack by the Reader reader. |
void |
setup(RStack stack)
Initializes the XspfTrack by the Stack stack
that contains Elements. |
void |
setup(String uri)
Initializes the XspfTrack
by the String representation of URI uri. |
void |
setup(URL url)
Initializes the XspfTrack by the URL url. |
void |
setup(XspfTrack source)
Initializes the XspfTrack by the XspfTrack source. |
int |
sizeExtension()
Gets number of the XspfExtension property extension. |
int |
sizeIdentifier()
Gets number of the String property identifier. |
int |
sizeLink()
Gets number of the XspfLink property link. |
int |
sizeLocation()
Gets number of the String property location. |
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 XspfTrack()
XspfTrack.
public XspfTrack(XspfTrack source)
XspfTrack.
source - public XspfTrack(RStack stack)
XspfTrack by the Stack stack
that contains Elements.
This constructor is supposed to be used internally
by the Relaxer system.
stack - public XspfTrack(Document doc)
XspfTrack by the Document doc.
doc - public XspfTrack(Element element)
XspfTrack by the Element element.
element -
public XspfTrack(File file)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the File file.
file -
IOException
SAXException
ParserConfigurationException
public XspfTrack(String uri)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack
by the String representation of URI uri.
uri -
IOException
SAXException
ParserConfigurationException
public XspfTrack(URL url)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the URL url.
url -
IOException
SAXException
ParserConfigurationException
public XspfTrack(InputStream in)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the InputStream in.
in -
IOException
SAXException
ParserConfigurationException
public XspfTrack(InputSource is)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the InputSource is.
is -
IOException
SAXException
ParserConfigurationException
public XspfTrack(Reader reader)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the Reader reader.
reader -
IOException
SAXException
ParserConfigurationException| Method Detail |
|---|
public static boolean isMatch(Element element)
element is valid
for the XspfTrack.
element -
public static boolean isMatch(RStack stack)
stack
is valid for the XspfTrack.
This mehtod is supposed to be used internally
by the Relaxer system.
stack -
public static boolean isMatchHungry(RStack stack)
stack
is valid for the XspfTrack.
This method consumes the stack contents during matching operation.
This mehtod is supposed to be used internally
by the Relaxer system.
stack -
public String getAlbum()
public String getAlbumAsString()
public String getAnnotation()
public String getAnnotationAsString()
public String getCreator()
public String getCreatorAsString()
public BigInteger getDuration()
public String getDurationAsString()
public XspfExtension[] getExtension()
public XspfExtension getExtension(int index)
index -
public String[] getIdentifier()
public String getIdentifier(int index)
index -
public String[] getIdentifierAsString()
public String getIdentifierAsString(int index)
index -
public String getImage()
public String getImageAsString()
public String getInfo()
public String getInfoAsString()
public XspfLink[] getLink()
public XspfLink getLink(int index)
index -
public String[] getLocation()
public String getLocation(int index)
index -
public String[] getLocationAsString()
public String getLocationAsString(int index)
index -
public XspfMeta[] getMeta()
public XspfMeta getMeta(int index)
index -
public String getTitle()
public String getTitleAsString()
public BigInteger getTrackNum()
public String getTrackNumAsString()
public void setAlbum(String album)
album - public void setAlbumByString(String string)
string - public void setAnnotation(String annotation)
annotation - public void setAnnotationByString(String string)
string - public void setCreator(String creator)
creator - public void setCreatorByString(String string)
string - public void setDuration(BigInteger duration)
duration - public void setDurationByString(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 setIdentifier(String identifier)
identifier -
public void setIdentifier(int index,
String identifier)
index - identifier - public void setIdentifierByString(String[] strings)
strings -
public void setIdentifierByString(int index,
String value)
index - value - 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 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 setLocation(String location)
location -
public void setLocation(int index,
String location)
index - location - public void setLocationByString(String[] strings)
strings -
public void setLocationByString(int index,
String value)
index - value - public void setMeta(XspfMeta[] meta)
meta - public void setMeta(XspfMeta meta)
meta -
public void setMeta(int index,
XspfMeta meta)
index - meta - public void setTitle(String title)
title - public void setTitleByString(String string)
string - public void setTrackNum(BigInteger trackNum)
trackNum - public void setTrackNumByString(String string)
string - public void addExtension(XspfExtension extension)
extension - public void addExtension(XspfExtension[] extension)
extension -
public void addExtension(int index,
XspfExtension extension)
index - extension - public void addIdentifier(String identifier)
identifier - public void addIdentifier(String[] identifier)
identifier -
public void addIdentifier(int index,
String identifier)
index - identifier - public void addIdentifierByString(String string)
string - public void addLink(XspfLink link)
link - public void addLink(XspfLink[] link)
link -
public void addLink(int index,
XspfLink link)
index - link - public void addLocation(String location)
location - public void addLocation(String[] location)
location -
public void addLocation(int index,
String location)
index - location - public void addLocationByString(String string)
string - 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 clearIdentifier()
public void clearLink()
public void clearLocation()
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 removeIdentifier(int index)
index - public void removeIdentifier(String identifier)
identifier - public void removeLink(int index)
index - public void removeLink(XspfLink link)
link - public void removeLocation(int index)
index - public void removeLocation(String location)
location - public void removeMeta(int index)
index - public void removeMeta(XspfMeta meta)
meta - public void setup(XspfTrack source)
XspfTrack by the XspfTrack source.
source - public void setup(Document doc)
XspfTrack by the Document doc.
doc - public void setup(Element element)
XspfTrack by the Element element.
element - public void setup(RStack stack)
XspfTrack 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
XspfTrack by the File file.
file -
IOException
SAXException
ParserConfigurationException
public void setup(String uri)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack
by the String representation of URI uri.
uri -
IOException
SAXException
ParserConfigurationException
public void setup(URL url)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the URL url.
url -
IOException
SAXException
ParserConfigurationException
public void setup(InputStream in)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the InputStream in.
in -
IOException
SAXException
ParserConfigurationException
public void setup(InputSource is)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the InputSource is.
is -
IOException
SAXException
ParserConfigurationException
public void setup(Reader reader)
throws IOException,
SAXException,
ParserConfigurationException
XspfTrack by the Reader reader.
reader -
IOException
SAXException
ParserConfigurationExceptionpublic int sizeExtension()
public int sizeIdentifier()
public int sizeLink()
public int sizeLocation()
public int sizeMeta()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||