ch.claudio.trainer.data
Class Sentence

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

public class Sentence
extends java.lang.Object

Contains a single sentence. It records to which language the sentence belongs and who has supplied it.

Version:
$Id: Sentence.java 298 2008-10-02 22:18:56Z claudio $
Author:
Claudio Nieder

Copyright (C) 2006-2008 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
Sentence(int idArg, java.lang.String languageArg, java.lang.String sentenceArg, User originatorArg)
           
 
Method Summary
 int getId()
           
 java.lang.String getLanguage()
           
 User getOriginator()
           
 java.lang.String getSentence()
           
static void main(java.lang.String[] args)
          Print license.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Sentence

public Sentence(int idArg,
                java.lang.String languageArg,
                java.lang.String sentenceArg,
                User originatorArg)
Parameters:
idArg -
languageArg -
sentenceArg -
originatorArg -
Method Detail

getId

public int getId()
Returns:
the id

getLanguage

public java.lang.String getLanguage()
Returns:
the language

getOriginator

public User getOriginator()
Returns:
the originator

getSentence

public java.lang.String getSentence()
Returns:
the sentence

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

main

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

Parameters:
args - ignored