org.mmbase.util.media.audio.audioparts
Class AudioPartDef

java.lang.Object
  |
  +--org.mmbase.util.media.audio.audioparts.AudioPartDef

Deprecated. Most of the actual functionality for these functions resides in AudioUtils, which is alo the place where these (temporary) objects are created. Presumably, the function of this wrapper is to enhance or speed up the selection of a url (or to cache it), but in reality these wrapper functions only copy data, and do not add functionality that could not be performed on it's own by AudioUtils.

public class AudioPartDef
extends java.lang.Object

This is a wrapper class for the AudioPart object. It is used to provide member functions for selecting, for a wrapped audiopart, the best available rawaudio (or rather, rawaudio wrapper), and then requesting the best url for that rawaudio (using the best mirror site available).

Version:
$Id: AudioPartDef.java,v 1.9 2002/11/12 16:57:57 pierre Exp $
Author:
vpro

Field Summary
 java.lang.String body
          Deprecated. should be retrieved from node reference
 java.lang.String intro
          Deprecated. should be retrieved from node reference
 int number
          Deprecated. should be retrieved from node reference
 int otype
          Deprecated. should be retrieved from node reference
 java.lang.String owner
          Deprecated. should be retrieved from node reference
 int playtime
          Deprecated. should be retrieved from node reference
 RawAudioDef rawaudio
          Deprecated. the best for the user in speed/channels.
 java.util.Vector rawaudios
          Deprecated. all the rawaudios connected to this node
 int source
          Deprecated. should be retrieved from node reference
 java.lang.String starttime
          Deprecated. Audiopart start tijd
 java.lang.String stoptime
          Deprecated. Audiopart eind tijd
 int storage
          Deprecated. should be retrieved from node reference
 java.lang.String subtitle
          Deprecated. should be retrieved from node reference
 java.lang.String title
          Deprecated. should be retrieved from node reference
 
Constructor Summary
AudioPartDef()
          Deprecated.  
AudioPartDef(MMBase mmbase, int number)
          Deprecated. Creates the wrapper and initializes it by copying the node's fields and values.
AudioPartDef(MMBase mmbase, MMObjectNode node)
          Deprecated. Creates the wrapper and initializes it by copying the node's fields and values.
 
Method Summary
 boolean getRawAudios(MMBase mmbase, int wantedspeed, int wantedchannels, boolean sorted)
          Deprecated. Attempts to selects the best available rawaudio object for the given speed and channels The result of this method is deciding for the outcome of the getRealAudioUrl(org.mmbase.util.scanpage) call.
 java.lang.String getRealAudioUrl(scanpage sp)
          Deprecated. Gets the Realaudio url and ads the 'title','start' and 'end' name and values parameters.
 void getStartStop(MMBase mmbase)
          Deprecated. Determine start and stop time values of the given object.
 boolean setparameters(MMBase mmbase, int number)
          Deprecated. Initializes the wrapper by copying the node's fields and values.
 boolean setparameters(MMBase mmbase, MMObjectNode node)
          Deprecated. Initializes the wrapper by copying the node's fields and values.
 java.lang.String toString()
          Deprecated. Returns a string representation of this object, for debugging purposes.
 java.lang.String toText()
          Deprecated. Returns a string representation of this object, for debugging purposes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

number

public int number
Deprecated. should be retrieved from node reference

Audiopart object number

otype

public int otype
Deprecated. should be retrieved from node reference

Audiopart object type

owner

public java.lang.String owner
Deprecated. should be retrieved from node reference

Audiopart object owner

title

public java.lang.String title
Deprecated. should be retrieved from node reference

Audiopart title

subtitle

public java.lang.String subtitle
Deprecated. should be retrieved from node reference

Audiopart subtitle

source

public int source
Deprecated. should be retrieved from node reference

Audiopart title

playtime

public int playtime
Deprecated. should be retrieved from node reference

Audiopart speel duur

intro

public java.lang.String intro
Deprecated. should be retrieved from node reference

Audiopart intro tekst

body

public java.lang.String body
Deprecated. should be retrieved from node reference

Audiopart body tekst

storage

public int storage
Deprecated. should be retrieved from node reference

Audiopart mono of stereo

starttime

public java.lang.String starttime
Deprecated. 
Audiopart start tijd

stoptime

public java.lang.String stoptime
Deprecated. 
Audiopart eind tijd

rawaudios

public java.util.Vector rawaudios
Deprecated. 
all the rawaudios connected to this node

rawaudio

public RawAudioDef rawaudio
Deprecated. 
the best for the user in speed/channels.
Constructor Detail

AudioPartDef

public AudioPartDef()
Deprecated. 

AudioPartDef

public AudioPartDef(MMBase mmbase,
                    int number)
Deprecated. 
Creates the wrapper and initializes it by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
number - The number of the node to wrap

AudioPartDef

public AudioPartDef(MMBase mmbase,
                    MMObjectNode node)
Deprecated. 
Creates the wrapper and initializes it by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
node - The node to wrap
Method Detail

setparameters

public boolean setparameters(MMBase mmbase,
                             int number)
Deprecated. 
Initializes the wrapper by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
number - The number of the node to wrap

setparameters

public boolean setparameters(MMBase mmbase,
                             MMObjectNode node)
Deprecated. 
Initializes the wrapper by copying the node's fields and values.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already passing a node)
node - The node to wrap

getRawAudios

public boolean getRawAudios(MMBase mmbase,
                            int wantedspeed,
                            int wantedchannels,
                            boolean sorted)
Deprecated. 
Attempts to selects the best available rawaudio object for the given speed and channels The result of this method is deciding for the outcome of the getRealAudioUrl(org.mmbase.util.scanpage) call.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already wrapping a node)
wantedspeed - the desired speed of the audio
wantedchannels - the desired nr of channels for the audio
sorted - whether to sort the available audios first (?)
Returns:
true if a raw audio could be found. If true, the rawaudio is remembered by the object, for use by a subsequent call to getRealAudioUrl(org.mmbase.util.scanpage)

getStartStop

public void getStartStop(MMBase mmbase)
Deprecated. 
Determine start and stop time values of the given object. The values are retrieved from the properties builder (?) and stored in the wrapper object.
Parameters:
mmbase - The mmbase to use (a bit strange as a parameter, as you are already wrapping a node)

getRealAudioUrl

public java.lang.String getRealAudioUrl(scanpage sp)
Deprecated. 
Gets the Realaudio url and ads the 'title','start' and 'end' name and values parameters. The result of this method is dependent on the outcome of the previous getRawAudios(org.mmbase.module.core.MMBase, int, int, boolean) call, which makes it unsafe for use in a multithreaded environment.
Parameters:
sp - the scanpage
Returns:
a String with the url.

toText

public java.lang.String toText()
Deprecated. 
Returns a string representation of this object, for debugging purposes.

toString

public java.lang.String toString()
Deprecated. 
Returns a string representation of this object, for debugging purposes.
Overrides:
toString in class java.lang.Object


MMBase build 1.6.5.20030923