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 plain text representation of the 'Done' text string.
|
LocalizableMessage |
getFormattedError()
Returns the plain text representation of the 'Error' text string.
|
LocalizableMessage |
getFormattedError(LocalizableMessage text,
boolean applyMargin)
Returns the plain text representation of an error for a given text.
|
LocalizableMessage |
getFormattedError(Throwable t,
boolean applyMargin)
Returns the plain text representation of an error message for a given
throwable.
|
LocalizableMessage |
getFormattedLog(LocalizableMessage text)
Returns the plain text representation of a log message for a given text.
|
LocalizableMessage |
getFormattedLogError(LocalizableMessage text)
Returns the plain text 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 plain text representation of a success message for a given
text.
|
LocalizableMessage |
getFormattedSummary(LocalizableMessage text)
Returns the plain text 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 text representation of the text without providing any style.
|
LocalizableMessage |
getFormattedWarning(LocalizableMessage text,
boolean applyMargin)
Returns the plain text representation of a warning for a given text.
|
LocalizableMessage |
getFormattedWithPoints(LocalizableMessage text)
Returns the plain text representation of the argument text to which we add
points.
|
LocalizableMessage |
getLineBreak()
Returns the line break in plain text.
|
LocalizableMessage |
getSpace()
Returns the formatted representation of a space.
|
LocalizableMessage |
getTab()
Returns the tab in plain text.
|
LocalizableMessage |
getTaskSeparator()
Returns the task separator in plain text.
|
public PlainTextProgressMessageFormatter()
public LocalizableMessage getFormattedText(LocalizableMessage text)
getFormattedText in interface ProgressMessageFormattertext - the source text from which we want to get the text
representationpublic LocalizableMessage getFormattedSummary(LocalizableMessage text)
getFormattedSummary in interface ProgressMessageFormattertext - the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(LocalizableMessage text, boolean applyMargin)
getFormattedError in interface ProgressMessageFormattertext - the source text from which we want to get the plain text
representationapplyMargin - specifies whether we apply a margin or not to the
resulting formatted text.public LocalizableMessage getFormattedWarning(LocalizableMessage text, boolean applyMargin)
getFormattedWarning in interface ProgressMessageFormattertext - the source text from which we want to get the plain text
representationapplyMargin - specifies whether we apply a margin or not to the
resulting formatted text.public LocalizableMessage getFormattedSuccess(LocalizableMessage text)
getFormattedSuccess in interface ProgressMessageFormattertext - the source text from which we want to get the plain text
representationpublic LocalizableMessage getFormattedLogError(LocalizableMessage text)
getFormattedLogError in interface ProgressMessageFormattertext - the source text from which we want to get the plain text
representationpublic LocalizableMessage getFormattedLog(LocalizableMessage text)
getFormattedLog in interface ProgressMessageFormattertext - the source text from which we want to get the plain text
representationpublic LocalizableMessage getFormattedDone()
getFormattedDone in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedError()
getFormattedError in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedWithPoints(LocalizableMessage text)
getFormattedWithPoints in interface ProgressMessageFormattertext - the String to which add points.public LocalizableMessage getFormattedPoint()
getFormattedPoint in interface ProgressMessageFormatterpublic LocalizableMessage getSpace()
getSpace in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedProgress(LocalizableMessage text)
getFormattedProgress in interface ProgressMessageFormattertext - the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(Throwable t, boolean applyMargin)
true.getFormattedError in interface ProgressMessageFormattert - the exception.applyMargin - specifies whether we apply a margin or not to the
resulting plain text.public LocalizableMessage getLineBreak()
getLineBreak in interface ProgressMessageFormatterpublic LocalizableMessage getTab()
getTab in interface ProgressMessageFormatterpublic LocalizableMessage getTaskSeparator()
getTaskSeparator in interface ProgressMessageFormatterpublic LocalizableMessage getFormattedAfterUrlClick(String url, LocalizableMessage lastText)
getFormattedAfterUrlClick in interface ProgressMessageFormatterurl - that has been clickedlastText - the formatted representation of the progress log before
clicking on the url.Copyright © 2010-2015 ForgeRock AS. All Rights Reserved.