|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.codec.language.bm.PhoneticEngine.PhonemeBuilder
static final class PhoneticEngine.PhonemeBuilder
Utility for manipulating a set of phonemes as they are being built up. Not intended for use outside this package,
and probably not outside the PhoneticEngine
class.
Field Summary | |
---|---|
private Set<Rule.Phoneme> |
phonemes
|
Constructor Summary | |
---|---|
private |
PhoneticEngine.PhonemeBuilder(Set<Rule.Phoneme> phonemes)
|
Method Summary | |
---|---|
PhoneticEngine.PhonemeBuilder |
append(CharSequence str)
Creates a new phoneme builder containing all phonemes in this one extended by str . |
PhoneticEngine.PhonemeBuilder |
apply(Rule.PhonemeExpr phonemeExpr)
Creates a new phoneme builder containing the application of the expression to all phonemes in this builder. |
static PhoneticEngine.PhonemeBuilder |
empty(Languages.LanguageSet languages)
An empty builder where all phonemes must come from some set of languages. |
Set<Rule.Phoneme> |
getPhonemes()
Gets underlying phoneme set. |
String |
makeString()
Stringifies the phoneme set. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final Set<Rule.Phoneme> phonemes
Constructor Detail |
---|
private PhoneticEngine.PhonemeBuilder(Set<Rule.Phoneme> phonemes)
Method Detail |
---|
public static PhoneticEngine.PhonemeBuilder empty(Languages.LanguageSet languages)
languages
- the set of languages
public PhoneticEngine.PhonemeBuilder append(CharSequence str)
str
.
str
- the characters to append to the phonemes
str
public PhoneticEngine.PhonemeBuilder apply(Rule.PhonemeExpr phonemeExpr)
phonemeExpr
- the expression to apply
phonemeExpr
applied to each phoneme
in turnpublic Set<Rule.Phoneme> getPhonemes()
public String makeString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |