congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
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

  • Updating database using SQL prepared statement
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getResourceAsStream (ClassLoader)
  • getSharedPreferences (Context)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • JFrame (javax.swing)
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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