Class TimestampFormat
java.lang.Object
hudson.plugins.timestamper.format.TimestampFormat
- Direct Known Subclasses:
ElapsedTimestampFormat
,EmptyTimestampFormat
,SystemTimestampFormat
Format for displaying time-stamps.
- Author:
- Steven G. Brown
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String
Format the given time-stamp as a string.abstract String
Get the URL for displaying the plain text console and time-stamps in this format.void
markup
(MarkupText text, Timestamp timestamp) Format the given time-stamp and add it to the mark-up text.abstract void
validate()
Validates that the given timestamp format can be applied safely.
-
Constructor Details
-
TimestampFormat
public TimestampFormat()
-
-
Method Details
-
apply
Format the given time-stamp as a string. -
validate
Validates that the given timestamp format can be applied safely.- Throws:
FormatParseException
- If the timestamp format cannot be parsedInvalidHtmlException
- If the timestamp format contains invalid HTML
-
markup
Format the given time-stamp and add it to the mark-up text.- Parameters:
text
- the mark-up texttimestamp
- the time-stamp to format
-
getPlainTextUrl
Get the URL for displaying the plain text console and time-stamps in this format.- Returns:
- the plain text URL
-