org.sonar.squid.api
Class CheckMessage

java.lang.Object
  extended by org.sonar.squid.api.CheckMessage
All Implemented Interfaces:
Message

public class CheckMessage
extends Object
implements Message


Constructor Summary
CheckMessage(CodeCheck check, String message, Object... messageArguments)
          Deprecated. replaced by the other constructor since 2.12. See SONAR-2875.
CheckMessage(Object check, String message, Object... messageArguments)
           
 
Method Summary
 String formatDefaultMessage()
           
 Object getCheck()
           
 CodeCheck getChecker()
          Deprecated. replaced by getCheck() since 2.12. Warning, to be called only if check is CodeCheck.
 Double getCost()
           
 String getDefaultMessage()
           
 Integer getLine()
           
 Object[] getMessageArguments()
           
 SourceCode getSourceCode()
           
 String getText(Locale locale)
           
 boolean isBypassExclusion()
           
 void setBypassExclusion(boolean bypassExclusion)
           
 void setCost(double cost)
           
 void setLine(int line)
           
 void setSourceCode(SourceCode sourceCode)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckMessage

public CheckMessage(Object check,
                    String message,
                    Object... messageArguments)

CheckMessage

@Deprecated
public CheckMessage(CodeCheck check,
                               String message,
                               Object... messageArguments)
Deprecated. replaced by the other constructor since 2.12. See SONAR-2875.

Method Detail

setSourceCode

public void setSourceCode(SourceCode sourceCode)

getSourceCode

public SourceCode getSourceCode()

setLine

public void setLine(int line)

getLine

public Integer getLine()
Specified by:
getLine in interface Message

setCost

public void setCost(double cost)

getCost

public Double getCost()

setBypassExclusion

public void setBypassExclusion(boolean bypassExclusion)

isBypassExclusion

public boolean isBypassExclusion()

getChecker

@Deprecated
public CodeCheck getChecker()
Deprecated. replaced by getCheck() since 2.12. Warning, to be called only if check is CodeCheck.

Specified by:
getChecker in interface Message

getCheck

public Object getCheck()

getDefaultMessage

public String getDefaultMessage()

getMessageArguments

public Object[] getMessageArguments()

getText

public String getText(Locale locale)
Specified by:
getText in interface Message

toString

public String toString()
Overrides:
toString in class Object

formatDefaultMessage

public String formatDefaultMessage()


Copyright © 2009-2012 SonarSource. All Rights Reserved.