Package com.epimorphics.tasks
Class ProgressMessage
- java.lang.Object
-
- com.epimorphics.tasks.ProgressMessage
-
- All Implemented Interfaces:
JSONWritable
public class ProgressMessage extends Object implements JSONWritable
Simple progress message format which can be serialized to JSON.- Author:
- Dave Reynolds
-
-
Field Summary
Fields Modifier and Type Field Description static StringLINE_NUMBER_FIELDstatic StringMESSAGE_FIELDprotected static intNULL_LINE_NUMBERstatic StringRAW_MESSAGE_FIELDstatic StringTIMESTAMP_FIELDstatic StringTYPE_FIELD
-
Constructor Summary
Constructors Constructor Description ProgressMessage(String message)ProgressMessage(String message, int lineNumber)ProgressMessage(String message, int lineNumber, long timestamp)ProgressMessage(String message, int lineNumber, long timestamp, String style)ProgressMessage(String message, int lineNumber, String style)ProgressMessage(String message, String style)ProgressMessage(org.apache.jena.atlas.json.JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringcleanMessage()intgetLineNumber()StringgetMessage()StringgetTimelabel()longgetTimestamp()StringgetType()StringtoString()voidwriteTo(JSFullWriter out)
-
-
-
Field Detail
-
MESSAGE_FIELD
public static final String MESSAGE_FIELD
- See Also:
- Constant Field Values
-
RAW_MESSAGE_FIELD
public static final String RAW_MESSAGE_FIELD
- See Also:
- Constant Field Values
-
LINE_NUMBER_FIELD
public static final String LINE_NUMBER_FIELD
- See Also:
- Constant Field Values
-
TIMESTAMP_FIELD
public static final String TIMESTAMP_FIELD
- See Also:
- Constant Field Values
-
TYPE_FIELD
public static final String TYPE_FIELD
- See Also:
- Constant Field Values
-
NULL_LINE_NUMBER
protected static final int NULL_LINE_NUMBER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ProgressMessage
public ProgressMessage(String message)
-
ProgressMessage
public ProgressMessage(String message, int lineNumber)
-
ProgressMessage
public ProgressMessage(String message, int lineNumber, long timestamp)
-
ProgressMessage
public ProgressMessage(String message, int lineNumber, long timestamp, String style)
-
ProgressMessage
public ProgressMessage(org.apache.jena.atlas.json.JsonObject json)
-
-
Method Detail
-
getMessage
public String getMessage()
-
getTimestamp
public long getTimestamp()
-
getTimelabel
public String getTimelabel()
-
getLineNumber
public int getLineNumber()
-
getType
public String getType()
-
cleanMessage
protected String cleanMessage()
-
writeTo
public void writeTo(JSFullWriter out)
- Specified by:
writeToin interfaceJSONWritable
-
-