Package org.revapi.maven
Class AbstractSuggestionsBuilder
- java.lang.Object
-
- org.revapi.maven.AbstractSuggestionsBuilder
-
- All Implemented Interfaces:
BuildTimeReporter.SuggestionsBuilder
- Direct Known Subclasses:
JsonSuggestionsBuilder,XmlSuggestionsBuilder
public abstract class AbstractSuggestionsBuilder extends Object implements BuildTimeReporter.SuggestionsBuilder
A base class toBuildTimeReporter.SuggestionsBuilders that abstracts the walking of the differences and lets the subclasses only implement simple methods to output the suggestions in the given format.
-
-
Constructor Summary
Constructors Constructor Description AbstractSuggestionsBuilder()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidappendDifferenceField(StringBuilder sb, String key, Object value)protected abstract voidappendDifferenceFieldSeparator(StringBuilder sb)Stringbuild(List<org.revapi.Report> allProblems, BuildTimeReporter.SuggestionBuilderContext context)protected abstract voidendDifference(StringBuilder sb)protected abstract voidendOptionalAttachmentsInComment(StringBuilder sb)protected abstract voidepilogue(StringBuilder sb)protected abstract voidprologue(StringBuilder sb)protected abstract voidstartDifference(StringBuilder sb)protected abstract voidstartOptionalAttachmentsInComment(StringBuilder sb, String text)
-
-
-
Method Detail
-
appendDifferenceField
protected abstract void appendDifferenceField(StringBuilder sb, String key, Object value)
-
appendDifferenceFieldSeparator
protected abstract void appendDifferenceFieldSeparator(StringBuilder sb)
-
prologue
protected abstract void prologue(StringBuilder sb)
-
startDifference
protected abstract void startDifference(StringBuilder sb)
-
endDifference
protected abstract void endDifference(StringBuilder sb)
-
startOptionalAttachmentsInComment
protected abstract void startOptionalAttachmentsInComment(StringBuilder sb, String text)
-
endOptionalAttachmentsInComment
protected abstract void endOptionalAttachmentsInComment(StringBuilder sb)
-
epilogue
protected abstract void epilogue(StringBuilder sb)
-
build
public String build(List<org.revapi.Report> allProblems, BuildTimeReporter.SuggestionBuilderContext context)
- Specified by:
buildin interfaceBuildTimeReporter.SuggestionsBuilder
-
-