org.jscience.linguistics
Class Language

java.lang.Object
  extended by org.jscience.linguistics.Language
All Implemented Interfaces:
Named

public class Language
extends java.lang.Object
implements Named

The Language class provides a placeholder for a language.


Constructor Summary
Language(java.lang.String name)
          Creates a new Language object.
Language(java.lang.String name, java.lang.String graphemes)
          Creates a new Language object.
 
Method Summary
 void addGrapheme(char character)
          DOCUMENT ME!
protected  void addGrapheme(Grapheme grapheme)
          DOCUMENT ME!
 void addGraphemes(java.lang.String characters)
          DOCUMENT ME!
 void addPhoneme(javax.sound.sampled.Clip clip)
          DOCUMENT ME!
protected  void addPhoneme(Phoneme phoneme)
          DOCUMENT ME!
 void addPhonemes(javax.sound.sampled.Clip[] clips)
          DOCUMENT ME!
 java.util.Set getGraphemes()
          DOCUMENT ME!
 java.lang.String getName()
          DOCUMENT ME!
 java.util.Set getPhonemes()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Language

public Language(java.lang.String name)
Creates a new Language object.

Parameters:
name - DOCUMENT ME!

Language

public Language(java.lang.String name,
                java.lang.String graphemes)
Creates a new Language object.

Parameters:
name - DOCUMENT ME!
graphemes - DOCUMENT ME!
Method Detail

getName

public java.lang.String getName()
DOCUMENT ME!

Specified by:
getName in interface Named
Returns:
DOCUMENT ME!

addGrapheme

protected void addGrapheme(Grapheme grapheme)
DOCUMENT ME!

Parameters:
grapheme - DOCUMENT ME!

addGrapheme

public void addGrapheme(char character)
DOCUMENT ME!

Parameters:
character - DOCUMENT ME!

addGraphemes

public void addGraphemes(java.lang.String characters)
DOCUMENT ME!

Parameters:
characters - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getGraphemes

public java.util.Set getGraphemes()
DOCUMENT ME!

Returns:
DOCUMENT ME!

addPhoneme

protected void addPhoneme(Phoneme phoneme)
DOCUMENT ME!

Parameters:
phoneme - DOCUMENT ME!

addPhoneme

public void addPhoneme(javax.sound.sampled.Clip clip)
DOCUMENT ME!

Parameters:
clip - DOCUMENT ME!

addPhonemes

public void addPhonemes(javax.sound.sampled.Clip[] clips)
DOCUMENT ME!

Parameters:
clips - DOCUMENT ME!
Throws:
java.lang.IllegalArgumentException - DOCUMENT ME!

getPhonemes

public java.util.Set getPhonemes()
DOCUMENT ME!

Returns:
DOCUMENT ME!