lv.gotika.engine.util
Class RuleSet

java.lang.Object
  extended by lv.gotika.engine.util.RuleSet

public final class RuleSet
extends Object

A helper class for loading rules for transliteration and grouping of letters.


Nested Class Summary
static class RuleSet.RuleType
          A set of flags that indicate different types of rules.
 
Constructor Summary
RuleSet()
           
 
Method Summary
static ArrayList<Quadruple<String,String,String,Integer>> load(String file)
          Loads a set of rules from the specified file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSet

public RuleSet()
Method Detail

load

public static ArrayList<Quadruple<String,String,String,Integer>> load(String file)
                                                               throws IOException
Loads a set of rules from the specified file.

Parameters:
file - full name of a file that contains the rules.
Returns:
a list of rules (the original sequence is preserved).
Throws:
IOException