com.sun.labs.minion.lexmorph
Class LiteMorph_es

java.lang.Object
  extended by com.sun.labs.minion.lexmorph.LiteMorph
      extended by com.sun.labs.minion.lexmorph.LiteMorph_es
All Implemented Interfaces:
KnowledgeSource, com.sun.labs.util.props.Component, com.sun.labs.util.props.Configurable

public class LiteMorph_es
extends LiteMorph

This is a Spanish version of LiteMorph

See Also:
LiteMorph

Field Summary
static boolean authorFlag
          The following static final boolean variable authorFlag is a flag for use by localization authors when developing morphological rules.
static boolean traceFlag
          For tracing the testing of LiteMorph rules.
 
Fields inherited from class com.sun.labs.minion.lexmorph.LiteMorph
debugFlag, exceptions, localizedMorph, logfile, logTag, maxDepth, rulesTable
 
Method Summary
protected  java.lang.String[] computeMorph(java.lang.String input, java.lang.String arg, int depth, java.lang.String prefix, java.lang.String suffix)
          Dummy function for computing morphological variants -- can be redefined in subclasses of LiteMorph for locales that need to compute something that cannot be done easily in the rule format.
protected  java.lang.String[] computeMorphArgs()
          Dummy function for specifying legal arguments to computeMorph -- can be redefined in subclasses of LiteMorph for locales that need to compute something that cannot be done easily in the rule format.
static LiteMorph getMorph()
          Return the LiteMorph for this class
protected  void intialize()
          Subclasses of this class (generally locale-specific) need to set up exceptions and rules.
 void newProperties(com.sun.labs.util.props.PropertySheet ps)
           
 
Methods inherited from class com.sun.labs.minion.lexmorph.LiteMorph
charIsOneOf, checkDefinitions, defRules, defVar, getLocalizedMorph, initialize, morphWord, search, setLocalizedMorph, uncompress, variantsOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authorFlag

public static final boolean authorFlag
The following static final boolean variable authorFlag is a flag for use by localization authors when developing morphological rules. This flag will be set to false for a delivered run-time version, but can be set true when a morphological rule set is being developed. This flag is used to enable format checking and tracing that is important during rule development, but which is unnecessary in the run-time rule system, after the rule developer has used this facility to insure that the rules are well-formed. It is a static final variable so that the compiler will optimize the extra code away when the variable is false so that the run-time class files will be smaller. When authorFlag is false, all of the code associated with the tracing mechanism will automatically be eliminated by the compiler. See the LiteMorphRule.java file for more information.

See Also:
Constant Field Values

traceFlag

public static boolean traceFlag
For tracing the testing of LiteMorph rules.

Method Detail

getMorph

public static LiteMorph getMorph()
Return the LiteMorph for this class


computeMorphArgs

protected java.lang.String[] computeMorphArgs()
Description copied from class: LiteMorph
Dummy function for specifying legal arguments to computeMorph -- can be redefined in subclasses of LiteMorph for locales that need to compute something that cannot be done easily in the rule format.

Overrides:
computeMorphArgs in class LiteMorph

computeMorph

protected java.lang.String[] computeMorph(java.lang.String input,
                                          java.lang.String arg,
                                          int depth,
                                          java.lang.String prefix,
                                          java.lang.String suffix)
Description copied from class: LiteMorph
Dummy function for computing morphological variants -- can be redefined in subclasses of LiteMorph for locales that need to compute something that cannot be done easily in the rule format.

Overrides:
computeMorph in class LiteMorph

intialize

protected void intialize()
Description copied from class: LiteMorph
Subclasses of this class (generally locale-specific) need to set up exceptions and rules. At a minium, implementations need to define an initialize method to set the localizedMorph variable to an instance of the localized Morph class, establish the rules HashTable, and initialize the size and contents of the exceptions HashTable. For languages with more complex morphology than English, such as German, it may be necessary for the localization class to define a specialization of the computeMorph method in order to handle things that are difficult to do in the rule format. If so, they must also instantiate a computeMorphArgs method to return a list of legal values for the arg argument to computeMorph. See LiteMorph_de.java for an example.

Specified by:
intialize in class LiteMorph

newProperties

public void newProperties(com.sun.labs.util.props.PropertySheet ps)
                   throws com.sun.labs.util.props.PropertyException
Throws:
com.sun.labs.util.props.PropertyException