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)
A method to check grammer 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[] argv)
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
public 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
public static java.util.Vector<LexRecord> ToJavaObjsFromTextFile(java.lang.String inFile) throws java.lang.Exception
inFile
- the file name of the lexical records in text formatjava.lang.Exception
public static java.util.Vector<LexRecord> ToJavaObjsFromText(java.lang.String text) throws java.lang.Exception
text
- the content of lexical records in text formatjava.lang.Exception
public static LexRecord ToJavaObjFromText(java.lang.String text) throws java.lang.Exception
text
- the content of the lexical record in text formatjava.lang.Exception
public static boolean CheckRecordText(java.lang.String text) throws java.lang.Exception
text
- the content of the lexical records in text formatjava.lang.Exception
public static int CheckRecordsFromTextFile(java.lang.String inFile) throws java.lang.Exception
inFile
- the file name of the lexical records in text formatjava.lang.Exception
public static int CheckRecordsFromTextFile(java.lang.String inFile, java.lang.String prepositionFile) throws java.lang.Exception
inFile
- the file name of the lexical records in text formatjava.lang.Exception
public static java.lang.String GetErrMsg()
public static void main(java.lang.String[] argv)
Submit a bug or feature
Copyright © 2013 National Library of Medicine