com.melloware.jspiff.jaxp
Class XspfPlaylistTrackList

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

public class XspfPlaylistTrackList
extends Object
implements Serializable, Cloneable

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

 <element name="trackList">
                 <zeroOrMore>
                     <ref name="track"/>
                 </zeroOrMore>
             </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
XspfPlaylistTrackList()
          Creates a XspfPlaylistTrackList.
XspfPlaylistTrackList(Document doc)
          Creates a XspfPlaylistTrackList by the Document doc.
XspfPlaylistTrackList(Element element)
          Creates a XspfPlaylistTrackList by the Element element.
XspfPlaylistTrackList(File file)
          Creates a XspfPlaylistTrackList by the File file.
XspfPlaylistTrackList(InputSource is)
          Creates a XspfPlaylistTrackList by the InputSource is.
XspfPlaylistTrackList(InputStream in)
          Creates a XspfPlaylistTrackList by the InputStream in.
XspfPlaylistTrackList(Reader reader)
          Creates a XspfPlaylistTrackList by the Reader reader.
XspfPlaylistTrackList(RStack stack)
          Creates a XspfPlaylistTrackList by the Stack stack that contains Elements.
XspfPlaylistTrackList(String uri)
          Creates a XspfPlaylistTrackList by the String representation of URI uri.
XspfPlaylistTrackList(URL url)
          Creates a XspfPlaylistTrackList by the URL url.
XspfPlaylistTrackList(XspfPlaylistTrackList source)
          Creates a XspfPlaylistTrackList.
 
Method Summary
 void addTrack(int index, XspfTrack track)
          Adds the XspfTrack property track by index.
 void addTrack(XspfTrack track)
          Adds the XspfTrack property track.
 void addTrack(XspfTrack[] track)
          Adds the XspfTrack property track.
 void clearTrack()
          Clear the XspfTrack property track.
 Object clone()
           
 XspfTrack[] getTrack()
          Gets the XspfTrack property track.
 XspfTrack getTrack(int index)
          Gets the XspfTrack property track by index.
static boolean isMatch(Element element)
          Tests if a Element element is valid for the XspfPlaylistTrackList.
static boolean isMatch(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfPlaylistTrackList.
static boolean isMatchHungry(RStack stack)
          Tests if elements contained in a Stack stack is valid for the XspfPlaylistTrackList.
 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 removeTrack(int index)
          Remove the XspfTrack property track by index.
 void removeTrack(XspfTrack track)
          Remove the XspfTrack property track by object.
 void setTrack(int index, XspfTrack track)
          Sets the XspfTrack property track by index.
 void setTrack(XspfTrack track)
          Sets the XspfTrack property track.
 void setTrack(XspfTrack[] track)
          Sets the XspfTrack property track.
 void setup(Document doc)
          Initializes the XspfPlaylistTrackList by the Document doc.
 void setup(Element element)
          Initializes the XspfPlaylistTrackList by the Element element.
 void setup(File file)
          Initializes the XspfPlaylistTrackList by the File file.
 void setup(InputSource is)
          Initializes the XspfPlaylistTrackList by the InputSource is.
 void setup(InputStream in)
          Initializes the XspfPlaylistTrackList by the InputStream in.
 void setup(Reader reader)
          Initializes the XspfPlaylistTrackList by the Reader reader.
 void setup(RStack stack)
          Initializes the XspfPlaylistTrackList by the Stack stack that contains Elements.
 void setup(String uri)
          Initializes the XspfPlaylistTrackList by the String representation of URI uri.
 void setup(URL url)
          Initializes the XspfPlaylistTrackList by the URL url.
 void setup(XspfPlaylistTrackList source)
          Initializes the XspfPlaylistTrackList by the XspfPlaylistTrackList source.
 int sizeTrack()
          Gets number of the XspfTrack property track.
 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

XspfPlaylistTrackList

public XspfPlaylistTrackList()
Creates a XspfPlaylistTrackList.


XspfPlaylistTrackList

public XspfPlaylistTrackList(XspfPlaylistTrackList source)
Creates a XspfPlaylistTrackList.

Parameters:
source -

XspfPlaylistTrackList

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

Parameters:
stack -

XspfPlaylistTrackList

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

Parameters:
doc -

XspfPlaylistTrackList

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

Parameters:
element -

XspfPlaylistTrackList

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

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylistTrackList

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

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylistTrackList

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

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylistTrackList

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

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylistTrackList

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

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

XspfPlaylistTrackList

public XspfPlaylistTrackList(Reader reader)
                      throws IOException,
                             SAXException,
                             ParserConfigurationException
Creates a XspfPlaylistTrackList 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 XspfPlaylistTrackList.

Parameters:
element -
Returns:
boolean

isMatch

public static boolean isMatch(RStack stack)
Tests if elements contained in a Stack stack is valid for the XspfPlaylistTrackList. 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 XspfPlaylistTrackList. 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

getTrack

public XspfTrack[] getTrack()
Gets the XspfTrack property track.

Returns:
XspfTrack[]

getTrack

public XspfTrack getTrack(int index)
Gets the XspfTrack property track by index.

Parameters:
index -
Returns:
XspfTrack

setTrack

public void setTrack(XspfTrack[] track)
Sets the XspfTrack property track.

Parameters:
track -

setTrack

public void setTrack(XspfTrack track)
Sets the XspfTrack property track.

Parameters:
track -

setTrack

public void setTrack(int index,
                     XspfTrack track)
Sets the XspfTrack property track by index.

Parameters:
index -
track -

addTrack

public void addTrack(XspfTrack track)
Adds the XspfTrack property track.

Parameters:
track -

addTrack

public void addTrack(XspfTrack[] track)
Adds the XspfTrack property track.

Parameters:
track -

addTrack

public void addTrack(int index,
                     XspfTrack track)
Adds the XspfTrack property track by index.

Parameters:
index -
track -

clearTrack

public void clearTrack()
Clear the XspfTrack property track.


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 -

removeTrack

public void removeTrack(int index)
Remove the XspfTrack property track by index.

Parameters:
index -

removeTrack

public void removeTrack(XspfTrack track)
Remove the XspfTrack property track by object.

Parameters:
track -

setup

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

Parameters:
source -

setup

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

Parameters:
doc -

setup

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

Parameters:
element -

setup

public void setup(RStack stack)
Initializes the XspfPlaylistTrackList 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 XspfPlaylistTrackList by the File file.

Parameters:
file -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(String uri)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfPlaylistTrackList by the String representation of URI uri.

Parameters:
uri -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(URL url)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfPlaylistTrackList by the URL url.

Parameters:
url -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(InputStream in)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfPlaylistTrackList by the InputStream in.

Parameters:
in -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(InputSource is)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfPlaylistTrackList by the InputSource is.

Parameters:
is -
Throws:
IOException
SAXException
ParserConfigurationException

setup

public void setup(Reader reader)
           throws IOException,
                  SAXException,
                  ParserConfigurationException
Initializes the XspfPlaylistTrackList by the Reader reader.

Parameters:
reader -
Throws:
IOException
SAXException
ParserConfigurationException

sizeTrack

public int sizeTrack()
Gets number of the XspfTrack property track.

Returns:
int

toString

public String toString()
Returns a String representation of this object. While this method informs as XML format representaion, it's purpose is just information, not making a rigid XML documentation.

Overrides:
toString in class Object
Returns:
String


Copyright © 1999-2006 Melloware Inc. All Rights Reserved.