net.sf.jhunlang.jmorph.sword
Class SwordAffixFlagFilter
java.lang.Object
net.sf.jhunlang.jmorph.sword.SwordAffixFlagFilter
- All Implemented Interfaces:
- java.io.Serializable
- public class SwordAffixFlagFilter
- extends java.lang.Object
- implements java.io.Serializable
- See Also:
- Serialized Form
|
Method Summary |
boolean |
admit(AffixEntry entry)
Return if flag entry is configured. |
protected ParseException |
error(java.net.URL url,
java.io.LineNumberReader reader,
java.lang.String line)
|
void |
read(java.net.URL url,
java.lang.String encoding)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NOT
public static final java.lang.String NOT
- See Also:
- Constant Field Values
FLAGS
public static final java.lang.String FLAGS
- See Also:
- Constant Field Values
ENDINGS
public static final java.lang.String ENDINGS
- See Also:
- Constant Field Values
START
public static final java.lang.String START
- See Also:
- Constant Field Values
CONTAIN
public static final java.lang.String CONTAIN
- See Also:
- Constant Field Values
EQU
public static final java.lang.String EQU
- See Also:
- Constant Field Values
TYPES
public static final java.lang.String[] TYPES
allowedFlags
protected java.util.Collection allowedFlags
forbiddenFlags
protected java.util.Collection forbiddenFlags
allowedEndings
protected java.util.Collection allowedEndings
forbiddenEndings
protected java.util.Collection forbiddenEndings
SwordAffixFlagFilter
public SwordAffixFlagFilter()
read
public void read(java.net.URL url,
java.lang.String encoding)
throws java.io.IOException,
ParseException
- Throws:
java.io.IOException
ParseException
admit
public boolean admit(AffixEntry entry)
- Return if flag
entry is configured.
Return true if
-
flag of
entry mentioned in a FLAG line or
-
flag of
entry is not mentioned in a NOT FLAG line and
-
the description of
entry is mentioned in an ENDINGS line or
-
the description of
entry is not mentioned in an NOT ENDINGS
line
.
- Parameters:
entry - the affix entry
- Returns:
- if entry is admitted by the configuration
error
protected ParseException error(java.net.URL url,
java.io.LineNumberReader reader,
java.lang.String line)
Copyright © 2005 jmorph developers. All Rights Reserved.