View Javadoc

1   package net.sf.jhunlang.jmorph;
2   
3   public class NumberEntry extends DummyEntry
4   {
5     public NumberEntry(String word)
6     {
7       super(word);
8     }
9     
10    /* 
11     * @see net.sf.jhunlang.jmorph.DictEntry#getPOS()
12     */
13    public String getPOS()
14    {
15      return "adj_num";
16    }
17    
18    /***
19     * Return the inflexed word resulted by applying <code>affix</code> to the
20     * {@link #word} of this entry.
21     * @param affix the affix
22     * @return the inflexed word
23     */
24    public String inflex(AffixEntry affix)
25    {
26      return affix.append(word);
27    }
28    
29    /***
30     * Return the inflexed word resulted by applying <code>prefix</code> and
31     * <code>suffix</code> to the {@link #word} of this entry.
32     * @param prefix the prefix inflexion
33     * @param suffix the suffix inflexion
34     * @return the inflexed word
35     */
36    public String inflex(PrefixEntry prefix, SuffixEntry suffix)
37    {
38      return prefix.append(suffix.append(word));
39    }
40    
41    
42  }