public class ToJavaObjApi
extends java.lang.Object
History:
Constructor and Description |
---|
ToJavaObjApi() |
Modifier and Type | Method and Description |
---|---|
static int |
CheckRecordsFromTextFile(java.lang.String inFile)
A method to check grammer of lexical records from a flat file.
|
static int |
CheckRecordsFromTextFile(java.lang.String inFile,
java.lang.String prepositionFile,
java.lang.String particleFile)
A method to check grammer/syntax of lexical records from a flat file.
|
static boolean |
CheckRecordText(java.lang.String text)
A method to check grammer of lexical records in text format (string).
|
static java.lang.String |
GetErrMsg()
This method return the error message when the first error happen.
|
static void |
main(java.lang.String[] args)
A unit test driver for ToJavaObjApi.
|
static LexRecord |
ToJavaObjFromText(java.lang.String text)
A method transfer an lexical record in text format into a Java Lexical
object.
|
static java.util.Vector<LexRecord> |
ToJavaObjs(java.lang.String xmlFileName)
Deprecated.
as in 2006, replaced by ToJavaObjsFromXmlFile(string)
|
static java.util.Vector<LexRecord> |
ToJavaObjsFromText(java.lang.String text)
A method to transfer lexical records in text format (string) into a
Vector of Java Lexical objects.
|
static java.util.Vector<LexRecord> |
ToJavaObjsFromTextFile(java.lang.String inFile)
A method to read lexical records from a text formatted file and transfer
into a Vector of Java Lexical objects.
|
static java.util.Vector<LexRecord> |
ToJavaObjsFromXmlFile(java.lang.String xmlFileName)
A method to read lexical records from a XMl file and then transfer to
a Vector of Java Lexical objects.
|
@Deprecated public static java.util.Vector<LexRecord> ToJavaObjs(java.lang.String xmlFileName) throws java.lang.Exception
xmlFileName
- the file name of the lexical records in Xml formatjava.lang.Exception
- if excaption caughtpublic static java.util.Vector<LexRecord> ToJavaObjsFromXmlFile(java.lang.String xmlFileName) throws java.lang.Exception
xmlFileName
- the file name of the lexical records in Xml formatjava.lang.Exception
- if excaption caughtpublic static java.util.Vector<LexRecord> ToJavaObjsFromTextFile(java.lang.String inFile)
inFile
- the file name of the lexical records in text formatpublic static java.util.Vector<LexRecord> ToJavaObjsFromText(java.lang.String text)
text
- the content of lexical records in text formatpublic static LexRecord ToJavaObjFromText(java.lang.String text)
text
- the content of the lexical record in text formatpublic static boolean CheckRecordText(java.lang.String text)
text
- the content of the lexical records in text formatpublic static int CheckRecordsFromTextFile(java.lang.String inFile) throws java.lang.Exception
inFile
- the file name of the lexical records in text formatjava.lang.Exception
- if excaption caughtpublic static int CheckRecordsFromTextFile(java.lang.String inFile, java.lang.String prepositionFile, java.lang.String particleFile) throws java.lang.Exception
inFile
- file name of the lexical records in text formatprepositionFile
- file name of prepositionsparticleFile
- file name of particlesjava.lang.Exception
- if excaption caughtpublic static java.lang.String GetErrMsg()
public static void main(java.lang.String[] args)
args
- input arguments