eu.clarin.weblicht.wlfxb.tc.xb
Class PhoneticsLayerStored

java.lang.Object
  extended by eu.clarin.weblicht.wlfxb.tc.xb.TextCorpusLayerStoredAbstract
      extended by eu.clarin.weblicht.wlfxb.tc.xb.PhoneticsLayerStored
All Implemented Interfaces:
PhoneticsLayer, TextCorpusLayer

public class PhoneticsLayerStored
extends TextCorpusLayerStoredAbstract
implements PhoneticsLayer

Author:
Yana Panchenko

Field Summary
static String XML_NAME
           
 
Constructor Summary
protected PhoneticsLayerStored()
           
protected PhoneticsLayerStored(String alphabet)
           
protected PhoneticsLayerStored(TextCorpusLayersConnector connector)
           
 
Method Summary
 Pronunciation addChild(Pronunciation parent, Pronunciation child)
           
 PhoneticsSegment addSegment(List<Pronunciation> pronunciations, Token token)
           
 PhoneticsSegment addSegment(Pronunciation pronunciation, Token token)
           
 Pronunciation createPronunciation(PronunciationType type, String canonicalPronunciation)
           
 Pronunciation createPronunciation(PronunciationType type, String realizedPronunciation, float onsetInSeconds, float offsetInSeconds)
           
 Pronunciation createPronunciation(PronunciationType type, String realizedPronunciation, float onsetInSeconds, float offsetInSeconds, List<Pronunciation> children)
           
 Pronunciation createPronunciation(PronunciationType type, String canonicalPronunciation, String realizedPronunciation, float onsetInSeconds, float offsetInSeconds, List<Pronunciation> children)
           
 Pronunciation createPronunciation(PronunciationType type, String canonicalPronunciation, String realizedPronunciation, List<Pronunciation> children)
           
 String getAlphabet()
           
 PhoneticsSegment getSegment(int index)
           
 PhoneticsSegment getSegment(Token token)
           
 Token getToken(PhoneticsSegment segment)
           
 boolean isEmpty()
           
protected  void setLayersConnector(TextCorpusLayersConnector connector)
          Should not be used directly by users.
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

XML_NAME

public static final String XML_NAME
See Also:
Constant Field Values
Constructor Detail

PhoneticsLayerStored

protected PhoneticsLayerStored()

PhoneticsLayerStored

protected PhoneticsLayerStored(String alphabet)

PhoneticsLayerStored

protected PhoneticsLayerStored(TextCorpusLayersConnector connector)
Method Detail

setLayersConnector

protected void setLayersConnector(TextCorpusLayersConnector connector)
Description copied from class: TextCorpusLayerStoredAbstract
Should not be used directly by users. Should be extended by all implementations of TextCorpusLayers, as they might depend on other layers and therefore be able to get referenced/referencing information.

Specified by:
setLayersConnector in class TextCorpusLayerStoredAbstract

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface TextCorpusLayer

size

public int size()
Specified by:
size in interface TextCorpusLayer

getAlphabet

public String getAlphabet()
Specified by:
getAlphabet in interface PhoneticsLayer

getSegment

public PhoneticsSegment getSegment(int index)
Specified by:
getSegment in interface PhoneticsLayer

getSegment

public PhoneticsSegment getSegment(Token token)
Specified by:
getSegment in interface PhoneticsLayer

getToken

public Token getToken(PhoneticsSegment segment)
Specified by:
getToken in interface PhoneticsLayer

createPronunciation

public Pronunciation createPronunciation(PronunciationType type,
                                         String canonicalPronunciation,
                                         String realizedPronunciation,
                                         float onsetInSeconds,
                                         float offsetInSeconds,
                                         List<Pronunciation> children)
Specified by:
createPronunciation in interface PhoneticsLayer

createPronunciation

public Pronunciation createPronunciation(PronunciationType type,
                                         String canonicalPronunciation,
                                         String realizedPronunciation,
                                         List<Pronunciation> children)
Specified by:
createPronunciation in interface PhoneticsLayer

createPronunciation

public Pronunciation createPronunciation(PronunciationType type,
                                         String realizedPronunciation,
                                         float onsetInSeconds,
                                         float offsetInSeconds,
                                         List<Pronunciation> children)
Specified by:
createPronunciation in interface PhoneticsLayer

createPronunciation

public Pronunciation createPronunciation(PronunciationType type,
                                         String realizedPronunciation,
                                         float onsetInSeconds,
                                         float offsetInSeconds)
Specified by:
createPronunciation in interface PhoneticsLayer

createPronunciation

public Pronunciation createPronunciation(PronunciationType type,
                                         String canonicalPronunciation)
Specified by:
createPronunciation in interface PhoneticsLayer

addChild

public Pronunciation addChild(Pronunciation parent,
                              Pronunciation child)
Specified by:
addChild in interface PhoneticsLayer

addSegment

public PhoneticsSegment addSegment(Pronunciation pronunciation,
                                   Token token)
Specified by:
addSegment in interface PhoneticsLayer

addSegment

public PhoneticsSegment addSegment(List<Pronunciation> pronunciations,
                                   Token token)
Specified by:
addSegment in interface PhoneticsLayer

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Department of Linguistics, Tübingen University. All Rights Reserved.