Codota Logo
ModuleItem.updateStringArrayProperty
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.drools/guvnor-repository

/**
 * This sets the Workspace
 *
 * @param workspace
 */
public void updateWorkspace(String[] workspace) {
  this.updateStringArrayProperty(workspace,
      WORKSPACE_PROPERTY_NAME,
      false);
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * This sets the Workspace
 *
 * @param workspace
 */
public void updateWorkspace(String[] workspace) {
  this.updateStringArrayProperty(workspace,
      WORKSPACE_PROPERTY_NAME,
      false);
}
origin: org.drools/guvnor-repository

/**
 * This removes a workspace
 *
 * @param workspace
 */
public void removeWorkspace(String workspace) {
  String[] existingWorkspaces = getStringPropertyArray(WORKSPACE_PROPERTY_NAME);
  if (existingWorkspaces.length == 0) {
    return;
  }
  List<String> existingWorkspaceList = new ArrayList<String>(existingWorkspaces.length);
  Collections.addAll(existingWorkspaceList, existingWorkspaces);
  existingWorkspaceList.remove(workspace);
  if (existingWorkspaceList.size() != existingWorkspaces.length) {
    this.updateStringArrayProperty(existingWorkspaceList.toArray(new String[existingWorkspaceList.size()]),
        WORKSPACE_PROPERTY_NAME,
        false);
  }
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * This removes a workspace
 *
 * @param workspace
 */
public void removeWorkspace(String workspace) {
  String[] existingWorkspaces = getStringPropertyArray(WORKSPACE_PROPERTY_NAME);
  if (existingWorkspaces.length == 0) {
    return;
  }
  List<String> existingWorkspaceList = new ArrayList<String>(existingWorkspaces.length);
  Collections.addAll(existingWorkspaceList, existingWorkspaces);
  existingWorkspaceList.remove(workspace);
  if (existingWorkspaceList.size() != existingWorkspaces.length) {
    this.updateStringArrayProperty(existingWorkspaceList.toArray(new String[existingWorkspaceList.size()]),
        WORKSPACE_PROPERTY_NAME,
        false);
  }
}
origin: org.drools/guvnor-repository

/**
 * This adds a workspace
 *
 * @param workspace
 */
public void addWorkspace(String workspace) {
  String[] existingWorkspaces = getStringPropertyArray(WORKSPACE_PROPERTY_NAME);
  boolean found = false;
  for (String existingWorkspace : existingWorkspaces) {
    if (existingWorkspace.equals(workspace)) {
      found = true;
      break;
    }
  }
  if (!found) {
    String[] newWorkspaces = new String[existingWorkspaces.length + 1];
    System.arraycopy(existingWorkspaces, 0, newWorkspaces, 0, existingWorkspaces.length);
    newWorkspaces[existingWorkspaces.length] = workspace;
    this.updateStringArrayProperty(newWorkspaces,
        WORKSPACE_PROPERTY_NAME,
        false);
  }
}
origin: org.chtijbug.drools/guvnor-repository

/**
 * This adds a workspace
 *
 * @param workspace
 */
public void addWorkspace(String workspace) {
  String[] existingWorkspaces = getStringPropertyArray(WORKSPACE_PROPERTY_NAME);
  boolean found = false;
  for (String existingWorkspace : existingWorkspaces) {
    if (existingWorkspace.equals(workspace)) {
      found = true;
      break;
    }
  }
  if (!found) {
    String[] newWorkspaces = new String[existingWorkspaces.length + 1];
    System.arraycopy(existingWorkspaces, 0, newWorkspaces, 0, existingWorkspaces.length);
    newWorkspaces[existingWorkspaces.length] = workspace;
    this.updateStringArrayProperty(newWorkspaces,
        WORKSPACE_PROPERTY_NAME,
        false);
  }
}
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);
  }
}
org.drools.repositoryModuleItemupdateStringArrayProperty

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

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • startActivity (Activity)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • Path (java.nio.file)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TreeSet (java.util)
    A NavigableSet implementation based on a TreeMap. The elements are ordered using their Comparable, o
  • Table (org.hibernate.mapping)
    A relational table
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registery of org.quartz
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now