public class PlainTextProgressMessageFormatter extends Object implements ProgressMessageFormatter
Constructor and Description |
---|
PlainTextProgressMessageFormatter() |
Modifier and Type | Method and Description |
---|---|
LocalizableMessage |
getFormattedAfterUrlClick(String url,
LocalizableMessage lastText)
Returns the log formatted representation after the user has clicked on a
url.
|
LocalizableMessage |
getFormattedDone()
Returns the formatted representation of the 'Done' text string.
|
LocalizableMessage |
getFormattedError()
Returns the formatted representation of the 'Error' text string.
|
LocalizableMessage |
getFormattedError(LocalizableMessage text,
boolean applyMargin)
Returns the formatted representation of an error for a given text.
|
LocalizableMessage |
getFormattedError(Throwable t,
boolean applyMargin)
Returns the formatted representation of an error message for a given
throwable.
|
LocalizableMessage |
getFormattedLog(LocalizableMessage text)
Returns the formatted representation of a log message for a given text.
|
LocalizableMessage |
getFormattedLogError(LocalizableMessage text)
Returns the formatted representation of a log error message for a given
text.
|
LocalizableMessage |
getFormattedPoint()
Returns the formatted representation of a point.
|
LocalizableMessage |
getFormattedProgress(LocalizableMessage text)
Returns the formatted representation of a progress message for a given
text.
|
LocalizableMessage |
getFormattedSuccess(LocalizableMessage text)
Returns the formatted representation of a success message for a given text.
|
LocalizableMessage |
getFormattedSummary(LocalizableMessage text)
Returns the formatted representation of the text that is the summary of the
installation process (the one that goes in the UI next to the progress
bar).
|
LocalizableMessage |
getFormattedText(LocalizableMessage text)
Returns the formatted representation of the text without providing any
style.
|
LocalizableMessage |
getFormattedWarning(LocalizableMessage text,
boolean applyMargin)
Returns the formatted representation of a warning for a given text.
|
LocalizableMessage |
getFormattedWithPoints(LocalizableMessage text)
Returns the formatted representation of the argument text to which we add
points.
|
LocalizableMessage |
getLineBreak()
Returns the line break formatted.
|
LocalizableMessage |
getSpace()
Returns the formatted representation of a space.
|
LocalizableMessage |
getTab()
Returns the tab formatted.
|
LocalizableMessage |
getTaskSeparator()
Returns the task separator formatted.
|
public PlainTextProgressMessageFormatter()
public LocalizableMessage getFormattedText(LocalizableMessage text)
ProgressMessageFormatter
getFormattedText
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedSummary(LocalizableMessage text)
ProgressMessageFormatter
getFormattedSummary
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(LocalizableMessage text, boolean applyMargin)
ProgressMessageFormatter
getFormattedError
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationapplyMargin
- specifies whether we apply a margin or not to the
resulting formatted text.public LocalizableMessage getFormattedWarning(LocalizableMessage text, boolean applyMargin)
ProgressMessageFormatter
getFormattedWarning
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationapplyMargin
- specifies whether we apply a margin or not to the
resulting formatted text.public LocalizableMessage getFormattedSuccess(LocalizableMessage text)
ProgressMessageFormatter
getFormattedSuccess
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedLogError(LocalizableMessage text)
ProgressMessageFormatter
getFormattedLogError
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedLog(LocalizableMessage text)
ProgressMessageFormatter
getFormattedLog
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedDone()
ProgressMessageFormatter
getFormattedDone
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedError()
ProgressMessageFormatter
getFormattedError
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedWithPoints(LocalizableMessage text)
ProgressMessageFormatter
getFormattedWithPoints
in interface ProgressMessageFormatter
text
- the String to which add points.public LocalizableMessage getFormattedPoint()
ProgressMessageFormatter
getFormattedPoint
in interface ProgressMessageFormatter
public LocalizableMessage getSpace()
ProgressMessageFormatter
getSpace
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedProgress(LocalizableMessage text)
ProgressMessageFormatter
getFormattedProgress
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(Throwable t, boolean applyMargin)
ProgressMessageFormatter
true
.getFormattedError
in interface ProgressMessageFormatter
t
- the throwable.applyMargin
- specifies whether we apply a margin or not to the
resulting formatted text.public LocalizableMessage getLineBreak()
ProgressMessageFormatter
getLineBreak
in interface ProgressMessageFormatter
public LocalizableMessage getTab()
ProgressMessageFormatter
getTab
in interface ProgressMessageFormatter
public LocalizableMessage getTaskSeparator()
ProgressMessageFormatter
getTaskSeparator
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedAfterUrlClick(String url, LocalizableMessage lastText)
ProgressMessageFormatter
getFormattedAfterUrlClick
in interface ProgressMessageFormatter
url
- that has been clickedlastText
- the formatted representation of the progress log before
clicking on the url.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.