|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.ide.shared.AbstractResourceUtils<MODEL>
public abstract class AbstractResourceUtils<MODEL>
| Field Summary | |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
Default package name for classes without package definition. |
static String |
ROOT
Default directory name for files in root directory. |
| Constructor Summary | |
|---|---|
AbstractResourceUtils()
|
|
| Method Summary | |
|---|---|
String |
getComponentKey(MODEL file)
Returns component key for specified file. |
protected abstract String |
getDirectoryPath(MODEL file)
Returns directory path for specified file. |
String |
getFileKey(MODEL file)
Returns file key for specified file. |
protected abstract String |
getFileName(MODEL file)
Returns name for specified file. |
protected abstract String |
getPackageName(MODEL file)
Returns package name for specified file. |
abstract String |
getProjectKey(MODEL file)
Returns project key for specified file. |
String |
getProjectKey(String groupId,
String artifactId)
Deprecated. since 0.2, use getProjectKey(String, String, String) instead of it |
String |
getProjectKey(String groupId,
String artifactId,
String branch)
|
protected abstract boolean |
isJavaFile(MODEL file)
Returns true, if specified file is a java file, false otherwise. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PACKAGE_NAME
public static final String ROOT
| Constructor Detail |
|---|
public AbstractResourceUtils()
| Method Detail |
|---|
public final String getProjectKey(String groupId,
String artifactId,
String branch)
groupId - groupIdartifactId - artifactIdbranch - branch
@Deprecated
public final String getProjectKey(String groupId,
String artifactId)
getProjectKey(String, String, String) instead of it
groupId - groupIdartifactId - artifactId
public final String getComponentKey(MODEL file)
file - file
public final String getFileKey(MODEL file)
file - file
protected abstract boolean isJavaFile(MODEL file)
file - file
protected abstract String getFileName(MODEL file)
file - file
protected abstract String getPackageName(MODEL file)
file - file
protected abstract String getDirectoryPath(MODEL file)
file - file
public abstract String getProjectKey(MODEL file)
file - file
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||