public interface IParsable
Modifier and Type | Method and Description |
---|---|
void |
addParsingProblem(ParserProblem problem)
Adds a parsing problem to the list of parsing problems
|
int |
getParsingProblem()
Returns an integer value indicating whether the used parser
method was able to parse a string successfully into this object (
0 )
or not (!=0 ). |
java.util.List<ParserProblem> |
getParsingProblems()
Returns a list of all warnings and errors that have been recognized during the parsing
and not yet handled.
|
int |
getProblemEnds()
Deprecated.
This method will be removed by a more sophisticated method in future versions,
therefore it is deprecated.
|
int |
getProblemStarts()
Deprecated.
This method will be removed by a more sophisticated method in future versions,
therefore it is deprecated.
|
boolean |
hasProblem()
Returns true if any parsing problem (warning or error) exists.
|
boolean |
hasProblem(ParserProblem problem)
Returns true, if the specified problem exists.
|
void |
removeParsingProblem(ParserProblem problem)
Removes a parsing problem from the list of parsing problems.
|
void |
setParsingProblem(int hasProblem) |
void |
setProblemEnds(int end)
Deprecated.
This method will be removed by a more sophisticated method in future versions,
therefore it is deprecated.
|
void |
setProblemStarts(int start)
Deprecated.
This method will be removed by a more sophisticated method in future versions,
therefore it is deprecated.
|
int getParsingProblem()
0
)
or not (!=0
). The the parsing was not successful the value returned
defines in more detail what the problem was. The definition of these values depends
on the parser that has been used for parsing.void setParsingProblem(int hasProblem)
getParsingProblem()
boolean hasProblem()
#getHasProblem()
boolean hasProblem(ParserProblem problem)
problem
- java.util.List<ParserProblem> getParsingProblems()
void addParsingProblem(ParserProblem problem)
problem
- void removeParsingProblem(ParserProblem problem)
null
, nothing happens.warning
- @Deprecated int getProblemStarts()
#getHasProblem()
@Deprecated int getProblemEnds()
#getHasProblem()
@Deprecated void setProblemStarts(int start)
getProblemStarts()
@Deprecated void setProblemEnds(int end)
getProblemEnds()
Copyright © 2007-2020 EDIT. All Rights Reserved.