| Constructor and Description |
|---|
ProblemsReporter(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
ProblemsReporter |
addError(Problem problem)
Adds an error
|
ProblemsReporter |
addWarning(Problem problem)
Adds a warning
|
List<Problem> |
getErrors() |
org.mule.runtime.api.meta.model.ExtensionModel |
getExtensionModel() |
List<Problem> |
getWarnings() |
String |
getWarningsAsString() |
boolean |
hasErrors() |
boolean |
hasWarnings() |
String |
toString() |
public ProblemsReporter(org.mule.runtime.api.meta.model.ExtensionModel extensionModel)
extensionModel - the model which is being validatedpublic ProblemsReporter addError(Problem problem)
problem - the problem foundthis reporterpublic ProblemsReporter addWarning(Problem problem)
problem - the warning foundthis reporterpublic boolean hasErrors()
public boolean hasWarnings()
public org.mule.runtime.api.meta.model.ExtensionModel getExtensionModel()
ExtensionModel that is being/was validatedpublic String getWarningsAsString()
Copyright © 2017 MuleSoft, Inc.. All rights reserved.