|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
Represents a message that can be sent to a log. A message comprises the kind that describes its severity and the text that contains the message description.
| Field Summary | |
static int |
DEBUG
Represents a message containing debug data. |
static int |
ERROR
Represents a message containing error notification. |
static int |
FATAL
Represents a message containing fatal error notification. |
static int |
INFO
Represents a message containing code inspector's output. |
| Method Summary | |
IAnalyzerDescriptor |
getAnalyzer()
Returns the descriptor of the code analyzer that produced this message. |
AstObject |
getAstObject()
Returns the AST object for which this message was produced. |
int |
getEndColumn()
Returns the end column number of the the element for which this message was produced. |
int |
getEndLine()
Returns the end line number of the the element for which this message was produced. |
java.lang.String |
getExplainMessage()
Returns the formatted explain text of this message in HTML format. |
IExtension |
getExtension()
Returns the descriptor of the Sapient extension that produced this message. |
java.lang.String |
getFileName()
Returns the name of the source file containing the element for which this message was produced. |
java.lang.String |
getMessage()
Returns the unformatted text of this message. |
java.lang.String |
getMessage(boolean isXML)
Returns the formatted text of this message in XML or plain text format. |
java.lang.Object |
getProperty(java.lang.String id)
Returns the value of the property with the given name. |
int |
getSeverity()
Returns the severity of this message encoded as an integer. |
int |
getStartColumn()
Returns the start column number of the the element for which this message was produced. |
int |
getStartLine()
Returns the start line number of the the element for which this message was produced. |
void |
setProperty(java.lang.String id,
java.lang.Object value)
Sets the value of the property. |
| Field Detail |
public static final int DEBUG
public static final int ERROR
public static final int FATAL
public static final int INFO
| Method Detail |
public IAnalyzerDescriptor getAnalyzer()
null if this message is not associated with any
code analyzer.public AstObject getAstObject()
null if this message is not associated with
any AST object.public int getEndColumn()
0)
if this message is not associated with any source fragment.public int getEndLine()
0)
if this message is not associated with any source fragment.public java.lang.String getExplainMessage()
public IExtension getExtension()
null if this message is not associated
with any extension.public java.lang.String getFileName()
"") if this message is not associated with
any source file.public java.lang.String getMessage()
public java.lang.String getMessage(boolean isXML)
isXML - when set to true, the returned text is XML
formatted.public java.lang.Object getProperty(java.lang.String id)
public int getSeverity()
public int getStartColumn()
0)
if this message is not associated with any source fragment.public int getStartLine()
0)
if this message is not associated with any source fragment.
public void setProperty(java.lang.String id,
java.lang.Object value)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||