T - public interface MigrationReport<T>
| Modifier and Type | Interface and Description |
|---|---|
static class |
MigrationReport.Level
Represents the severity of a report entry.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addProcessedElements(int processedElements)
Adds the passed value to the counter of processed elements.
|
List<T> |
getReportEntries()
Returns the report entries.
|
void |
initialize(ProjectType projectType,
String projectName)
Sets some basic metadata about the project to be populated into the report.
|
void |
report(MigrationReport.Level level,
org.jdom2.Element element,
org.jdom2.Element elementToComment,
String message,
String... documentationLinks)
Deprecated.
Use
#report(String, Element, Element) instead. |
void |
report(String entryKey,
org.jdom2.Element element,
org.jdom2.Element elementToComment,
String... messageParams)
Adds the report entry to the target report, and as a comment on the element being processed.
|
void initialize(ProjectType projectType, String projectName)
projectType - projectName - void report(String entryKey, org.jdom2.Element element, org.jdom2.Element elementToComment, String... messageParams)
entryKey - the key of the report entry to generate, as defined in a report.yaml file.element - the XML element that generated this report entry.elementToComment - the XML element inside of which the report entry will be.messageParams - the strings to use to replace value placeholders in report entry message.@Deprecated void report(MigrationReport.Level level, org.jdom2.Element element, org.jdom2.Element elementToComment, String message, String... documentationLinks)
#report(String, Element, Element) instead.level - element - the XML element that generated this report entry.elementToComment - the XML element inside of which the report entry will be.message - documentationLinks - the links to the Mule documentation that contain the explanation of any changes needed in the
migrated app.void addProcessedElements(int processedElements)
This value is later used as the denominator to calculate the migration ratio.
processedElements - Copyright © 2018 MuleSoft Inc. All rights reserved.