|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kemet.impl.grammar.GrammarManager
public class GrammarManager
Grammar Manager : manage the business layer (all implemented "hieroglyphic" features).
| Field Summary |
|---|
| Fields inherited from interface org.kemet.impl.grammar.model.ISequence |
|---|
primarySequence |
| Constructor Summary | |
|---|---|
GrammarManager(java.lang.String className,
java.util.HashMap args)
Initialize the grammar manager and their business objets + connect to hiero.xml et phonogram.xml files. |
|
| Method Summary | |
|---|---|
java.util.HashMap |
getArgs()
return the parameters of the grammar manager |
java.lang.String |
getCompleteTransliteredWord(java.lang.String word)
return the word completed with vowels. |
java.util.Vector |
getEachTransliterationValue(java.lang.String transliteration)
get the differents values of a transliteration. |
int |
getNumberOfConsomns()
return the number of consomns. |
java.util.HashMap |
getNumberOfPartsForEntities()
return the number of parts for entities. |
java.util.Hashtable<java.lang.String,java.lang.String> |
getSignInfo()
return informations about sign. |
java.lang.String |
getSignInfo(java.lang.String value)
return id of sign from value |
boolean |
isTCorrectFormat(java.lang.String transliteration,
boolean exclude)
verify if the format of transliteration string is correct. |
void |
setNumberOfConsomns(int numberOfConsomns)
fix the number of consomns |
java.lang.String[] |
toEpuratePhoneticComplementFromSequence(java.lang.String[] transliteration,
int number,
java.util.HashMap ht,
java.util.HashMap args)
return a transliterated sequence without phonetic complements. |
java.lang.String |
toGrammaticalSequence(java.lang.String[] sequence)
get hieroglyphic features which are described in the sequence. |
java.lang.String |
toHieroglyphs(java.lang.String[] transliterationList)
feature : get hieroglyphs from transliteration. |
java.lang.String |
toPhoneticRead(java.lang.String[] transliterationList,
java.lang.Boolean complete)
feature : get the phonetic read from a transliteration list. |
java.lang.String |
toPhoneticReadWithGlobalApproach(java.lang.String[] transliterationList,
java.lang.Boolean complete)
feature : get the phonetic read from a transliteration list. |
java.lang.String |
toTransliteration(java.lang.String[] signList,
java.lang.Integer indexValueOfTransliteration)
feature : transliterate hieroglyphs. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GrammarManager(java.lang.String className,
java.util.HashMap args)
throws KemetAPIException
Initialize the grammar manager and their business objets + connect to hiero.xml et phonogram.xml files.
className - name of grammar classargs - list of system informations
see DeveloperGuide : "first step : How to configure KEMET Library ?" see
KEMET_DATA : hiero.xml see KEMET_DATA : phonogram.xml
KemetAPIException| Method Detail |
|---|
public java.lang.String toTransliteration(java.lang.String[] signList,
java.lang.Integer indexValueOfTransliteration)
throws KemetAPIException
feature : transliterate hieroglyphs. call the "grammar business" (implemented grammar) and execute the associated method.
signList - list of hieroglyphs to transliterateindexValueOfTransliteration - specify which index of transliteration value (in hiero.xml
file we can have several values) we have to take (index is
often = 0 )
KemetAPIException
public java.lang.String[] toEpuratePhoneticComplementFromSequence(java.lang.String[] transliteration,
int number,
java.util.HashMap ht,
java.util.HashMap args)
throws KemetAPIException
return a transliterated sequence without phonetic complements.
transliteration - list to epuratenumber - number of caracters to concatenate (ex : 2 for biliteres)ht - list of phonogramsargs - list of arguments
KemetAPIExceptionpublic java.lang.String toGrammaticalSequence(java.lang.String[] sequence)
get hieroglyphic features which are described in the sequence.
sequence - of sign to analyse
public boolean isTCorrectFormat(java.lang.String transliteration,
boolean exclude)
verify if the format of transliteration string is correct.
transliteration - to analyseexclude - exclude caracter "?" ?
public java.util.Vector getEachTransliterationValue(java.lang.String transliteration)
get the differents values of a transliteration.
transliteration - transliteration to split
public java.lang.String getCompleteTransliteredWord(java.lang.String word)
return the word completed with vowels.
word - to complete
public java.lang.String toHieroglyphs(java.lang.String[] transliterationList)
throws KemetAPIException
feature : get hieroglyphs from transliteration. call the "grammar business" (implemented grammar) and execute the associated method.
transliterationList - list of transliteration
KemetAPIException
public java.lang.String toPhoneticRead(java.lang.String[] transliterationList,
java.lang.Boolean complete)
throws KemetAPIException
feature : get the phonetic read from a transliteration list. call the "grammar business" (implemented grammar) and execute the associated method.
evaluate the phonetic value for each part of each transliteration of the list.
transliterationList - the transliterationcomplete - transliteration + vowel
KemetAPIException
public java.lang.String toPhoneticReadWithGlobalApproach(java.lang.String[] transliterationList,
java.lang.Boolean complete)
throws KemetAPIException
feature : get the phonetic read from a transliteration list. call the "grammar business" (implemented grammar) and execute the associated method.
evaluate the phonetic value for each transliteration of the list.
transliterationList - the transliterationcomplete - transliteration + vowel
KemetAPIExceptionpublic java.lang.String getSignInfo(java.lang.String value)
return id of sign from value
value -
public java.util.Hashtable<java.lang.String,java.lang.String> getSignInfo()
return informations about sign.
public int getNumberOfConsomns()
return the number of consomns.
public void setNumberOfConsomns(int numberOfConsomns)
fix the number of consomns
numberOfConsomns - number of consomnspublic java.util.HashMap getArgs()
return the parameters of the grammar manager
public java.util.HashMap getNumberOfPartsForEntities()
return the number of parts for entities.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||