org.sonar.api.checks.profiles
Class CheckProfile

java.lang.Object
  extended by org.sonar.api.checks.profiles.CheckProfile
All Implemented Interfaces:
BatchComponent, BatchExtension, Extension, ServerComponent, ServerExtension

public class CheckProfile
extends java.lang.Object
implements BatchExtension, ServerExtension


Constructor Summary
CheckProfile(java.lang.String name, java.lang.String language)
           
 
Method Summary
 void addCheck(Check check)
           
 boolean equals(java.lang.Object o)
           
 Check getCheck(java.lang.String repositoryKey, java.lang.String templateKey)
          We assume there is only one check for this template
 java.util.List<Check> getChecks()
           
 java.util.List<Check> getChecks(java.lang.String repositoryKey)
           
 java.util.List<Check> getChecks(java.lang.String repositoryKey, java.lang.String templateKey)
           
 java.lang.String getLanguage()
           
 java.lang.String getName()
           
 int hashCode()
           
 void setChecks(java.util.Collection<Check> list)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CheckProfile

public CheckProfile(java.lang.String name,
                    java.lang.String language)
Method Detail

getName

public java.lang.String getName()

getLanguage

public java.lang.String getLanguage()

getChecks

public java.util.List<Check> getChecks()

getChecks

public java.util.List<Check> getChecks(java.lang.String repositoryKey)

getChecks

public java.util.List<Check> getChecks(java.lang.String repositoryKey,
                                       java.lang.String templateKey)

getCheck

public Check getCheck(java.lang.String repositoryKey,
                      java.lang.String templateKey)
We assume there is only one check for this template


addCheck

public void addCheck(Check check)

setChecks

public void setChecks(java.util.Collection<Check> list)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009-2010 SonarSource. All Rights Reserved.