Tabnine Logo
Directory.parseKey
Code IndexAdd Tabnine to your IDE (free)

How to use
parseKey
method
in
org.sonar.api.resources.Directory

Best Java code snippets using org.sonar.api.resources.Directory.parseKey (Showing top 3 results out of 315)

origin: org.codehaus.sonar/sonar-plugin-api

/**
 * @deprecated since 4.2 use {@link #fromIOFile(java.io.File, Project)}
 */
@Deprecated
public Directory(String relativePathFromSourceDir, Language language) {
 this.relativePathFromSourceDir = parseKey(relativePathFromSourceDir);
}
origin: org.codehaus.sonar/sonar-plugin-api

/**
 * @deprecated since 4.2 use {@link FileSystem#inputFile(org.sonar.api.batch.fs.FilePredicate)}
 */
@Deprecated
public File(String relativeDirectoryPathFromSourceDir, String filename) {
 this.filename = StringUtils.trim(filename);
 if (StringUtils.isBlank(relativeDirectoryPathFromSourceDir)) {
  this.relativePathFromSourceDir = filename;
 } else {
  this.relativePathFromSourceDir = new StringBuilder().append(Directory.parseKey(relativeDirectoryPathFromSourceDir)).append(Directory.SEPARATOR).append(this.filename)
   .toString();
 }
}
origin: org.codehaus.sonar/sonar-batch

private String oldParentKey(String oldKey) {
 String cleanKey = StringUtils.trim(oldKey.replace('\\', '/'));
 if (cleanKey.indexOf(Directory.SEPARATOR) >= 0) {
  String oldParentKey = Directory.parseKey(StringUtils.substringBeforeLast(oldKey, Directory.SEPARATOR));
  oldParentKey = StringUtils.removeStart(oldParentKey, Directory.SEPARATOR);
  oldParentKey = StringUtils.removeEnd(oldParentKey, Directory.SEPARATOR);
  return oldParentKey;
 } else {
  return Directory.ROOT;
 }
}
org.sonar.api.resourcesDirectoryparseKey

Popular methods of Directory

  • create
    Internal use only.
  • fromIOFile
  • <init>
  • getKey
  • getPath
  • relativePathFromSourceDir
    Internal.
  • add
  • closeDirectory
  • delete
  • equals
  • inDirectory
  • normalize
  • inDirectory,
  • normalize,
  • setKey,
  • setPath

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (Timer)
  • putExtra (Intent)
  • getContentResolver (Context)
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • PhpStorm for WordPress
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now