|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nih.nlm.nls.lvg.Lib.LexItemComparator
public class LexItemComparator
This class performs a comparator for LexItems. This class is used with CombinedRecord for output filter
History:
| Field Summary | |
|---|---|
static int |
ALPHABETIC
|
static int |
LVG_RULE
|
static int |
NONE
an enumerated type for setting the comparing rule by LVG principle |
static int |
TERM
|
static int |
TERM_CAT
|
static int |
TERM_CAT_INFL
|
| Constructor Summary | |
|---|---|
LexItemComparator()
|
|
| Method Summary | |
|---|---|
int |
compare(java.lang.Object o1,
java.lang.Object o2)
To compare two object o1 and o2. |
static int |
GetCategoryPriority(long category)
Get the priority of ordering for a category. |
void |
SetCase(boolean caseFlag)
Set the .g for case sensitivity |
void |
SetRule(int rule)
Set the comparing rule for this comparator. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Comparator |
|---|
equals |
| Field Detail |
|---|
public static final int NONE
public static final int TERM
public static final int TERM_CAT
public static final int TERM_CAT_INFL
public static final int LVG_RULE
public static final int ALPHABETIC
| Constructor Detail |
|---|
public LexItemComparator()
| Method Detail |
|---|
public int compare(java.lang.Object o1,
java.lang.Object o2)
compare in interface java.util.Comparatoro1 - first object to be comparedo2 - second object to be compared
public void SetRule(int rule)
rule - an enumurated value. Such as Lvg.LexItemComparator.LVG_RULE
means to use lvg principle to compare object. Otherwise, use
compartor for combining records.public void SetCase(boolean caseFlag)
caseFlag - flag for case sensitivitypublic static int GetCategoryPriority(long category)
category - a long integer value of a category
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||