
package de.ivu.elect.jee.presentation.dynamicform;

public enum PropertyFilterFunction {

  TEST_FILTER_VALUE_PATTERN_MATCHES_ITEM_FILTER_LABEL("testFilterValuePatternMatchesItemFilterLabel"),

  TEST_FILTER_VALUE_PATTERN_MATCHES_ITEM_FILTER_LABEL_TOKENIZED("testFilterValuePatternMatchesItemFilterLabelTokenized");

  private String prototypeFunctionName;

  private PropertyFilterFunction(String prototypeFunctionName) {
    this.prototypeFunctionName = prototypeFunctionName;
  }

  public String getFunctionName() {
    // Cf. /elect-base-war/src/main/webapp/resources/js/common/PrimeFaces/PrimeFaces.js
    return "PrimeFaces.__elect_common__." + prototypeFunctionName;
  }
}
