de.tudarmstadt.ukp.jwktl.api.entry
Class Pronunciation

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.api.entry.Pronunciation
All Implemented Interfaces:
IPronunciation

@Persistent
public class Pronunciation
extends Object
implements IPronunciation

Default implementation of the IPronunciation interface. See there for details.

Author:
Christian M. Meyer

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.tudarmstadt.ukp.jwktl.api.IPronunciation
IPronunciation.PronunciationType
 
Field Summary
protected  String note
           
protected  String text
           
protected  IPronunciation.PronunciationType type
           
 
Constructor Summary
Pronunciation()
          Creates a new, empty pronunciation.
Pronunciation(IPronunciation.PronunciationType type, String text, String note)
          Creates a new pronunciation for the given representation text, notation type and addition information.
 
Method Summary
 String getNote()
          Returns additional information for this pronunciation, such as a geographical reference.
 String getText()
          The representation of the pronunciation using a standardized notation such as IPA.
 IPronunciation.PronunciationType getType()
          Returns the type of this pronunciation, which can be audio files or a specific notation schema used to represent pronunciation information.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

type

protected IPronunciation.PronunciationType type

text

protected String text

note

protected String note
Constructor Detail

Pronunciation

public Pronunciation()
Creates a new, empty pronunciation.


Pronunciation

public Pronunciation(IPronunciation.PronunciationType type,
                     String text,
                     String note)
Creates a new pronunciation for the given representation text, notation type and addition information. For audio files, the representation text refers to an audio file name.

Method Detail

getType

public IPronunciation.PronunciationType getType()
Description copied from interface: IPronunciation
Returns the type of this pronunciation, which can be audio files or a specific notation schema used to represent pronunciation information.

Specified by:
getType in interface IPronunciation

getText

public String getText()
Description copied from interface: IPronunciation
The representation of the pronunciation using a standardized notation such as IPA. In case of audio files, the file name of the sound file is returned. The corresponding URL of this sound file needs to be obtained by querying http://[LANGUAGE].wiktionary.org/wiki/File:[FILENAME].

Specified by:
getText in interface IPronunciation

getNote

public String getNote()
Description copied from interface: IPronunciation
Returns additional information for this pronunciation, such as a geographical reference.

Specified by:
getNote in interface IPronunciation


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.