Tabnine Logo
ModuleItem.decodeDependencyPath
Code IndexAdd Tabnine to your IDE (free)

How to use
decodeDependencyPath
method
in
org.drools.repository.ModuleItem

Best Java code snippets using org.drools.repository.ModuleItem.decodeDependencyPath (Showing top 6 results out of 315)

origin: org.chtijbug.drools/guvnor-repository

public VersionedAssetItemIterator(NodeIterator nodes,
            RulesRepository repo,
            String[] dependencies) {
  super(nodes, repo);
  //this.dependencies = dependencies;
  for(String dependency : dependencies) {
    String[] decodedPath = ModuleItem.decodeDependencyPath(dependency);
    if(!"LATEST".equals(decodedPath[1])) {
      dependencyVersionMap.put(decodedPath[0], decodedPath[1]);
    }
  }        
}
origin: org.drools/guvnor-repository

public VersionedAssetItemIterator(NodeIterator nodes,
            RulesRepository repo,
            String[] dependencies) {
  super(nodes, repo);
  //this.dependencies = dependencies;
  for(String dependency : dependencies) {
    String[] decodedPath = ModuleItem.decodeDependencyPath(dependency);
    if(!"LATEST".equals(decodedPath[1])) {
      dependencyVersionMap.put(decodedPath[0], decodedPath[1]);
    }
  }        
}
origin: org.drools/guvnor-repository

public void updateDependency(String dependencyPath) {
  String[] existingDependencies = getStringPropertyArray(DEPENDENCIES_PROPERTY_NAME);
  boolean found = false;
  for (int i = 0; i < existingDependencies.length; i++) {
    if (decodeDependencyPath(existingDependencies[i])[0]
        .equals(decodeDependencyPath(dependencyPath)[0])) {
      found = true;
      existingDependencies[i] = dependencyPath;
      this.updateStringArrayProperty(existingDependencies,
          DEPENDENCIES_PROPERTY_NAME,
          false);
      break;
    }
  }
  if (!found) {
    String[] newDependencies = new String[existingDependencies.length + 1];
    System.arraycopy(existingDependencies, 0, newDependencies, 0, existingDependencies.length);
    newDependencies[existingDependencies.length] = dependencyPath;
    this.updateStringArrayProperty(newDependencies,
        DEPENDENCIES_PROPERTY_NAME,
        false);
  }
}
origin: org.chtijbug.drools/guvnor-repository

public void updateDependency(String dependencyPath) {
  String[] existingDependencies = getStringPropertyArray(DEPENDENCIES_PROPERTY_NAME);
  boolean found = false;
  for (int i = 0; i < existingDependencies.length; i++) {
    if (decodeDependencyPath(existingDependencies[i])[0]
        .equals(decodeDependencyPath(dependencyPath)[0])) {
      found = true;
      existingDependencies[i] = dependencyPath;
      this.updateStringArrayProperty(existingDependencies,
          DEPENDENCIES_PROPERTY_NAME,
          false);
      break;
    }
  }
  if (!found) {
    String[] newDependencies = new String[existingDependencies.length + 1];
    System.arraycopy(existingDependencies, 0, newDependencies, 0, existingDependencies.length);
    newDependencies[existingDependencies.length] = dependencyPath;
    this.updateStringArrayProperty(newDependencies,
        DEPENDENCIES_PROPERTY_NAME,
        false);
  }
}
origin: org.chtijbug.drools/guvnor-repository

String path = decodeDependencyPath(existingDependency)[0];
if (result.containsKey(path)) {
  result.put(path,
origin: org.drools/guvnor-repository

String path = decodeDependencyPath(existingDependency)[0];
if (result.containsKey(path)) {
  result.put(path,
org.drools.repositoryModuleItemdecodeDependencyPath

Popular methods of ModuleItem

  • addAsset
    This adds an asset to the current physical module (you can move it later). With the given category.
  • containsAsset
    Returns true if this module contains an asset of the given name.
  • getName
    Return the name of the module.
  • getStringProperty
  • listAssetsByFormat
    This will load an iterator for assets of the given format type.
  • loadAsset
    Load a specific asset by name.
  • updateStringProperty
  • <init>
    Constructs an object of type ModuleItem corresponding the specified node
  • checkin
  • checkout
  • createSubModule
    Creates a nested package.
  • ensureMixinType
  • createSubModule,
  • ensureMixinType,
  • getAssets,
  • getAssetsWithStatus,
  • getDependencies,
  • getDescription,
  • getFormat,
  • getLastModified,
  • getNode,
  • getStringPropertyArray

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • putExtra (Intent)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Path (java.nio.file)
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top Vim plugins
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