org.kemet.impl.grammar.integration
Class TransliterationManager

java.lang.Object
  extended by org.kemet.impl.grammar.integration.TransliterationManager
All Implemented Interfaces:
IGlobals

public class TransliterationManager
extends java.lang.Object
implements IGlobals

Since:
0.5
Author:
fabricemaupin

management for translitered sequences.


Field Summary
 
Fields inherited from interface org.kemet.impl.grammar.IGlobals
ALL, ANALYSE_FROM_SIGNS, BILITERAL, CONSONAT, exceptionnalVo, grammarMainClassName, MAX_PART_OF_NOUN, MAX_PART_OF_PREPOSITION, MAX_PART_OF_PRONOUNS, methodNameToManageHieroglyphs, methodNameToManageTransliteration, methodNameToPhoneticRead, methodNameToPhoneticReadWithGlobalApproach, minVersionJRE, NUMBER_OF_TYPE_OF_PHONOGRAMS, patternForHieroglyph, patternForTransliteration, PROPOSITION_TYPE_PPA, selectedGrammar, SEMI_CONSONAT, TO_FORMAT, TO_HIEROGLYPHS, TO_READ, TO_READ_COMPLETE, TO_TRANSLITERATION, TO_TYPE, TRILITERAL, UNILITERAL, vo
 
Constructor Summary
TransliterationManager(java.lang.String transliteration, GrammarManager gm, java.util.HashMap<java.lang.String,java.lang.String> phInfo, java.util.TreeMap<java.lang.String,java.lang.String[]> sortedPhInfo, int typeOutput)
           initialize the analyze of the transliteration.
 
Method Summary
 java.lang.String[] analyze()
           analyze of the transliteration.
 java.util.ArrayList<java.lang.String> getValue()
           return the list of values after analyze.
static boolean isOtherCaracter(java.lang.String tr)
           verify if the sequence contains a other caracter different than special caracter.
static boolean isSpecialCaracter(java.lang.String tr)
           verify if the sequence contains a special caracter (., ), _, ^).
static boolean isSpecialCaracterAtEnd(java.lang.String tr)
           verify if the sequence contains at the end of substring a special caracter (., ), _, ^).
 void setSourceToCompare(java.lang.String sourceToCompare)
           fix the source to compare.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransliterationManager

public TransliterationManager(java.lang.String transliteration,
                              GrammarManager gm,
                              java.util.HashMap<java.lang.String,java.lang.String> phInfo,
                              java.util.TreeMap<java.lang.String,java.lang.String[]> sortedPhInfo,
                              int typeOutput)

initialize the analyze of the transliteration.

Parameters:
transliteration - transliteration to analyze
gm - the grammar manager
phInfo - list of phonograms not sorted
sortedPhInfo - list of sorted phonograms
typeOutput - type of output
Since:
0.5
Method Detail

analyze

public java.lang.String[] analyze()
                           throws KemetAPIException

analyze of the transliteration.

Returns:
list of objects
Throws:
KemetAPIException
Since:
0.6

isSpecialCaracterAtEnd

public static boolean isSpecialCaracterAtEnd(java.lang.String tr)

verify if the sequence contains at the end of substring a special caracter (., ), _, ^).

Parameters:
tr - string to analyse
Returns:
true / false
Since:
0.5

isSpecialCaracter

public static boolean isSpecialCaracter(java.lang.String tr)

verify if the sequence contains a special caracter (., ), _, ^).

Parameters:
tr - string to analyse
Returns:
true / false
Since:
0.5

isOtherCaracter

public static boolean isOtherCaracter(java.lang.String tr)

verify if the sequence contains a other caracter different than special caracter.

Parameters:
tr - string to analyse
Returns:
true / false
Since:
0.5

getValue

public java.util.ArrayList<java.lang.String> getValue()

return the list of values after analyze.

Returns:
list of values
Since:
0.5

setSourceToCompare

public void setSourceToCompare(java.lang.String sourceToCompare)

fix the source to compare.

Parameters:
sourceToCompare - source to fix
Since:
0.5


Copyright © 2008 F. MAUPIN. All Rights Reserved.