org.sonar.api.component
Interface Component<C extends Component>

All Known Subinterfaces:
Module, SourceFile
All Known Implementing Classes:
MockSourceFile, Project

public interface Component<C extends Component>


Method Summary
 String key()
           
 String longName()
           
 String moduleKey()
          Key of the module this component belong to.
 String name()
           
 String path()
          Path of the component relative to basedir of the parent module.
 String qualifier()
           
 

Method Detail

key

String key()

path

@CheckForNull
String path()
Path of the component relative to basedir of the parent module.

Returns:
null if this component is not a child of a module
Since:
4.2

moduleKey

@CheckForNull
String moduleKey()
Key of the module this component belong to.

Returns:
null for components that are module themself
Since:
4.2

name

String name()

longName

String longName()

qualifier

String qualifier()


Copyright © 2009-2014 SonarSource. All Rights Reserved.