public class PropertyFilterFormatter extends Object implements Formatter<PropertyFilter>
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.Modifier and Type | Field and Description |
---|---|
private Formatter<Date> |
dateFormatter |
private DbControl |
dc |
Constructor and Description |
---|
PropertyFilterFormatter(DbControl dc,
Formatter<Date> dateFormatter)
Create a new formatter.
|
Modifier and Type | Method and Description |
---|---|
private void |
appendListOfValues(StringBuilder sb,
String value,
String quote) |
String |
format(PropertyFilter filter)
Format a value by converting it to a string.
|
private String |
nameOfItem(DbControl dc,
Item itemType,
int id,
boolean quote) |
PropertyFilter |
parseString(String value)
Parse a string and return a value of the correct type.
|
private final DbControl dc
public String format(PropertyFilter filter)
Formatter
format
in interface Formatter<PropertyFilter>
filter
- The value to formatpublic PropertyFilter parseString(String value)
Formatter
parseString
in interface Formatter<PropertyFilter>
value
- The string to parseUnsupportedOperationException
- Alwaysprivate void appendListOfValues(StringBuilder sb, String value, String quote)