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 ProgressMessageFormatter
text
- the source text from which we want to get the text
representationpublic LocalizableMessage getFormattedSummary(LocalizableMessage text)
getFormattedSummary
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(LocalizableMessage text, boolean applyMargin)
getFormattedError
in interface ProgressMessageFormatter
text
- 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 ProgressMessageFormatter
text
- 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 ProgressMessageFormatter
text
- the source text from which we want to get the plain text
representationpublic LocalizableMessage getFormattedLogError(LocalizableMessage text)
getFormattedLogError
in interface ProgressMessageFormatter
text
- the source text from which we want to get the plain text
representationpublic LocalizableMessage getFormattedLog(LocalizableMessage text)
getFormattedLog
in interface ProgressMessageFormatter
text
- the source text from which we want to get the plain text
representationpublic LocalizableMessage getFormattedDone()
getFormattedDone
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedError()
getFormattedError
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedWithPoints(LocalizableMessage text)
getFormattedWithPoints
in interface ProgressMessageFormatter
text
- the String to which add points.public LocalizableMessage getFormattedPoint()
getFormattedPoint
in interface ProgressMessageFormatter
public LocalizableMessage getSpace()
getSpace
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedProgress(LocalizableMessage text)
getFormattedProgress
in interface ProgressMessageFormatter
text
- the source text from which we want to get the formatted
representationpublic LocalizableMessage getFormattedError(Throwable t, boolean applyMargin)
true
.getFormattedError
in interface ProgressMessageFormatter
t
- the exception.applyMargin
- specifies whether we apply a margin or not to the
resulting plain text.public LocalizableMessage getLineBreak()
getLineBreak
in interface ProgressMessageFormatter
public LocalizableMessage getTab()
getTab
in interface ProgressMessageFormatter
public LocalizableMessage getTaskSeparator()
getTaskSeparator
in interface ProgressMessageFormatter
public LocalizableMessage getFormattedAfterUrlClick(String url, LocalizableMessage lastText)
getFormattedAfterUrlClick
in interface ProgressMessageFormatter
url
- that has been clickedlastText
- the formatted representation of the progress log before
clicking on the url.Copyright © 2010-2016 ForgeRock AS. All Rights Reserved.