Class PropertyFilterFormatter

java.lang.Object
net.sf.basedb.util.formatter.PropertyFilterFormatter
All Implemented Interfaces:
Formatter<PropertyFilter>

public class PropertyFilterFormatter
extends Object
implements Formatter<PropertyFilter>
Formatter for PropertyFilter items. This will create a more readable representation of the property filter than the PropertyFilter.toString() method. It knows about some special properties and load the names of annotation types, item subtypes, etc instead of just displaying their ID values.
Since:
3.5
Author:
Nicklas
  • Field Details

    • dc

      private final DbControl dc
    • dateFormatter

      private final Formatter<Date> dateFormatter
    • tagElements

      private final boolean tagElements
  • Constructor Details

    • PropertyFilterFormatter

      public PropertyFilterFormatter​(DbControl dc, Formatter<Date> dateFormatter)
      Create a new formatter.
    • PropertyFilterFormatter

      public PropertyFilterFormatter​(DbControl dc, Formatter<Date> dateFormatter, boolean tagElements)
      Create a new formatter with option to create HTML-like tags around elements. The following tags are used: <value>, <name>, <operator>, <function>
      Since:
      3.13.1
  • Method Details