|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Toolbox
A small class prividing necessary tools.
Constructor Summary | |
Toolbox()
|
Method Summary | |
static java.lang.String |
get_firstx_chars(java.lang.String input,
int number_of_chars)
get_firstx_chars seperates the first x chars of an input String. |
static java.lang.String |
get_lastx_chars(java.lang.String lemma,
int number_of_chars)
get_lastx_chars checks the Auslaut of a Word. |
static int |
getSubjektPPER(java.util.ListIterator liit)
findSubjektPPER searches for a subject in a sentence. |
static java.lang.String |
getSuffix(java.lang.String input,
java.lang.String lemma)
checkSuffix analyses the suffix of a word. |
static boolean |
isWithAblaut(java.lang.String infinitiv,
java.lang.String input)
This method checks the existens of a German Ablaut. |
static boolean |
isWithUml(java.lang.String input,
java.lang.String lemma)
withUml checks wheter there is an Umlaut in a Word or not. |
static int |
lookAheadNomenGenus(java.util.ListIterator li)
lookAheadNomenGenus searches for a nomen ahead of a word and returns the genus of the found nomen. |
static java.lang.String |
replace(java.lang.String textStr,
java.lang.String oldStr,
java.lang.String newStr)
This method is copied out of the "Java Codebook" This method replace a substring with a new substring. |
static java.lang.String |
setUml(java.lang.String text)
makeUml changes every Vocal [A, O, U] in a text into its corresponding umlaut [Ä, Ö, Ü] |
static boolean |
toInt_check(int to_int,
Word word)
This method rechecks every entry changed to int. |
static int |
toInt_declination_pattern(java.lang.String decclination_pattern)
This method transforms the data of declination-pattern saved as String into the corresponding integer value. |
static int |
toInt_genus(java.lang.String genus)
This method transforms the data of person saved as String into the corresponding integer value. |
static int |
toInt_person(java.lang.String person)
This method transforms the data of person saved as String into the corresponding integer value. |
static int |
toInt_tempus(java.lang.String tempus)
This method transforms the data of tempus saved as String into the corresponding integer value. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Toolbox()
Method Detail |
public static final java.lang.String get_firstx_chars(java.lang.String input, int number_of_chars)
input
- Stringnumber_of_chars
- int
public static final java.lang.String get_lastx_chars(java.lang.String lemma, int number_of_chars)
lemma
- (the text-String)number_of_chars
- (the number of chars to be returned)
public static final int getSubjektPPER(java.util.ListIterator liit)
liit
- (listIterator for the words)
public static final java.lang.String getSuffix(java.lang.String input, java.lang.String lemma)
input
- (normally the highgerman input like "Wörter")lemma
- (normally the highgerman lemma like "Wort")
public static final boolean isWithAblaut(java.lang.String infinitiv, java.lang.String input)
input
- (normally the Highgerman input [trug]
public static final boolean isWithUml(java.lang.String input, java.lang.String lemma)
input
- (normally the highgerman input like "Wörter")lemma
- (normally the highgerman lemma like "Wort")
public static final int lookAheadNomenGenus(java.util.ListIterator li)
li
- (ListIterator of the ArrayList of words)
public static java.lang.String replace(java.lang.String textStr, java.lang.String oldStr, java.lang.String newStr)
textStr
- (the String to be modified)oldStr
- (the substring to be replaced)newStr
- (the new substring)public static final java.lang.String setUml(java.lang.String text)
text
-
public static boolean toInt_check(int to_int, Word word)
to_int
- (a changed String to int value)word
- (necessery to find the bad coded dictionary entry)
public static int toInt_declination_pattern(java.lang.String decclination_pattern)
public static int toInt_genus(java.lang.String genus)
genus
- as String
public static int toInt_person(java.lang.String person)
person
- as String
public static int toInt_tempus(java.lang.String tempus)
tempus
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |