|
Lvg Java 2011 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.BitMaskBase
gov.nih.nlm.nls.lvg.Lib.Category
public class Category
This Category class extends BitMaskBase class and performs as LVG category.
History:
| Field Summary | |
|---|---|
static int |
ADJ_BIT
Adjective bit for category |
static int |
ADV_BIT
Adverb bit for category |
static long |
ALL_BIT_VALUE
|
static int |
AUX_BIT
Auxiliary bit for category |
static int |
COMPL_BIT
Complementizer bit for category |
static int |
CONJ_BIT
Conjunction bit for category |
static int |
DET_BIT
Determiner bit for category |
static int |
MODAL_BIT
Modal bit for category |
static long |
NO_BIT_VALUE
|
static int |
NOUN_BIT
Noun bit for category |
static int |
PREP_BIT
Preposition bit for category |
static int |
PRON_BIT
Pronoun bit for category |
static int |
TOTAL_BITS
All bits for category |
static int |
VERB_BIT
Verb bit for category |
| Fields inherited from class gov.nih.nlm.nls.lvg.Lib.BitMaskBase |
|---|
mask_, MAX_BIT |
| Constructor Summary | |
|---|---|
Category()
Creates a default category object |
|
Category(long value)
Creates a default category object, using a long value |
|
| Method Summary | |
|---|---|
static long |
Enumerate(java.lang.String valueStr)
Get the long value for one single name (no combine names of bits). |
static java.lang.String |
GetBitName(int bitValue)
Get the name (first in the name list) of a specified bit (single). |
static java.lang.String |
GetBitName(int bitValue,
int index)
Get the name at index order of a specified bit (single). |
static void |
main(java.lang.String[] args)
Test driver for this class |
static java.lang.String |
ToName(long value)
Convert a long category value to a combined string (abbreviation). |
static long |
ToValue(java.lang.String valueStr)
Convert a combined value string to a long category value. |
static java.util.Vector<java.lang.Long> |
ToValues(long value)
Get a Vector |
static long[] |
ToValuesArray(long value)
Get an array includes all values from the combined value. |
| Methods inherited from class gov.nih.nlm.nls.lvg.Lib.BitMaskBase |
|---|
Contains, Contains, Enumerate, GetBitFlag, GetBitIndex, GetBitName, GetBitValue, GetName, GetValue, SetBitFlag, SetValue, ToName, ToValue, ToValues |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int ADJ_BIT
public static final int ADV_BIT
public static final int AUX_BIT
public static final int COMPL_BIT
public static final int CONJ_BIT
public static final int DET_BIT
public static final int MODAL_BIT
public static final int NOUN_BIT
public static final int PREP_BIT
public static final int PRON_BIT
public static final int VERB_BIT
public static final int TOTAL_BITS
public static final long ALL_BIT_VALUE
public static final long NO_BIT_VALUE
| Constructor Detail |
|---|
public Category()
public Category(long value)
| Method Detail |
|---|
public static long ToValue(java.lang.String valueStr)
valueStr - combined name in String format
public static java.lang.String ToName(long value)
value - number for finding it's combined name
public static java.lang.String GetBitName(int bitValue)
bitValue - bit nubmer for finding it's name
public static java.lang.String GetBitName(int bitValue,
int index)
bitValue - bit nubmer for finding it's nameindex - the order index of the name in bitStr_[]
public static long Enumerate(java.lang.String valueStr)
valueStr - name of a bit for finding it's long value
public static java.util.Vector<java.lang.Long> ToValues(long value)
value - combined value
public static long[] ToValuesArray(long value)
value - combined value
public static void main(java.lang.String[] args)
|
Lvg Java 2011 Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||