Examples of ConfigElement


Examples of org.apache.jmeter.config.ConfigElement

     * Add a config element as a specific class. Usually this is done to add a
     * subclass as one of it's parent classes.
     */
    public void addConfigElement(ConfigElement config, Class<?> asClass) {
        if (config != null) {
            ConfigElement current = configSet.get(asClass);
            if (current == null) {
                configSet.put(asClass, cloneIfNecessary(config));
            } else {
                current.addConfigElement(config);
            }
        }
    }
View Full Code Here

Examples of org.apache.jmeter.config.ConfigElement

   * Add a config element as a specific class. Usually this is done to add a
   * subclass as one of it's parent classes.
   */
  public void addConfigElement(ConfigElement config, Class asClass) {
    if (config != null) {
      ConfigElement current = (ConfigElement) configSet.get(asClass);
      if (current == null) {
        configSet.put(asClass, cloneIfNecessary(config));
      } else {
        current.addConfigElement(config);
      }
    }
  }
View Full Code Here

Examples of org.apache.jmeter.config.ConfigElement

   * Add a config element as a specific class. Usually this is done to add a
   * subclass as one of it's parent classes.
   */
  public void addConfigElement(ConfigElement config, Class asClass) {
    if (config != null) {
      ConfigElement current = (ConfigElement) configSet.get(asClass);
      if (current == null) {
        configSet.put(asClass, cloneIfNecessary(config));
      } else {
        current.addConfigElement(config);
      }
    }
  }
View Full Code Here

Examples of org.asteriskjava.config.ConfigElement

     *      2. switch and ignorepat are treated like regular ConfigVariable.
     */
    @Override
    protected ConfigElement processTextLine(String configfile, int lineno, String line) throws ConfigParseException
    {
        ConfigElement configElement;
       
        if(
                (line.trim().startsWith("exten") || line.trim().startsWith("include")) &&
                currentCategory != null &&
                (currentCategory.getName().equals("general") || currentCategory.getName().equals("globals"))
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams.ConfigElement

        WorldManager wm = ClientContextJME.getWorldManager();
        WlAvatarCharacter wlc = new WlAvatarCharacter.WlAvatarCharacterBuilder(cp, wm).addEntity(false).build();

        // We need to manually apply all of the colors if they are present
        ConfigElement ce = params.getElement(ConfigType.HAIR_COLOR);
        if (ce != null) {
            float r = ((ColorConfigElement)ce).getR();
            float g = ((ColorConfigElement)ce).getG();
            float b = ((ColorConfigElement)ce).getB();
            Manipulator.setHairColor(wlc, new Color(r, g, b));
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams.ConfigElement

     *
     * @param type The configuration element type
     * @return The index in the list of all elements
     */
    public int getElementIndex(ConfigType type) {
        ConfigElement ce = getElement(type);
        List<ConfigElement> el = getElements(type);
        return el.indexOf(ce);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams.ConfigElement

        return el.get(index);
    }

    public void setElement(ConfigType type, int index) {
        List<ConfigElement> el = getElements(type);
        ConfigElement ce = el.get(index);
        elements.put(type, ce);
    }
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams.ConfigElement

        // Sort based upon the description of the present (rather than the name)
        // since it is the description that appears in the list.
        Comparator comparator = new Comparator() {
            public int compare(Object o1, Object o2) {
                ConfigElement c1 = (ConfigElement) o1;
                ConfigElement c2 = (ConfigElement) o2;
                return c1.getDescription().compareTo(c2.getDescription());
            }
        };

        // Attempt to load the configuration file, upon error log and return
        ConfigList config = null;
View Full Code Here

Examples of org.jdesktop.wonderland.modules.avatarbase.client.imi.WonderlandCharacterParams.ConfigElement

                return false;
            }
            if (getClass() != obj.getClass()) {
                return false;
            }
            final ConfigElement other = (ConfigElement) obj;
            if ((this.name == null) ? (other.name != null) : !this.name.equals(other.name)) {
                return false;
            }
            return true;
        }
View Full Code Here

Examples of org.jibeframework.core.app.config.ConfigElement

    Assert.notEmpty(els, "Can not find config elements with id: " + id);
    return getConfig(els);
  }

  private ConfigElement getConfig(List<ConfigElement> els) {
    ConfigElement result = null;
    for (ConfigElement element : els) {
      if (result == null) {
        boolean applies = evaluator.applies(element.getCondition());
        if (applies) {
          result = element;
        }
      } else {
        boolean applies = evaluator.applies(element.getCondition());
        if (applies) {
          if (!element.isReplace()) {
            result = result.combine(element);
          } else {
            result = element;
          }
        }
      }
    }
    return result.createCopy();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.