|
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.Trie.WildCard
public final class WildCard
This class creates an object of wild cards for trie.
History:
| Field Summary | |
|---|---|
static char |
BEGIN
a character symbol for represetning the beginning of a string |
static char |
CONSONANT
a character symbol for representing a consonant |
static char |
DIGIT
a character symbol for representing a digit [0-9] |
static char |
END
a character symbol for represetning the end of a string |
static char |
FS
a character symbol for representing a field separator |
static char |
LETTER
a character symbol for representing a letter [a-z] |
static char |
SAME_AS_PREV
a character symbol for representing a same character as the following character in the string |
static char |
VOWEL
a character symbol for representing a vowel: [a,e,i,o,u] |
| Method Summary | |
|---|---|
static java.lang.String |
GetSuffix(java.lang.String inSuffix,
java.lang.String outSuffix,
java.lang.String inStr)
Get a string with modified suffix from a specified string by giving the in suffix and out suffix of a rule to be applied. |
static boolean |
IsMatchKey(char key,
int index,
char[] inCharArray)
Check if a specific key matches a character of a suffix. |
static boolean |
IsWildCard(char inChar)
Check if a specific character belong ot a pre-defined wild card. |
static void |
main(java.lang.String[] args)
test driver for this class. |
static char |
WildCardTransform(char inChar)
Transform a specific character to a wildCard |
static java.lang.String |
WildCardTransform(java.lang.String inStr)
Transform a specific string to a string consist of wildcard. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char VOWEL
public static final char CONSONANT
public static final char SAME_AS_PREV
public static final char DIGIT
public static final char LETTER
public static final char BEGIN
public static final char END
public static final char FS
| Method Detail |
|---|
public static java.lang.String GetSuffix(java.lang.String inSuffix,
java.lang.String outSuffix,
java.lang.String inStr)
inSuffix - the matching suffix of input termoutSuffix - the generated output suffixinStr - the string will be modified it's suffix
public static boolean IsMatchKey(char key,
int index,
char[] inCharArray)
key - the key character to be checked for matchingindex - the index of character in the input array for matchinginCharArray - a character array to represent a suffix
public static char WildCardTransform(char inChar)
inChar - the character to be transform to a wild card
public static java.lang.String WildCardTransform(java.lang.String inStr)
inStr - the string to be transformed to wild cards
public static boolean IsWildCard(char inChar)
inChar - the character to be test for a wild card
public static void main(java.lang.String[] args)
|
Lvg Java 2006p Version |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||