Class PreferenceFilterEntry
java.lang.Object
org.eclipse.core.runtime.preferences.PreferenceFilterEntry
Class which represents and preference filter entry to be used during
preference import/export (for example).
- Since:
- 3.1
- See Also:
-
Constructor Summary
ConstructorDescriptionConstructor for the class.PreferenceFilterEntry
(String key, String matchType) Constructor for the class. -
Method Summary
Modifier and TypeMethodDescriptiongetKey()
Return the name of the preference key for this filter entry.Return the match type specified for this filter.
-
Constructor Details
-
PreferenceFilterEntry
Constructor for the class. Create a new preference filter entry with the given key. The key must not benull
or empty.- Parameters:
key
- the name of the preference key
-
PreferenceFilterEntry
Constructor for the class. Create a new preference filter entry with the given key and match type. The key must not benull
or empty.Setting matchType to "prefix" treats the key as if it were a regular expression with an asterisk at the end. If matchType is
null
, the key must be an exact match.- Parameters:
key
- the name of the preference keymatchType
- specifies key match type, may benull
to indicate that exact match is required- Since:
- 3.3
-
-
Method Details
-
getKey
Return the name of the preference key for this filter entry. It will not returnnull
or the empty string.- Returns:
- the name of the preference key
-
getMatchType
Return the match type specified for this filter. May returnnull
to indicate that exact match is used.- Returns:
- matchType the match type, might be
null
indicating that exact match is used - Since:
- 3.3
-