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 Summary
Modifier and TypeMethodDescriptiondefault MessageBuilder
a
(char[] value) Append content to the message buffer.default MessageBuilder
a
(char[] value, int offset, int len) Append content to the message buffer.default MessageBuilder
a
(CharSequence value) Append content to the message buffer.default MessageBuilder
a
(CharSequence value, int start, int end) Append content to the message buffer.default MessageBuilder
Append content to the message buffer.append
(char c) append
(CharSequence cs) append
(CharSequence cs, int start, int end) build()
Return the built message.default MessageBuilder
Append message content in debug style.default MessageBuilder
Append message content in error style.default MessageBuilder
Append message content in failure style.default MessageBuilder
Append formatted content to the buffer.default MessageBuilder
Append message content in info style.default MessageBuilder
Append message content in mojo style.default MessageBuilder
newline()
Append newline to the message buffer.default MessageBuilder
Append message content in project style.setLength
(int length) Set the buffer length.default MessageBuilder
Append message content in strong style.default MessageBuilder
default MessageBuilder
Append message content in success style.default MessageBuilder
Append message content in trace style.default MessageBuilder
Append message content in warning style.
-
Method Details
-
trace
Append message content in trace style. By default, bold magenta- Parameters:
message
- the message to append- Returns:
- the current builder
-
debug
Append message content in debug style. By default, bold cyan- Parameters:
message
- the message to append- Returns:
- the current builder
-
info
Append message content in info style. By default, bold blue- Parameters:
message
- the message to append- Returns:
- the current builder
-
warning
Append message content in warning style. By default, bold yellow- Parameters:
message
- the message to append- Returns:
- the current builder
-
error
Append message content in error style. By default, bold red- Parameters:
message
- the message to append- Returns:
- the current builder
-
success
Append message content in success style. By default, bold green- Parameters:
message
- the message to append- Returns:
- the current builder
-
failure
Append message content in failure style. By default, bold red- Parameters:
message
- the message to append- Returns:
- the current builder
-
strong
Append message content in strong style. By default, bold- Parameters:
message
- the message to append- Returns:
- the current builder
-
mojo
Append message content in mojo style. By default, green- Parameters:
message
- the message to append- Returns:
- the current builder
-
project
Append message content in project style. By default, cyan- Parameters:
message
- the message to append- Returns:
- the current builder
-
style
-
style
-
resetStyle
MessageBuilder resetStyle() -
append
- Specified by:
append
in interfaceAppendable
-
append
- Specified by:
append
in interfaceAppendable
-
append
- Specified by:
append
in interfaceAppendable
-
a
Append content to the message buffer.- Parameters:
value
- the content to appendoffset
- the index of the firstchar
to appendlen
- the number ofchar
s to append- Returns:
- the current builder
-
a
Append content to the message buffer.- Parameters:
value
- the content to append- Returns:
- the current builder
-
a
Append content to the message buffer.- Parameters:
value
- the content to appendstart
- the starting index of the subsequence to be appendedend
- the end index of the subsequence to be appended- Returns:
- the current builder
-
a
Append content to the message buffer.- Parameters:
value
- the content to append- Returns:
- the current builder
-
a
Append content to the message buffer.- Parameters:
value
- the content to append- Returns:
- the current builder
-
newline
Append newline to the message buffer.- Returns:
- the current builder
-
format
Append formatted content to the buffer.- Parameters:
pattern
- a format stringargs
- arguments referenced by the format specifiers in the format string- Returns:
- the current builder
- See Also:
-
setLength
Set the buffer length.- Parameters:
length
- the new length- Returns:
- the current builder
-
build
Return the built message.- Returns:
- the message
-