org.sonar.batch.util
Class DeprecatedKeyUtils

java.lang.Object
  extended by org.sonar.batch.util.DeprecatedKeyUtils

public class DeprecatedKeyUtils
extends Object


Method Summary
static String getJavaFileDeprecatedKey(String sourceRelativePath)
          Return the deprecated key of a Java file given its path relative to source directory.
static String getJavaFileParentDeprecatedKey(String deprecatedJavaFileKey)
          Return the parent directory deprecated key for a given deprecated Java file key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getJavaFileParentDeprecatedKey

public static String getJavaFileParentDeprecatedKey(String deprecatedJavaFileKey)
Return the parent directory deprecated key for a given deprecated Java file key. "com.foo.Bar" -> "com/foo" "[root].Bar" -> "[root]" "Bar" -> "[root]"


getJavaFileDeprecatedKey

public static String getJavaFileDeprecatedKey(String sourceRelativePath)
Return the deprecated key of a Java file given its path relative to source directory.



Copyright © 2009–2015 SonarSource. All rights reserved.