Package org.apache.maven.api.services
Interface MessageBuilder
- All Superinterfaces:
- Appendable
- All Known Implementing Classes:
- DefaultMessageBuilder
Message builder that supports configurable styling.
- Since:
- 4.0.0
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptiondefault MessageBuildera(char[] value) Append content to the message buffer.default MessageBuildera(char[] value, int offset, int len) Append content to the message buffer.default MessageBuildera(CharSequence value) Append content to the message buffer.default MessageBuildera(CharSequence value, int start, int end) Append content to the message buffer.default MessageBuilderAppend content to the message buffer.append(char c) append(CharSequence cs) append(CharSequence cs, int start, int end) build()Return the built message.default MessageBuilderAppend message content in debug style.default MessageBuilderAppend message content in error style.default MessageBuilderAppend message content in failure style.default MessageBuilderAppend formatted content to the buffer.default MessageBuilderAppend message content in info style.default MessageBuilderAppend message content in mojo style.default MessageBuildernewline()Append newline to the message buffer.default MessageBuilderAppend message content in project style.setLength(int length) Set the buffer length.default MessageBuilderAppend message content in strong style.default MessageBuilderdefault MessageBuilderAppend message content in success style.default MessageBuilderAppend message content in trace style.default MessageBuilderAppend message content in warning style.
- 
Method Details- 
traceAppend message content in trace style. By default, bold magenta- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
debugAppend message content in debug style. By default, bold cyan- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
infoAppend message content in info style. By default, bold blue- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
warningAppend message content in warning style. By default, bold yellow- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
errorAppend message content in error style. By default, bold red- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
successAppend message content in success style. By default, bold green- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
failureAppend message content in failure style. By default, bold red- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
strongAppend message content in strong style. By default, bold- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
mojoAppend message content in mojo style. By default, green- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
projectAppend message content in project style. By default, cyan- Parameters:
- message- the message to append
- Returns:
- the current builder
 
- 
style
- 
style
- 
resetStyleMessageBuilder resetStyle()
- 
append- Specified by:
- appendin interface- Appendable
 
- 
append- Specified by:
- appendin interface- Appendable
 
- 
append- Specified by:
- appendin interface- Appendable
 
- 
aAppend content to the message buffer.- Parameters:
- value- the content to append
- offset- the index of the first- charto append
- len- the number of- chars to append
- Returns:
- the current builder
 
- 
aAppend content to the message buffer.- Parameters:
- value- the content to append
- Returns:
- the current builder
 
- 
aAppend content to the message buffer.- Parameters:
- value- the content to append
- start- the starting index of the subsequence to be appended
- end- the end index of the subsequence to be appended
- Returns:
- the current builder
 
- 
aAppend content to the message buffer.- Parameters:
- value- the content to append
- Returns:
- the current builder
 
- 
aAppend content to the message buffer.- Parameters:
- value- the content to append
- Returns:
- the current builder
 
- 
newlineAppend newline to the message buffer.- Returns:
- the current builder
 
- 
formatAppend formatted content to the buffer.- Parameters:
- pattern- a format string
- args- arguments referenced by the format specifiers in the format string
- Returns:
- the current builder
- See Also:
 
- 
setLengthSet the buffer length.- Parameters:
- length- the new length
- Returns:
- the current builder
 
- 
buildReturn the built message.- Returns:
- the message
 
 
-