Package adams.gui.tools
Class ConsoleOutputAnalyzerPanel.ConsoleOutputEntry
- java.lang.Object
-
- adams.gui.tools.ConsoleOutputAnalyzerPanel.ConsoleOutputEntry
-
- All Implemented Interfaces:
Serializable
,Comparable<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry>
- Enclosing class:
- ConsoleOutputAnalyzerPanel
public static class ConsoleOutputAnalyzerPanel.ConsoleOutputEntry extends Object implements Serializable, Comparable<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry>
Represents a single line from the console output.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected int
m_LineNo
the line number of this entry in the output.protected String
m_Origin
the origin, e.g., path to actor.protected String
m_Output
the actual output.protected String
m_Raw
the raw content.protected String
m_Timestamp
the timestamp.protected String
m_Type
the type of output (ERR/OUT/DEBUG).static String
ORIGIN_UNKNOWN
unknown origin.
-
Constructor Summary
Constructors Constructor Description ConsoleOutputEntry(int lineNo, String raw)
Initializes the entry with the given line from the console output.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ConsoleOutputAnalyzerPanel.ConsoleOutputEntry o)
Compares this object with the specified object for order.int
getLineNo()
Returns the line number of this entry.String
getOrigin()
Returns the origin of the output.String
getOutput()
Returns the actual output.String
getRaw()
Returns the raw content.String
getTimestamp()
Returns the timestamp.String
getType()
Returns the output type (ERR/OUT/DEBUG).protected void
parse()
Parses the raw content.String
toString()
Returns the raw content.
-
-
-
Field Detail
-
ORIGIN_UNKNOWN
public static final String ORIGIN_UNKNOWN
unknown origin.- See Also:
- Constant Field Values
-
m_LineNo
protected int m_LineNo
the line number of this entry in the output.
-
m_Raw
protected String m_Raw
the raw content.
-
m_Origin
protected String m_Origin
the origin, e.g., path to actor.
-
m_Type
protected String m_Type
the type of output (ERR/OUT/DEBUG).
-
m_Timestamp
protected String m_Timestamp
the timestamp.
-
m_Output
protected String m_Output
the actual output.
-
-
Constructor Detail
-
ConsoleOutputEntry
public ConsoleOutputEntry(int lineNo, String raw)
Initializes the entry with the given line from the console output.- Parameters:
lineNo
- the line numberraw
- the content to parse
-
-
Method Detail
-
parse
protected void parse()
Parses the raw content.
-
getLineNo
public int getLineNo()
Returns the line number of this entry.- Returns:
- the line number
-
getRaw
public String getRaw()
Returns the raw content.- Returns:
- the content
-
getOrigin
public String getOrigin()
Returns the origin of the output.- Returns:
- the origin
-
getType
public String getType()
Returns the output type (ERR/OUT/DEBUG).- Returns:
- the type
-
getTimestamp
public String getTimestamp()
Returns the timestamp.- Returns:
- the timestamp
-
getOutput
public String getOutput()
Returns the actual output.- Returns:
- the output
-
compareTo
public int compareTo(ConsoleOutputAnalyzerPanel.ConsoleOutputEntry o)
Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.- Specified by:
compareTo
in interfaceComparable<ConsoleOutputAnalyzerPanel.ConsoleOutputEntry>
- Parameters:
o
- the object to be compared.- Returns:
- a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.
-
-