org.sonar.api.component.mock
Class MockSourceFile

java.lang.Object
  extended by org.sonar.api.component.mock.MockSourceFile
All Implemented Interfaces:
Component<SourceFile>, SourceFile

public class MockSourceFile
extends Object
implements SourceFile


Method Summary
static MockSourceFile createMain(String key)
           
 boolean equals(Object o)
           
 int hashCode()
           
 String key()
           
 String language()
           
 String longName()
           
 String name()
           
 String path()
          Path of the component relative to basedir of the parent module.
 String qualifier()
           
 MockSourceFile setKey(String key)
           
 MockSourceFile setLanguage(String language)
           
 MockSourceFile setLongName(String longName)
           
 MockSourceFile setName(String name)
           
 MockSourceFile setPath(String path)
           
 MockSourceFile setQualifier(String qualifier)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

key

public String key()
Specified by:
key in interface Component<SourceFile>

setKey

public MockSourceFile setKey(String key)

path

public String path()
Description copied from interface: Component
Path of the component relative to basedir of the parent module.

Specified by:
path in interface Component<SourceFile>
Returns:
null if this component is not a child of a module

setPath

public MockSourceFile setPath(String path)

qualifier

public String qualifier()
Specified by:
qualifier in interface Component<SourceFile>

setQualifier

public MockSourceFile setQualifier(String qualifier)

language

public String language()

setLanguage

public MockSourceFile setLanguage(String language)

name

public String name()
Specified by:
name in interface Component<SourceFile>

setName

public MockSourceFile setName(String name)

longName

public String longName()
Specified by:
longName in interface Component<SourceFile>

setLongName

public MockSourceFile setLongName(String longName)

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

createMain

public static MockSourceFile createMain(String key)


Copyright © 2009-2014 SonarSource. All Rights Reserved.