Examples of FieldConfig


Examples of de.odysseus.calyxo.forms.conf.FieldConfig

    return new FormProperties() {
      /* (non-Javadoc)
       * @see de.odysseus.calyxo.forms.FormData#_getProperty(java.lang.String)
       */
      public Object getProperty(String name) {
        FieldConfig field = result.getFormConfig().findFieldConfig(name);
        if (field == null) {
          return null;
        }
        FormInputResult inputResult =
          result.getFormInputResult(field.getName());
        if (!inputResult.getProperty().equals(name)) {
          return null;
        }
        return inputResult.getValue();
      }
View Full Code Here

Examples of de.odysseus.calyxo.forms.conf.FieldConfig

    this.inputConfig = inputConfig;
    fields = new ArrayList();
    Iterator fieldConfigs = inputConfig.getFieldConfigs();
    while (fieldConfigs.hasNext()) {
      FieldConfig fieldConfig = (FieldConfig)fieldConfigs.next();
      fields.add(new InputField(factory, fieldConfig, locale, inputConfig.isArray()));
    }
  }
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

  }

  public Resolution getDateResolution(String fieldName) {

    if (this.config != null) {
      FieldConfig fieldConfig = this.config.getFieldConfig(fieldName);

      if (fieldConfig != null) {

        if (this.config.hasAttribute(DateResolutionAttribute.class)) {
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

        locale = getQueryConfigHandler().getAttribute(LocaleAttribute.class)
            .getLocale();

      }

      FieldConfig fieldConfig = getQueryConfigHandler().getFieldConfig(
          parametricRangeNode.getField());

      if (fieldConfig != null) {

        if (fieldConfig.hasAttribute(DateResolutionAttribute.class)) {

          dateRes = fieldConfig.getAttribute(DateResolutionAttribute.class)
              .getDateResolution();

        }

      }
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

     
      FieldableNode fieldNode = (FieldableNode) node;
      QueryConfigHandler config = getQueryConfigHandler();

      if (config != null) {
        FieldConfig fieldConfig = config.getFieldConfig(fieldNode.getField());

        if (fieldConfig != null && fieldConfig.hasAttribute(BoostAttribute.class)) {
          BoostAttribute boostAttr = fieldConfig.getAttribute(BoostAttribute.class);

          return new BoostQueryNode(node, boostAttr.getBoost());

        }
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

      if (field != null) {
        fieldStr = field.toString();
      }

      FieldConfig fieldConfig = getQueryConfigHandler()
          .getFieldConfig(fieldStr);

      if (fieldConfig != null) {
        dateRes = fieldConfig.get(ConfigurationKeys.DATE_RESOLUTION);
      }

      if (upper.getOperator() == CompareOperator.LE) {
        inclusive = true;
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

    if (node instanceof ParametricRangeQueryNode) {
      QueryConfigHandler config = getQueryConfigHandler();
     
      if (config != null) {
        ParametricRangeQueryNode parametricRangeNode = (ParametricRangeQueryNode) node;
        FieldConfig fieldConfig = config.getFieldConfig(StringUtils
            .toString(parametricRangeNode.getField()));
       
        if (fieldConfig != null) {
         
          NumericConfig numericConfig = fieldConfig
              .get(ConfigurationKeys.NUMERIC_CONFIG);
         
          if (numericConfig != null) {
           
            ParametricQueryNode lower = parametricRangeNode.getLowerBound();
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

  }

  public Resolution getDateResolution(String fieldName) {

    if (this.config != null) {
      FieldConfig fieldConfig = this.config.getFieldConfig(fieldName);

      if (fieldConfig != null) {
        return fieldConfig.get(ConfigurationKeys.DATE_RESOLUTION);
      }

    }

    return null;
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

     
      QueryConfigHandler config = getQueryConfigHandler();
     
      if (config != null) {
        FieldQueryNode fieldNode = (FieldQueryNode) node;
        FieldConfig fieldConfig = config.getFieldConfig(fieldNode
            .getFieldAsString());
       
        if (fieldConfig != null) {
          NumericConfig numericConfig = fieldConfig
              .get(ConfigurationKeys.NUMERIC_CONFIG);
         
          if (numericConfig != null) {
           
            NumberFormat numberFormat = numericConfig.getNumberFormat();
View Full Code Here

Examples of org.apache.lucene.queryParser.core.config.FieldConfig

      FieldableNode fieldNode = (FieldableNode) node;
      QueryConfigHandler config = getQueryConfigHandler();

      if (config != null) {
        CharSequence field = fieldNode.getField();
        FieldConfig fieldConfig = config.getFieldConfig(StringUtils.toString(field));

        if (fieldConfig != null) {
          Float boost = fieldConfig.get(ConfigurationKeys.BOOST);

          if (boost != null) {
            return new BoostQueryNode(node, boost);
          }
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.