LexCheck
2011 Version

gov.nih.nlm.nls.lexCheck.Lib
Class ErrMsg

java.lang.Object
  extended by gov.nih.nlm.nls.lexCheck.Lib.ErrMsg

public class ErrMsg
extends java.lang.Object

This class provides a class of handling error message for lexCheck.

History:

Version:
V-2011
Author:
NLM Lexical System Development Team

Field Summary
static int ABBREVIATION_FILLER_ERR
          error message: abbreviation filler error
static int ABBREVIATION_SLOT_ERR
          error message: abbreviation slot error
static int ACRONYM_FILLER_ERR
          error message: acronym slot filler error
static int ACRONYM_SLOT_ERR
          error message: acronym slot error
static int ADJ_COMPL_FILLER_ERR
          error message: adjective compelment filler error
static int ADJ_COMPL_SLOT_ERR
          error message: adjective complement slot error
static int ADJ_NOMINALIZATION_FILLER_ERR
          error message: adjective nominalization filler error
static int ADJ_NOMINALIZATION_SLOT_ERR
          error message: adjective nominalization slot error
static int ADJ_POSITION_FILLER_ERR
          error message: adjective position filler error
static int ADJ_POSITION_SLOT_ERR
          error message: adjective position slot error
static int ADJ_STATIVE_SLOT_ERR
          error message: adjective stative slot error
static int ADJ_VAR_FILLER_ERR
          error message: adjective variants filler error
static int ADJ_VAR_SLOT_ERR
          error message: adjective variants slot error
static int ADV_BROAD_NEGATIVE_SLOT_ERR
          error message: adverb broad negative slot error
static int ADV_INTERROGATIVE_SLOT_ERR
          error message: adverb interrogative slot error
static int ADV_MODIFICATION_FILLER_ERR
          error message: adverb modification filler error
static int ADV_MODIFICATION_SLOT_ERR
          error message: adverb modification slot error
static int ADV_NEGATIVE_SLOT_ERR
          error message: adverb negative slot error
static int ADV_VAR_FILLER_ERR
          error message: adverb variants filler error
static int ADV_VAR_SLOT_ERR
          error message: adverb variants slot error
static int ANNOTATION_SLOT_ERR
          error message: annotation slot error
static int AUX_VAR_FILLER_ERR
          error message: auxiliary variants filler error
static int AUX_VAR_SLOT_ERR
          error message: auxiliary variants slot error
static int BASE_SLOT_ERR
          error message: base slot eorror
static int CAT_FILLER_ERR
          error message: category filler error
static int CAT_SLOT_ERR
          error message: category slot error
static int DET_DEMONSTRATIVE_SLOT_ERR
          error message: determiner demonstrative slot error
static int DET_INTERROGATIVE_SLOT_ERR
          error message: determiner interrogative slot error
static int DET_VAR_FILLER_ERR
          error message: determiner variants filler error
static int DET_VAR_SLOT_ERR
          error message: determiner variants slot error
static int DUPLICATE_SLOT_ERR
          error message: suplicate slot error
static int END_CODE_ERR
          error message: end code error
static int END_SLOT_ERR
          error message: end slot error
static int ENTRY_FILLER_ERR
          error message: entry filler error
static int ENTRY_SLOT_ERR
          error message: entry slot error
static int FILLER_BLANK_ERR
          error message: filler blank error
static int FILLER_FORMAT_ERR
          error message: filler format error
static int FILLER_START_CHAR_ERR
          error message: filler starting char error
static java.lang.String LS
          line separator
static int MODAL_VAR_FILLER_ERR
          error message: modal variants filler error
static int MODAL_VAR_SLOT_ERR
          error message: modal variants slot error
static int NONE
          error message: none
static int NOUN_COMPL_FILLER_ERR
          error message: noun complement filler error
static int NOUN_COMPL_SLOT_ERR
          error message: none complement slot error
static int NOUN_NOMINALIZATION_FILLER_ERR
          error message: noun nominalization filler error
static int NOUN_NOMINALIZATION_SLOT_ERR
          error message: noun nominalization slot error
static int NOUN_PROPER_SLOT_ERR
          error message: noun proper slot error
static int NOUN_TRADEMARK_FILLER_ERR
          error message: noun trademark filler error
static int NOUN_TRADEMARK_SLOT_ERR
          error message: noun trademark slot error
static int NOUN_TRADENAME_FILLER_ERR
          error message: noun tradename filler error
static int NOUN_TRADENAME_SLOT_ERR
          error message: noun tradename slot error
static int NOUN_VAR_FILLER_ERR
          error message: noun variants filler error
static int NOUN_VAR_SLOT_ERR
          error message: noun variants slot error
static int PRON_GENDER_FILLER_ERR
          error message: pronoun gender filler error
static int PRON_GENDER_SLOT_ERR
          error message: pronoun gender slot error
static int PRON_INTERROGATIVE_SLOT_ERR
          error message: pronoun interrogative slot error
static int PRON_TYPE_FILLER_ERR
          error message: pronoun type filler error
static int PRON_TYPE_SLOT_ERR
          error message: pronoun type slot error
static int PRON_VAR_FILLER_ERR
          error message: pronoun variant filler error
static int PRON_VAR_SLOT_ERR
          error message: pronoun variant slot error
static int SIGNATURE_SLOT_ERR
          error message: signature slot error
static int SLOT_FILLER_ERR
          error message: slot filler error
static int SLOT_FILLER_NUMBER_ERR
          error message: slot fillernumber error
static int SLOT_NUMBER_ERR
          error message: slot number error
static int SPELLING_VAR_SLOT_ERR
          error message: spelling variant slot error
static int TAB_ERR
          error message: tab error
static int VARIANTS_ERR
          error message: variants error
static int VARIANTS_FORMAT_ERR
          error message: variants format error
static int VERB_COMPL_NUM_ERR
          error message: verb complement number error
static int VERB_CPLXTRAN_FILLER_ERR
          error message: verb complex transitive filler error
static int VERB_CPLXTRAN_SLOT_ERR
          error message: verb complex transitive slot error
static int VERB_DITRAN_FILLER_ERR
          error message: verb ditransitive filler error
static int VERB_DITRAN_SLOT_ERR
          error message: verb ditransitive slot error
static int VERB_INTRAN_FILLER_ERR
          error message: verb intransitive filler error
static int VERB_INTRAN_SLOT_ERR
          error message: verb intransitive slot error
static int VERB_INTRAN2_FILLER_ERR
          error message: verb intransitive filler error
static int VERB_INTRAN2_SLOT_ERR
          error message: verb intransitive slot error
static int VERB_LINK_FILLER_ERR
          error message: verb linking filler error
static int VERB_LINK_SLOT_ERR
          error message: verb linking slot error
static int VERB_NOMINALIZATION_FILLER_ERR
          error message: verb nominalization filler error
static int VERB_NOMINALIZATION_SLOT_ERR
          error message: verb nominalization slot error
static int VERB_TRAN_FILLER_ERR
          error message: verb transitive filler error
static int VERB_TRAN_SLOT_ERR
          error message: verb transitive slot error
static int VERB_VAR_FILLER_ERR
          error message: verb variants filler error
static int VERB_VAR_SLOT_ERR
          error message: verb variant slot error
 
Constructor Summary
ErrMsg()
           
 
Method Summary
static java.lang.String GetErrMsg()
          Get the crrent error message.
static void PrintErrMsg(boolean printFlag, int index, LineObject lineObject, java.lang.String token, int beginIndex, int endIndex, boolean isTab)
          Print out the error message.
static void ResetErrMsg()
          Reset the crrent error message to a new string.
static void SetErrMsg(java.lang.String errMsg)
          Set the crrent error message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LS

public static final java.lang.String LS
line separator


NONE

public static final int NONE
error message: none

See Also:
Constant Field Values

FILLER_FORMAT_ERR

public static final int FILLER_FORMAT_ERR
error message: filler format error

See Also:
Constant Field Values

FILLER_BLANK_ERR

public static final int FILLER_BLANK_ERR
error message: filler blank error

See Also:
Constant Field Values

FILLER_START_CHAR_ERR

public static final int FILLER_START_CHAR_ERR
error message: filler starting char error

See Also:
Constant Field Values

BASE_SLOT_ERR

public static final int BASE_SLOT_ERR
error message: base slot eorror

See Also:
Constant Field Values

SPELLING_VAR_SLOT_ERR

public static final int SPELLING_VAR_SLOT_ERR
error message: spelling variant slot error

See Also:
Constant Field Values

ENTRY_SLOT_ERR

public static final int ENTRY_SLOT_ERR
error message: entry slot error

See Also:
Constant Field Values

ENTRY_FILLER_ERR

public static final int ENTRY_FILLER_ERR
error message: entry filler error

See Also:
Constant Field Values

TAB_ERR

public static final int TAB_ERR
error message: tab error

See Also:
Constant Field Values

CAT_SLOT_ERR

public static final int CAT_SLOT_ERR
error message: category slot error

See Also:
Constant Field Values

CAT_FILLER_ERR

public static final int CAT_FILLER_ERR
error message: category filler error

See Also:
Constant Field Values

VARIANTS_ERR

public static final int VARIANTS_ERR
error message: variants error

See Also:
Constant Field Values

VARIANTS_FORMAT_ERR

public static final int VARIANTS_FORMAT_ERR
error message: variants format error

See Also:
Constant Field Values

ANNOTATION_SLOT_ERR

public static final int ANNOTATION_SLOT_ERR
error message: annotation slot error

See Also:
Constant Field Values

SIGNATURE_SLOT_ERR

public static final int SIGNATURE_SLOT_ERR
error message: signature slot error

See Also:
Constant Field Values

END_SLOT_ERR

public static final int END_SLOT_ERR
error message: end slot error

See Also:
Constant Field Values

END_CODE_ERR

public static final int END_CODE_ERR
error message: end code error

See Also:
Constant Field Values

ABBREVIATION_SLOT_ERR

public static final int ABBREVIATION_SLOT_ERR
error message: abbreviation slot error

See Also:
Constant Field Values

ABBREVIATION_FILLER_ERR

public static final int ABBREVIATION_FILLER_ERR
error message: abbreviation filler error

See Also:
Constant Field Values

ACRONYM_SLOT_ERR

public static final int ACRONYM_SLOT_ERR
error message: acronym slot error

See Also:
Constant Field Values

ACRONYM_FILLER_ERR

public static final int ACRONYM_FILLER_ERR
error message: acronym slot filler error

See Also:
Constant Field Values

DUPLICATE_SLOT_ERR

public static final int DUPLICATE_SLOT_ERR
error message: suplicate slot error

See Also:
Constant Field Values

DET_VAR_SLOT_ERR

public static final int DET_VAR_SLOT_ERR
error message: determiner variants slot error

See Also:
Constant Field Values

DET_VAR_FILLER_ERR

public static final int DET_VAR_FILLER_ERR
error message: determiner variants filler error

See Also:
Constant Field Values

DET_INTERROGATIVE_SLOT_ERR

public static final int DET_INTERROGATIVE_SLOT_ERR
error message: determiner interrogative slot error

See Also:
Constant Field Values

DET_DEMONSTRATIVE_SLOT_ERR

public static final int DET_DEMONSTRATIVE_SLOT_ERR
error message: determiner demonstrative slot error

See Also:
Constant Field Values

PRON_VAR_SLOT_ERR

public static final int PRON_VAR_SLOT_ERR
error message: pronoun variant slot error

See Also:
Constant Field Values

PRON_VAR_FILLER_ERR

public static final int PRON_VAR_FILLER_ERR
error message: pronoun variant filler error

See Also:
Constant Field Values

PRON_GENDER_SLOT_ERR

public static final int PRON_GENDER_SLOT_ERR
error message: pronoun gender slot error

See Also:
Constant Field Values

PRON_GENDER_FILLER_ERR

public static final int PRON_GENDER_FILLER_ERR
error message: pronoun gender filler error

See Also:
Constant Field Values

PRON_INTERROGATIVE_SLOT_ERR

public static final int PRON_INTERROGATIVE_SLOT_ERR
error message: pronoun interrogative slot error

See Also:
Constant Field Values

PRON_TYPE_SLOT_ERR

public static final int PRON_TYPE_SLOT_ERR
error message: pronoun type slot error

See Also:
Constant Field Values

PRON_TYPE_FILLER_ERR

public static final int PRON_TYPE_FILLER_ERR
error message: pronoun type filler error

See Also:
Constant Field Values

MODAL_VAR_SLOT_ERR

public static final int MODAL_VAR_SLOT_ERR
error message: modal variants slot error

See Also:
Constant Field Values

MODAL_VAR_FILLER_ERR

public static final int MODAL_VAR_FILLER_ERR
error message: modal variants filler error

See Also:
Constant Field Values

AUX_VAR_SLOT_ERR

public static final int AUX_VAR_SLOT_ERR
error message: auxiliary variants slot error

See Also:
Constant Field Values

AUX_VAR_FILLER_ERR

public static final int AUX_VAR_FILLER_ERR
error message: auxiliary variants filler error

See Also:
Constant Field Values

ADV_VAR_SLOT_ERR

public static final int ADV_VAR_SLOT_ERR
error message: adverb variants slot error

See Also:
Constant Field Values

ADV_VAR_FILLER_ERR

public static final int ADV_VAR_FILLER_ERR
error message: adverb variants filler error

See Also:
Constant Field Values

ADV_INTERROGATIVE_SLOT_ERR

public static final int ADV_INTERROGATIVE_SLOT_ERR
error message: adverb interrogative slot error

See Also:
Constant Field Values

ADV_MODIFICATION_SLOT_ERR

public static final int ADV_MODIFICATION_SLOT_ERR
error message: adverb modification slot error

See Also:
Constant Field Values

ADV_MODIFICATION_FILLER_ERR

public static final int ADV_MODIFICATION_FILLER_ERR
error message: adverb modification filler error

See Also:
Constant Field Values

ADV_NEGATIVE_SLOT_ERR

public static final int ADV_NEGATIVE_SLOT_ERR
error message: adverb negative slot error

See Also:
Constant Field Values

ADV_BROAD_NEGATIVE_SLOT_ERR

public static final int ADV_BROAD_NEGATIVE_SLOT_ERR
error message: adverb broad negative slot error

See Also:
Constant Field Values

ADJ_VAR_SLOT_ERR

public static final int ADJ_VAR_SLOT_ERR
error message: adjective variants slot error

See Also:
Constant Field Values

ADJ_VAR_FILLER_ERR

public static final int ADJ_VAR_FILLER_ERR
error message: adjective variants filler error

See Also:
Constant Field Values

ADJ_POSITION_SLOT_ERR

public static final int ADJ_POSITION_SLOT_ERR
error message: adjective position slot error

See Also:
Constant Field Values

ADJ_POSITION_FILLER_ERR

public static final int ADJ_POSITION_FILLER_ERR
error message: adjective position filler error

See Also:
Constant Field Values

ADJ_COMPL_SLOT_ERR

public static final int ADJ_COMPL_SLOT_ERR
error message: adjective complement slot error

See Also:
Constant Field Values

ADJ_COMPL_FILLER_ERR

public static final int ADJ_COMPL_FILLER_ERR
error message: adjective compelment filler error

See Also:
Constant Field Values

ADJ_STATIVE_SLOT_ERR

public static final int ADJ_STATIVE_SLOT_ERR
error message: adjective stative slot error

See Also:
Constant Field Values

ADJ_NOMINALIZATION_SLOT_ERR

public static final int ADJ_NOMINALIZATION_SLOT_ERR
error message: adjective nominalization slot error

See Also:
Constant Field Values

ADJ_NOMINALIZATION_FILLER_ERR

public static final int ADJ_NOMINALIZATION_FILLER_ERR
error message: adjective nominalization filler error

See Also:
Constant Field Values

NOUN_VAR_SLOT_ERR

public static final int NOUN_VAR_SLOT_ERR
error message: noun variants slot error

See Also:
Constant Field Values

NOUN_VAR_FILLER_ERR

public static final int NOUN_VAR_FILLER_ERR
error message: noun variants filler error

See Also:
Constant Field Values

NOUN_COMPL_SLOT_ERR

public static final int NOUN_COMPL_SLOT_ERR
error message: none complement slot error

See Also:
Constant Field Values

NOUN_COMPL_FILLER_ERR

public static final int NOUN_COMPL_FILLER_ERR
error message: noun complement filler error

See Also:
Constant Field Values

NOUN_NOMINALIZATION_SLOT_ERR

public static final int NOUN_NOMINALIZATION_SLOT_ERR
error message: noun nominalization slot error

See Also:
Constant Field Values

NOUN_NOMINALIZATION_FILLER_ERR

public static final int NOUN_NOMINALIZATION_FILLER_ERR
error message: noun nominalization filler error

See Also:
Constant Field Values

NOUN_TRADENAME_SLOT_ERR

public static final int NOUN_TRADENAME_SLOT_ERR
error message: noun tradename slot error

See Also:
Constant Field Values

NOUN_TRADENAME_FILLER_ERR

public static final int NOUN_TRADENAME_FILLER_ERR
error message: noun tradename filler error

See Also:
Constant Field Values

NOUN_TRADEMARK_SLOT_ERR

public static final int NOUN_TRADEMARK_SLOT_ERR
error message: noun trademark slot error

See Also:
Constant Field Values

NOUN_TRADEMARK_FILLER_ERR

public static final int NOUN_TRADEMARK_FILLER_ERR
error message: noun trademark filler error

See Also:
Constant Field Values

NOUN_PROPER_SLOT_ERR

public static final int NOUN_PROPER_SLOT_ERR
error message: noun proper slot error

See Also:
Constant Field Values

VERB_VAR_SLOT_ERR

public static final int VERB_VAR_SLOT_ERR
error message: verb variant slot error

See Also:
Constant Field Values

VERB_VAR_FILLER_ERR

public static final int VERB_VAR_FILLER_ERR
error message: verb variants filler error

See Also:
Constant Field Values

VERB_INTRAN_SLOT_ERR

public static final int VERB_INTRAN_SLOT_ERR
error message: verb intransitive slot error

See Also:
Constant Field Values

VERB_INTRAN_FILLER_ERR

public static final int VERB_INTRAN_FILLER_ERR
error message: verb intransitive filler error

See Also:
Constant Field Values

VERB_INTRAN2_SLOT_ERR

public static final int VERB_INTRAN2_SLOT_ERR
error message: verb intransitive slot error

See Also:
Constant Field Values

VERB_INTRAN2_FILLER_ERR

public static final int VERB_INTRAN2_FILLER_ERR
error message: verb intransitive filler error

See Also:
Constant Field Values

VERB_TRAN_SLOT_ERR

public static final int VERB_TRAN_SLOT_ERR
error message: verb transitive slot error

See Also:
Constant Field Values

VERB_TRAN_FILLER_ERR

public static final int VERB_TRAN_FILLER_ERR
error message: verb transitive filler error

See Also:
Constant Field Values

VERB_DITRAN_SLOT_ERR

public static final int VERB_DITRAN_SLOT_ERR
error message: verb ditransitive slot error

See Also:
Constant Field Values

VERB_DITRAN_FILLER_ERR

public static final int VERB_DITRAN_FILLER_ERR
error message: verb ditransitive filler error

See Also:
Constant Field Values

VERB_LINK_SLOT_ERR

public static final int VERB_LINK_SLOT_ERR
error message: verb linking slot error

See Also:
Constant Field Values

VERB_LINK_FILLER_ERR

public static final int VERB_LINK_FILLER_ERR
error message: verb linking filler error

See Also:
Constant Field Values

VERB_CPLXTRAN_SLOT_ERR

public static final int VERB_CPLXTRAN_SLOT_ERR
error message: verb complex transitive slot error

See Also:
Constant Field Values

VERB_CPLXTRAN_FILLER_ERR

public static final int VERB_CPLXTRAN_FILLER_ERR
error message: verb complex transitive filler error

See Also:
Constant Field Values

VERB_NOMINALIZATION_SLOT_ERR

public static final int VERB_NOMINALIZATION_SLOT_ERR
error message: verb nominalization slot error

See Also:
Constant Field Values

VERB_NOMINALIZATION_FILLER_ERR

public static final int VERB_NOMINALIZATION_FILLER_ERR
error message: verb nominalization filler error

See Also:
Constant Field Values

VERB_COMPL_NUM_ERR

public static final int VERB_COMPL_NUM_ERR
error message: verb complement number error

See Also:
Constant Field Values

SLOT_FILLER_ERR

public static final int SLOT_FILLER_ERR
error message: slot filler error

See Also:
Constant Field Values

SLOT_FILLER_NUMBER_ERR

public static final int SLOT_FILLER_NUMBER_ERR
error message: slot fillernumber error

See Also:
Constant Field Values

SLOT_NUMBER_ERR

public static final int SLOT_NUMBER_ERR
error message: slot number error

See Also:
Constant Field Values
Constructor Detail

ErrMsg

public ErrMsg()
Method Detail

PrintErrMsg

public static void PrintErrMsg(boolean printFlag,
                               int index,
                               LineObject lineObject,
                               java.lang.String token,
                               int beginIndex,
                               int endIndex,
                               boolean isTab)
Print out the error message.

Parameters:
printFlag - the flag for print out check result
index - the index of error message to print out
lineObject - the java object of the input line
token - the token string of the problem
beginIndex - the index of the beginning mark of the problem
endIndex - the index of the ending mark of the problem
isTab - the flag of tab strating

GetErrMsg

public static java.lang.String GetErrMsg()
Get the crrent error message.


SetErrMsg

public static void SetErrMsg(java.lang.String errMsg)
Set the crrent error message.

Parameters:
errMsg - error message to be set

ResetErrMsg

public static void ResetErrMsg()
Reset the crrent error message to a new string.


LexCheck
2011 Version

Submit a bug or feature

Copyright © 2011 National Library of Medicine