@Test public void shouldCreateInsertVowelWithHarmonyRules() { { final SuffixFormSequence sequence = new SuffixFormSequence("A"); assertThat(sequence.getRules(), hasSize(1)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_A_WITH_HARMONY)); assertThat(sequence.getRules().get(0).getCharToAdd(), nullValue()); } { final SuffixFormSequence sequence = new SuffixFormSequence("aI"); assertThat(sequence.getRules(), hasSize(2)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_WITHOUT_HARMONY)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('a')); assertThat(sequence.getRules().get(1).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_I_WITH_HARMONY)); assertThat(sequence.getRules().get(1).getCharToAdd(), nullValue()); } { final SuffixFormSequence sequence = new SuffixFormSequence("abA"); assertThat(sequence.getRules(), hasSize(3)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_WITHOUT_HARMONY)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('a')); assertThat(sequence.getRules().get(1).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_NONVOWEL_LETTER)); assertThat(sequence.getRules().get(1).getCharToAdd().getCharValue(), equalTo('b')); assertThat(sequence.getRules().get(2).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_A_WITH_HARMONY)); assertThat(sequence.getRules().get(2).getCharToAdd(), nullValue()); } { final SuffixFormSequence sequence = new SuffixFormSequence("l!I"); assertThat(sequence.getRules(), hasSize(2)); assertThat(sequence.getRules().get(0).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_NONVOWEL_LETTER)); assertThat(sequence.getRules().get(0).getCharToAdd().getCharValue(), equalTo('l')); assertThat(sequence.getRules().get(1).getRuleType(), equalTo(SuffixFormSequence.SuffixFormSequenceRuleType.INSERT_VOWEL_I_WITH_HARMONY_AND_NO_ROUNDING)); assertThat(sequence.getRules().get(1).getCharToAdd(), nullValue()); } }
public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } SuffixFormSequence(String suffixFormStr); }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } SuffixFormSequence(String suffixFormStr); ImmutableList<SuffixFormSequenceRule> getRules(); String getSuffixFormStr(); @SuppressWarnings("UnusedDeclaration") boolean isBlank(); boolean isNotBlank(); boolean isFirstLetterVowel(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); boolean lastLetterCanBeVoiced(); }
SuffixFormSequence { public ImmutableList<SuffixFormSequenceRule> getRules() { return rules; } SuffixFormSequence(String suffixFormStr); ImmutableList<SuffixFormSequenceRule> getRules(); String getSuffixFormStr(); @SuppressWarnings("UnusedDeclaration") boolean isBlank(); boolean isNotBlank(); boolean isFirstLetterVowel(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); boolean lastLetterCanBeVoiced();  }