ch.claudio.trainer.data
Class Media

java.lang.Object
  extended by ch.claudio.trainer.data.Media

public class Media
extends java.lang.Object

Store a non-textual media, e.g. an audio clip with the pronunciation of a sentence. Records also who has supplied this media.

Version:
$Id: Media.java 148 2006-09-14 20:52:32Z claudio $
Author:
Claudio Nieder

Copyright (C) 2006 Claudio Nieder <private@claudio.ch>, CH-8610 Uster

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA


Constructor Summary
Media(MediaType typeArg, byte[] dataArg, Sentence sentenceArg, User originatorArg)
           
 
Method Summary
 byte[] getData()
           
 User getOriginator()
           
 Sentence getSentence()
           
 MediaType getType()
           
static void main(java.lang.String[] args)
          Print license.
 void setSentence(Sentence sentence)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Media

public Media(MediaType typeArg,
             byte[] dataArg,
             Sentence sentenceArg,
             User originatorArg)
Parameters:
typeArg -
dataArg -
sentenceArg -
originatorArg -
Method Detail

getData

public byte[] getData()
Returns:
the data

getOriginator

public User getOriginator()
Returns:
the originator

getSentence

public Sentence getSentence()
Returns:
the sentence

setSentence

public void setSentence(Sentence sentence)

getType

public MediaType getType()
Returns:
the type

main

public static void main(java.lang.String[] args)
Print license.

Parameters:
args - ignored