public interface IProblemFactory
| Modifier and Type | Method and Description |
|---|---|
CategorizedProblem |
createProblem(char[] originatingFileName,
int problemId,
java.lang.String[] problemArguments,
int elaborationId,
java.lang.String[] messageArguments,
int severity,
int startPosition,
int endPosition,
int lineNumber,
int columnNumber)
Answer a new IProblem created according to the parameters values.
|
CategorizedProblem |
createProblem(char[] originatingFileName,
int problemId,
java.lang.String[] problemArguments,
java.lang.String[] messageArguments,
int severity,
int startPosition,
int endPosition,
int lineNumber,
int columnNumber) |
java.util.Locale |
getLocale() |
java.lang.String |
getLocalizedMessage(int problemId,
int elaborationId,
java.lang.String[] messageArguments)
Inject the supplied message arguments into a localized template
elaborated from the supplied problem id and an optional elaboration id
and return the resulting message.
|
java.lang.String |
getLocalizedMessage(int problemId,
java.lang.String[] messageArguments) |
CategorizedProblem createProblem(char[] originatingFileName, int problemId, java.lang.String[] problemArguments, java.lang.String[] messageArguments, int severity, int startPosition, int endPosition, int lineNumber, int columnNumber)
CategorizedProblem createProblem(char[] originatingFileName, int problemId, java.lang.String[] problemArguments, int elaborationId, java.lang.String[] messageArguments, int severity, int startPosition, int endPosition, int lineNumber, int columnNumber)
originatingFileName - the name of the file from which the problem is originatedproblemId - the problem idproblemArguments - the fully qualified arguments recorded inside the problemelaborationId - the message elaboration id (0 for problems that have no message elaboration)messageArguments - the arguments needed to set the error message (shorter names than problemArguments ones)severity - the severity of the problemstartPosition - the start position of the problemendPosition - the end position of the problemlineNumber - the line on which the problem occurredjava.util.Locale getLocale()
java.lang.String getLocalizedMessage(int problemId,
java.lang.String[] messageArguments)
java.lang.String getLocalizedMessage(int problemId,
int elaborationId,
java.lang.String[] messageArguments)
problemId - the problem id taken from
IProblem constantselaborationId - 0 if the considered problem has no elaboration, a
valid elaboration id elsemessageArguments - the arguments to inject into the template