Ejemplo n.º 1
0
    @Override
    public boolean select(GroupedParameterizedElement element) {
      if (!element.hasParameterBag(this.bagKey)) return false;

      ParameterBag bag = element.getParameterBag(this.bagKey);
      if (!bag.hasParameter(this.paramKey)) return false;

      DurationParameter param = bag.getParameter(this.paramKey);
      return param.getValue().equals(this.value);
    }
Ejemplo n.º 2
0
    @Override
    public boolean select(GroupedParameterizedElement element) {
      if (!element.hasParameterBag(this.bagKey)) return false;

      ParameterBag bag = element.getParameterBag(this.bagKey);
      if (!bag.hasParameter(this.paramKey)) return false;

      ListParameter<U> param = bag.getParameter(this.paramKey);
      return param.getValue().containsAll(this.value);
    }
  /**
   * Fills {@link GroupedParameterizedElement} properties of this clone
   *
   * @param clone
   */
  protected void fillClone(GroupedParameterizedElement clone) {
    super.fillClone(clone);
    clone.setType(getType());

    if (this.parameterBagMap != null) {
      for (ParameterBag bag : this.parameterBagMap.values()) {
        clone.addParameterBag(bag.getClone());
      }
    }
  }
Ejemplo n.º 4
0
    @Override
    public boolean select(GroupedParameterizedElement element) {
      if (!element.hasParameterBag(this.bagKey)) return false;

      ParameterBag bag = element.getParameterBag(this.bagKey);
      if (!bag.hasParameter(this.paramKey)) return false;

      DateParameter param = bag.getParameter(this.paramKey);
      Date value = param.getValue();

      return this.dateRange.contains(value);
    }
Ejemplo n.º 5
0
    @Override
    public boolean select(GroupedParameterizedElement element) {

      if (!element.hasParameterBag(this.bagKey)) return false;

      ParameterBag bag = element.getParameterBag(this.bagKey);
      if (!bag.hasParameter(this.paramKey)) return false;

      StringParameter param = bag.getParameter(this.paramKey);
      String paramValue = param.getValue();

      return this.matchMode.matches(paramValue, this.value);
    }
Ejemplo n.º 6
0
    @Override
    public boolean select(GroupedParameterizedElement element) {

      ParameterBag bag = element.getParameterBag(this.bagKey);
      if (bag == null) {
        return false;
      }

      return !bag.hasParameter(this.paramKey);
    }
Ejemplo n.º 7
0
    @Override
    public boolean select(GroupedParameterizedElement element) {

      ParameterBag bag = element.getParameterBag(this.bagKey);
      if (bag == null) {
        return false;
      }

      Parameter<?> parameter = bag.getParameter(this.paramKey);
      if (parameter == null) return false;

      String valueAsString = parameter.getValueAsString();
      return this.matchMode.matches(valueAsString, this.value);
    }