Package de.odysseus.calyxo.base.conf

Examples of de.odysseus.calyxo.base.conf.ConfigException


  protected void init() throws Exception {
    super.init();

    selectTag = (SelectTag)findAncestor(SelectTag.class);
    if (selectTag == null) {
      throw new ConfigException("An option tag must be nested in a select tag!");
    }

    checkValue();
  }
View Full Code Here


  }

  protected void checkValue() throws Exception {
    String key = getValueAttribute();
    if (!selectTag.isSelectable(key)) {
      throw new ConfigException("An option for select '" + selectTag.getName() + "' contains invalid value '" + key + "'!");
    }
  }
View Full Code Here

  /**
   * Add matcher element.
   */
  public void add(MatcherConfigImpl value) throws ConfigException {
    if (matcherConfigs.containsKey(value.getId())) {
      throw new ConfigException("Duplicate matcher '" + value.getId() + "'");
    }
    matcherConfigs.put(value.getId(), value);
  }
View Full Code Here

  /**
   * Add converter element.
   */
  public void add(ConverterConfigImpl value) throws ConfigException {
    if (converterConfigs.containsKey(value.getId())) {
      throw new ConfigException("Duplicate converter '" + value.getId() + "'");
    }
    converterConfigs.put(value.getId(), value);
  }
View Full Code Here

  /**
   * Add checker element
   */
  public void add(CheckerConfigImpl value) throws ConfigException {
    if (checkerConfigs.containsKey(value.getId())) {
      throw new ConfigException("Duplicate checker '" + value.getId() + "'");
    }
    checkerConfigs.put(value.getId(), value);
  }
View Full Code Here

    s.append(test);
    s.append("}");
    try {
      expression = evaluator.parseExpression(s.toString(), Boolean.class, this);
    } catch (Exception e) {
      throw new ConfigException("Parse error in '" + test + "'", e);
    }
  }
View Full Code Here

   * Add arg element
   */ 
  public void add(ArgConfigImpl value) throws ConfigException {
    if (value.getName() != null) {
      if (argConfigMap.containsKey(value.getName())) {
        throw new ConfigException("Duplicate arg '" + value.getName() + "' in " + toInlineString());
      }
      argConfigMap.put(value.getName(), value);
    }
    argConfigList.add(value);
  }
View Full Code Here

  /**
   * Add field to field by property lookup
   */
  private void addFieldByProperty(FieldConfig field) throws ConfigException {
    if (fieldConfigsByPropertyMap.containsKey(field.getProperty())) {
      throw new ConfigException("Duplicate property '" + field.getProperty() + "' in field '" + toInlineString() + "'");
    }
    fieldConfigsByPropertyMap.put(field.getProperty(), field);
  }
View Full Code Here

  /**
   * Add field element
   */
  public void add(FieldConfigImpl value) throws ConfigException {
    if (fieldConfigs.containsKey(value.getName())) {
      throw new ConfigException("Duplicate field '" + value.getProperty() + "' in " + toInlineString());
    }
    fieldConfigs.put(value.getProperty(), value);
  }
View Full Code Here

  /**
   * Add input element
   */
  public void add(InputConfigImpl value) throws ConfigException {
    if (inputConfigs.containsKey(value.getName())) {
      throw new ConfigException("Duplicate input '" + value.getName() + "' in " + toInlineString());
    }
    inputConfigs.put(value.getName(), value);
  }
View Full Code Here

TOP

Related Classes of de.odysseus.calyxo.base.conf.ConfigException

Copyright © 2018 www.massapicom. 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.