Package org.opends.quicksetup.util
Class PlainTextProgressMessageFormatter
- java.lang.Object
-
- org.opends.quicksetup.util.PlainTextProgressMessageFormatter
-
- All Implemented Interfaces:
ProgressMessageFormatter
public class PlainTextProgressMessageFormatter extends Object implements ProgressMessageFormatter
This is an implementation of the ProgressMessageFormatter class that provides format in plain text.
-
-
Constructor Summary
Constructors Constructor Description PlainTextProgressMessageFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.forgerock.i18n.LocalizableMessagegetFormattedAfterUrlClick(String url, org.forgerock.i18n.LocalizableMessage lastText)Returns the log formatted representation after the user has clicked on a url.org.forgerock.i18n.LocalizableMessagegetFormattedDone()Returns the formatted representation of the 'Done' text string.org.forgerock.i18n.LocalizableMessagegetFormattedError()Returns the formatted representation of the 'Error' text string.org.forgerock.i18n.LocalizableMessagegetFormattedError(Throwable t, boolean applyMargin)Returns the formatted representation of an error message for a given throwable.org.forgerock.i18n.LocalizableMessagegetFormattedError(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Returns the formatted representation of an error for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedLog(org.forgerock.i18n.LocalizableMessage text)Returns the formatted representation of a log message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedLogError(org.forgerock.i18n.LocalizableMessage text)Returns the formatted representation of a log error message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedPoint()Returns the formatted representation of a point.org.forgerock.i18n.LocalizableMessagegetFormattedProgress(org.forgerock.i18n.LocalizableMessage text)Returns the formatted representation of a progress message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedSuccess(org.forgerock.i18n.LocalizableMessage text)Returns the formatted representation of a success message for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedSummary(org.forgerock.i18n.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).org.forgerock.i18n.LocalizableMessagegetFormattedText(org.forgerock.i18n.LocalizableMessage text)Returns the formatted representation of the text without providing any style.org.forgerock.i18n.LocalizableMessagegetFormattedWarning(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Returns the formatted representation of a warning for a given text.org.forgerock.i18n.LocalizableMessagegetFormattedWithPoints(org.forgerock.i18n.LocalizableMessage text)Returns the formatted representation of the argument text to which we add points.org.forgerock.i18n.LocalizableMessagegetLineBreak()Returns the line break formatted.org.forgerock.i18n.LocalizableMessagegetSpace()Returns the formatted representation of a space.org.forgerock.i18n.LocalizableMessagegetTab()Returns the tab formatted.org.forgerock.i18n.LocalizableMessagegetTaskSeparator()Returns the task separator formatted.
-
-
-
Method Detail
-
getFormattedText
public org.forgerock.i18n.LocalizableMessage getFormattedText(org.forgerock.i18n.LocalizableMessage text)
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of the text without providing any style.- Specified by:
getFormattedTextin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the formatted representation for the given text.
-
getFormattedSummary
public org.forgerock.i18n.LocalizableMessage getFormattedSummary(org.forgerock.i18n.LocalizableMessage text)
Description copied from interface:ProgressMessageFormatterReturns 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).- Specified by:
getFormattedSummaryin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the formatted representation of a summary for the given text.
-
getFormattedError
public org.forgerock.i18n.LocalizableMessage getFormattedError(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Description copied from interface:ProgressMessageFormatterReturns the formatted representation of an error for a given text.- Specified by:
getFormattedErrorin interfaceProgressMessageFormatter- Parameters:
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.- Returns:
- the formatted representation of an error for the given text.
-
getFormattedWarning
public org.forgerock.i18n.LocalizableMessage getFormattedWarning(org.forgerock.i18n.LocalizableMessage text, boolean applyMargin)Description copied from interface:ProgressMessageFormatterReturns the formatted representation of a warning for a given text.- Specified by:
getFormattedWarningin interfaceProgressMessageFormatter- Parameters:
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.- Returns:
- the formatted representation of a warning for the given text.
-
getFormattedSuccess
public org.forgerock.i18n.LocalizableMessage getFormattedSuccess(org.forgerock.i18n.LocalizableMessage text)
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of a success message for a given text.- Specified by:
getFormattedSuccessin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the formatted representation of a success message for the given text.
-
getFormattedLogError
public org.forgerock.i18n.LocalizableMessage getFormattedLogError(org.forgerock.i18n.LocalizableMessage text)
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of a log error message for a given text.- Specified by:
getFormattedLogErrorin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the formatted representation of a log error message for the given text.
-
getFormattedLog
public org.forgerock.i18n.LocalizableMessage getFormattedLog(org.forgerock.i18n.LocalizableMessage text)
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of a log message for a given text.- Specified by:
getFormattedLogin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the formatted representation of a log message for the given text.
-
getFormattedDone
public org.forgerock.i18n.LocalizableMessage getFormattedDone()
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of the 'Done' text string.- Specified by:
getFormattedDonein interfaceProgressMessageFormatter- Returns:
- the formatted representation of the 'Done' text string.
-
getFormattedError
public org.forgerock.i18n.LocalizableMessage getFormattedError()
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of the 'Error' text string.- Specified by:
getFormattedErrorin interfaceProgressMessageFormatter- Returns:
- the formatted representation of the 'Error' text string.
-
getFormattedWithPoints
public org.forgerock.i18n.LocalizableMessage getFormattedWithPoints(org.forgerock.i18n.LocalizableMessage text)
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of the argument text to which we add points. For instance if we pass as argument 'Configuring Server' the return value will be 'Configuring Server .....'.- Specified by:
getFormattedWithPointsin interfaceProgressMessageFormatter- Parameters:
text- the String to which add points.- Returns:
- the formatted representation of the '.....' text string.
-
getFormattedPoint
public org.forgerock.i18n.LocalizableMessage getFormattedPoint()
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of a point.- Specified by:
getFormattedPointin interfaceProgressMessageFormatter- Returns:
- the formatted representation of the '.' text string.
-
getSpace
public org.forgerock.i18n.LocalizableMessage getSpace()
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of a space.- Specified by:
getSpacein interfaceProgressMessageFormatter- Returns:
- the formatted representation of the ' ' text string.
-
getFormattedProgress
public org.forgerock.i18n.LocalizableMessage getFormattedProgress(org.forgerock.i18n.LocalizableMessage text)
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of a progress message for a given text.- Specified by:
getFormattedProgressin interfaceProgressMessageFormatter- Parameters:
text- the source text from which we want to get the formatted representation- Returns:
- the formatted representation of a progress message for the given text.
-
getFormattedError
public org.forgerock.i18n.LocalizableMessage getFormattedError(Throwable t, boolean applyMargin)
Description copied from interface:ProgressMessageFormatterReturns the formatted representation of an error message for a given throwable. This method applies a margin if the applyMargin parameter istrue.- Specified by:
getFormattedErrorin interfaceProgressMessageFormatter- Parameters:
t- the throwable.applyMargin- specifies whether we apply a margin or not to the resulting formatted text.- Returns:
- the formatted representation of an error message for the given exception.
-
getLineBreak
public org.forgerock.i18n.LocalizableMessage getLineBreak()
Description copied from interface:ProgressMessageFormatterReturns the line break formatted.- Specified by:
getLineBreakin interfaceProgressMessageFormatter- Returns:
- the line break formatted.
-
getTab
public org.forgerock.i18n.LocalizableMessage getTab()
Description copied from interface:ProgressMessageFormatterReturns the tab formatted.- Specified by:
getTabin interfaceProgressMessageFormatter- Returns:
- the tab formatted.
-
getTaskSeparator
public org.forgerock.i18n.LocalizableMessage getTaskSeparator()
Description copied from interface:ProgressMessageFormatterReturns the task separator formatted.- Specified by:
getTaskSeparatorin interfaceProgressMessageFormatter- Returns:
- the task separator formatted.
-
getFormattedAfterUrlClick
public org.forgerock.i18n.LocalizableMessage getFormattedAfterUrlClick(String url, org.forgerock.i18n.LocalizableMessage lastText)
Description copied from interface:ProgressMessageFormatterReturns the log formatted representation after the user has clicked on a url.- Specified by:
getFormattedAfterUrlClickin interfaceProgressMessageFormatter- Parameters:
url- that has been clickedlastText- the formatted representation of the progress log before clicking on the url.- Returns:
- the formatted progress log representation after the user has clicked on a url.
-
-