net.sf.jhunlang.jmorph
Class Prefix

java.lang.Object
  extended bynet.sf.jhunlang.jmorph.Affix
      extended bynet.sf.jhunlang.jmorph.Prefix
All Implemented Interfaces:
java.io.Serializable

public class Prefix
extends Affix

Prefix instances store groups of prefix inflexion rules.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.jhunlang.jmorph.Affix
crossable, entries, entryList, name
 
Constructor Summary
Prefix(char name, boolean crossable, int size)
          Create a new Prefix instance with the given parameters.
 
Method Summary
 AffixEntry createEntry(Rules rules, int index, Condition[] acondition, java.lang.String strip, java.lang.String append)
          Create and return a new PrefixEntry with the given parameters
 
Methods inherited from class net.sf.jhunlang.jmorph.Affix
addEntry, contentString, crossable, done, getEntries, getFlag, getName, longContentString, toLongString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Prefix

public Prefix(char name,
              boolean crossable,
              int size)
Create a new Prefix instance with the given parameters. Initalize entries to the given size.

Parameters:
name - the name or flag
crossable - if the rules can be crossed
size - the number of prefix rules belonging to this group
Method Detail

createEntry

public AffixEntry createEntry(Rules rules,
                              int index,
                              Condition[] acondition,
                              java.lang.String strip,
                              java.lang.String append)
Create and return a new PrefixEntry with the given parameters

Specified by:
createEntry in class Affix
Parameters:
rules - the rules this affix belongs to
index - the index of the rule
acondition - the conditions of the rule
strip - the characters to strip from stems
append - the characters that can be added to stripped stems


Copyright © 2005 jmorph developers. All Rights Reserved.