|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParserModel
Interface defining the model required to use and create IParser
instances.
Field Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Field Detail |
---|
static final String IGNORE_CASE_PROPERTY
static final String COMPARATOR_PROPERTY
static final String FORMAT_PROPERTY
Method Detail |
---|
IParser createParser(IFilterEditor editor)
Format getFormat(Class c)
Format
for the given class.
void setFormat(Class c, Format format)
Format
for the given class.
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
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |