public interface IParserModel
IParser
instances.Modifier and Type | Field and Description |
---|---|
static String |
COMPARATOR_PROPERTY
Property fired when any class' comparator changes.
|
static String |
FORMAT_PROPERTY
Property fired when any class' format changes.
|
static String |
IGNORE_CASE_PROPERTY
Property fired when the ignore case value changes.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a
PropertyChangeListener .Any property change will be transmitted as an event |
IParser |
createParser(IFilterEditor editor)
Creates a text parser for the given editor.
|
Comparator |
getComparator(Class c)
Returns the
Comparator for the given class.It never returns null. |
Format |
getFormat(Class c)
Returns the
Format for the given class. |
Comparator<String> |
getStringComparator(boolean ignoreCase)
Returns the
Comparator used for String comparisons. |
boolean |
isIgnoreCase()
Returns true if the String comparator ignores case
Note that this is redundant information, which can be retrieved from the getComparator(Class) method with a String.class parameter. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes an existing
PropertyChangeListener . |
void |
setComparator(Class c,
Comparator format)
Defines the
Comparator for the given class. |
void |
setFormat(Class c,
Format format)
Defines the
Format for the given class. |
void |
setIgnoreCase(boolean set)
Sets a String comparator that is case sensitive/insensitive.
|
static final String IGNORE_CASE_PROPERTY
static final String COMPARATOR_PROPERTY
static final String FORMAT_PROPERTY
IParser createParser(IFilterEditor editor)
Comparator getComparator(Class c)
Comparator
for the given class.void setComparator(Class c, Comparator format)
Comparator
for the given class.Comparator<String> getStringComparator(boolean ignoreCase)
Comparator
used for String comparisons.void setIgnoreCase(boolean set)
boolean isIgnoreCase()
getComparator(Class)
method with a String.class parameter.void addPropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
.void removePropertyChangeListener(PropertyChangeListener listener)
PropertyChangeListener
.