public class CheckObject
extends java.lang.Object
History:
Constructor and Description |
---|
CheckObject(java.lang.String startStr,
int startErrMsg,
int fillerErrMsg,
int nextState,
java.util.HashSet<java.lang.String> nextStartStrs,
CheckFormat fillerFormat)
Create a default CheckObject
|
CheckObject(java.lang.String startStr,
int startErrMsg,
int fillerErrMsg,
int nextState,
java.util.HashSet<java.lang.String> nextStartStrs,
CheckFormat fillerFormat,
java.lang.String delim)
Create a default CheckObject
|
CheckObject(java.lang.String startStr,
int startErrMsg,
int fillerErrMsg,
int nextState,
java.util.HashSet<java.lang.String> nextStartStrs,
java.util.HashSet<java.lang.String> nextLine,
CheckFormat fillerFormat)
Create a default CheckObject
|
CheckObject(java.lang.String startStr,
int startErrMsg,
int fillerErrMsg,
int nextState,
java.util.HashSet<java.lang.String> nextStartStrs,
java.util.HashSet<java.lang.String> nextLine,
CheckFormat fillerFormat,
java.lang.String delim)
Create a default CheckObject
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
GetDelim()
Get the deliminator string from this CheckObject
|
int |
GetFillerErrMsg()
Get the error massage of the filler problem
|
CheckFormat |
GetFillerFormat()
Get the legal format of a filler
|
java.util.HashSet<java.lang.String> |
GetNextLine()
Get the collection of possible strings of next line
|
java.util.HashSet<java.lang.String> |
GetNextStartStrs()
Get the collection of possible starting strings of next line
|
int |
GetNextState()
Get the next checking state
|
int |
GetStartErrMsg()
Get the error massage of the starting string problem
|
java.lang.String |
GetStartStr()
Get the legal start string from this CheckObject
|
boolean |
IsNextStartStr(java.lang.String line)
Check if the starting string of next line is legal
|
boolean |
IsTab()
Check if the line starts with a tab
|
public CheckObject(java.lang.String startStr, int startErrMsg, int fillerErrMsg, int nextState, java.util.HashSet<java.lang.String> nextStartStrs, CheckFormat fillerFormat)
startStr
- the start string of a linestartErrMsg
- the error msg for the start string problemfillerErrMsg
- the error msg for fillernextState
- the next checking statenextStartStrs
- the possible start string for the next linefillerFormat
- the legal format of fillerpublic CheckObject(java.lang.String startStr, int startErrMsg, int fillerErrMsg, int nextState, java.util.HashSet<java.lang.String> nextStartStrs, java.util.HashSet<java.lang.String> nextLine, CheckFormat fillerFormat)
startStr
- the start string of a linestartErrMsg
- the error msg for the start string problemfillerErrMsg
- the error msg for fillernextState
- the next checking statenextStartStrs
- the possible start string for the next linenextLine
- the possible next linefillerFormat
- the legal format of fillerpublic CheckObject(java.lang.String startStr, int startErrMsg, int fillerErrMsg, int nextState, java.util.HashSet<java.lang.String> nextStartStrs, CheckFormat fillerFormat, java.lang.String delim)
startStr
- the start string of a linestartErrMsg
- the error msg for the start string problemfillerErrMsg
- the error msg for fillernextState
- the next checking statenextStartStrs
- the possible start string for the next linefillerFormat
- the legal format of fillerdelim
- the deliminator for tokenizationpublic CheckObject(java.lang.String startStr, int startErrMsg, int fillerErrMsg, int nextState, java.util.HashSet<java.lang.String> nextStartStrs, java.util.HashSet<java.lang.String> nextLine, CheckFormat fillerFormat, java.lang.String delim)
startStr
- the start string of a linestartErrMsg
- the error msg for the start string problemfillerErrMsg
- the error msg for fillernextState
- the next checking statenextStartStrs
- the possible start string for the next linenextLine
- the possible next linefillerFormat
- the legal format of fillerdelim
- the deliminator for tokenizationpublic java.lang.String GetStartStr()
public java.lang.String GetDelim()
public int GetStartErrMsg()
public int GetFillerErrMsg()
public int GetNextState()
public java.util.HashSet<java.lang.String> GetNextStartStrs()
public java.util.HashSet<java.lang.String> GetNextLine()
public boolean IsNextStartStr(java.lang.String line)
line
- input line of current checking lexical recordpublic CheckFormat GetFillerFormat()
public boolean IsTab()
Submit a bug or feature
Copyright © 2016 National Library of Medicine