jvntextpro.util
Class VnSyllParser

java.lang.Object
  extended by jvntextpro.util.VnSyllParser

public class VnSyllParser
extends java.lang.Object

The Class VnSyllParser.


Field Summary
static java.lang.String ZERO
          The Constant ZERO.
 
Constructor Summary
VnSyllParser()
          Instantiates a new vn syll parser.
VnSyllParser(java.lang.String syll)
          Instantiates a new vn syll parser.
 
Method Summary
 java.lang.String getFirstConsonant()
          Gets the first consonant.
 java.lang.String getLastConsonant()
          Gets the last consonant.
 java.lang.String getMainVowel()
          Gets the main vowel.
 java.lang.String getNonToneSyll()
          Gets the non tone syll.
 java.lang.String getRhyme()
          Gets the rhyme.
 java.lang.String getSecondVowel()
          Gets the second vowel.
 jvntextpro.util.TONE getTone()
          Gets the tone.
 boolean isValidVnSyllable()
          Checks if is valid vn syllable.
 void parseVnSyllable(java.lang.String syll)
          Parses the vn syllable.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final java.lang.String ZERO
The Constant ZERO.

See Also:
Constant Field Values
Constructor Detail

VnSyllParser

public VnSyllParser(java.lang.String syll)
Instantiates a new vn syll parser.

Parameters:
syll - the syll

VnSyllParser

public VnSyllParser()
Instantiates a new vn syll parser.

Method Detail

parseVnSyllable

public void parseVnSyllable(java.lang.String syll)
Parses the vn syllable.

Parameters:
syll - the syll

getFirstConsonant

public java.lang.String getFirstConsonant()
Gets the first consonant.

Returns:
the first consonant

getSecondVowel

public java.lang.String getSecondVowel()
Gets the second vowel.

Returns:
the second vowel

getMainVowel

public java.lang.String getMainVowel()
Gets the main vowel.

Returns:
the main vowel

getLastConsonant

public java.lang.String getLastConsonant()
Gets the last consonant.

Returns:
the last consonant

getTone

public jvntextpro.util.TONE getTone()
Gets the tone.

Returns:
the tone

getRhyme

public java.lang.String getRhyme()
Gets the rhyme.

Returns:
the rhyme

getNonToneSyll

public java.lang.String getNonToneSyll()
Gets the non tone syll.

Returns:
the non tone syll

isValidVnSyllable

public boolean isValidVnSyllable()
Checks if is valid vn syllable.

Returns:
true, if is valid vn syllable