public class MibLoaderLog.LogEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ERROR
The error log entry type constant.
|
static int |
INTERNAL_ERROR
The internal error log entry type constant.
|
static int |
WARNING
The warning log entry type constant.
|
Constructor and Description |
---|
MibLoaderLog.LogEntry(int type,
MibFileRef fileRef,
java.lang.String message)
Creates a new log entry.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnNumber()
Returns the column number.
|
java.io.File |
getFile()
Returns the file this entry applies to.
|
int |
getLineNumber()
Returns the line number.
|
java.lang.String |
getMessage()
Returns the log entry message.
|
int |
getType()
Returns the log entry type.
|
boolean |
isError()
Checks if this is an error log entry.
|
boolean |
isWarning()
Checks if this is a warning log entry.
|
java.lang.String |
readLine()
Reads the line from the referenced file.
|
public static final int INTERNAL_ERROR
public static final int ERROR
public static final int WARNING
public MibLoaderLog.LogEntry(int type, MibFileRef fileRef, java.lang.String message)
type
- the log entry typefileRef
- the log entry file referencemessage
- the log entry messagepublic boolean isError()
public boolean isWarning()
public int getType()
INTERNAL_ERROR
,
ERROR
,
WARNING
public java.io.File getFile()
public int getLineNumber()
public int getColumnNumber()
public java.lang.String getMessage()
public java.lang.String readLine()