|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.togethersoft.sca.core.Message
| Fields inherited from interface com.togethersoft.sca.core.IMessage |
DEBUG, ERROR, FATAL, INFO |
| Constructor Summary | |
Message(int severity,
IExtension extension,
IAnalyzerDescriptor analyzer,
AstObject ast,
java.lang.String message,
java.lang.Object[] values)
|
|
Message(int severity,
java.lang.String message,
java.lang.Object[] values)
|
|
| 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 |
setMessage(java.lang.String message)
|
void |
setProperty(java.lang.String id,
java.lang.Object value)
Sets the value of the property. |
void |
setValues(java.lang.Object[] values)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Message(int severity,
IExtension extension,
IAnalyzerDescriptor analyzer,
AstObject ast,
java.lang.String message,
java.lang.Object[] values)
public Message(int severity,
java.lang.String message,
java.lang.Object[] values)
| Method Detail |
public IAnalyzerDescriptor getAnalyzer()
IMessagenull if this message is not associated with any
code analyzer.getAnalyzer in interface IMessagecom.togethersoft.sca.core.IMessagepublic AstObject getAstObject()
IMessagenull if this message is not associated with
any AST object.getAstObject in interface IMessagepublic int getEndColumn()
IMessage0)
if this message is not associated with any source fragment.getEndColumn in interface IMessagepublic int getEndLine()
IMessage0)
if this message is not associated with any source fragment.getEndLine in interface IMessagepublic java.lang.String getExplainMessage()
IMessagegetExplainMessage in interface IMessagecom.togethersoft.sca.core.IMessagepublic IExtension getExtension()
IMessagenull if this message is not associated
with any extension.getExtension in interface IMessagecom.togethersoft.sca.core.IMessagepublic java.lang.String getFileName()
IMessage"") if this message is not associated with
any source file.getFileName in interface IMessagepublic java.lang.String getMessage()
IMessagegetMessage in interface IMessagecom.togethersoft.sca.core.IMessagepublic java.lang.String getMessage(boolean isXML)
IMessagegetMessage in interface IMessagecom.togethersoft.sca.core.IMessageisXML - when set to true, the returned text is XML
formatted.public java.lang.Object getProperty(java.lang.String id)
IMessagegetProperty in interface IMessagepublic int getSeverity()
IMessagegetSeverity in interface IMessagecom.togethersoft.sca.core.IMessagepublic int getStartColumn()
IMessage0)
if this message is not associated with any source fragment.getStartColumn in interface IMessagepublic int getStartLine()
IMessage0)
if this message is not associated with any source fragment.getStartLine in interface IMessagepublic void setMessage(java.lang.String message)
public void setProperty(java.lang.String id,
java.lang.Object value)
IMessagesetProperty in interface IMessagepublic void setValues(java.lang.Object[] values)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||