ch.claudio.trainer.data
Class Language

java.lang.Object
  extended by ch.claudio.trainer.data.Language
All Implemented Interfaces:
java.lang.Comparable<Language>

public class Language
extends java.lang.Object
implements java.lang.Comparable<Language>

Version:
$Id: Language.java 300 2008-10-02 22:49:54Z 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
Language(java.lang.String codeArg, boolean knownArg)
           
 
Method Summary
static java.lang.String codeToName(java.lang.String code)
          Transform a language code into a human readable name.
 int compareTo(Language other)
           
 java.lang.String getCode()
           
 boolean isKnown()
           
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

Language

public Language(java.lang.String codeArg,
                boolean knownArg)
Parameters:
codeArg -
knownArg -
Method Detail

codeToName

public static java.lang.String codeToName(java.lang.String code)
Transform a language code into a human readable name.

Parameters:
code -
Returns:
human readable name in default locale and language locale

getCode

public java.lang.String getCode()
Returns:
the code

isKnown

public boolean isKnown()
Returns:
the known

compareTo

public int compareTo(Language other)
Specified by:
compareTo in interface java.lang.Comparable<Language>
See Also:
Comparable.compareTo(java.lang.Object)

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