public final class ValidationMessages extends Object
Modifier and Type | Method and Description |
---|---|
ValidationMessages |
addErrorText(String text) |
ValidationMessages |
addInfoText(String text) |
ValidationMessages |
addWarningText(String text) |
static ValidationMessages |
create() |
List<String> |
getErrors() |
List<String> |
getInfos() |
List<String> |
getWarnings() |
boolean |
hasErrors() |
boolean |
hasInfos() |
boolean |
hasWarnings() |
void |
log(Logger logger) |
void |
log(org.slf4j.Logger logger)
Deprecated.
replaced by
log(org.sonar.api.utils.log.Logger) since deprecation of slf4j in 5.1 |
String |
toString() |
public static ValidationMessages create()
public boolean hasErrors()
public ValidationMessages addErrorText(String text)
public List<String> getWarnings()
public boolean hasWarnings()
public ValidationMessages addWarningText(String text)
public boolean hasInfos()
public ValidationMessages addInfoText(String text)
@Deprecated public void log(org.slf4j.Logger logger)
log(org.sonar.api.utils.log.Logger)
since deprecation of slf4j in 5.1Copyright © 2009–2017 SonarSource. All rights reserved.