Skip navigation links
oracle.javatools.resourcebundle
Class SearchContext
java.lang.Object
oracle.javatools.resourcebundle.SearchContext
- Direct Known Subclasses:
- ResourceBundleWrapperRT.DefaultSearchContext
-
public abstract class SearchContext
- extends java.lang.Object
This is the core class that controls how the search occurs. The ResourceBundleWrapperRT.findKeys(SearchType,Object,boolean) creates a DefaultSearchContext that handles all legacy SearchType's and case-insensitive variants of those searches. Usually these overrides preserve compatibility with return types, or add necessary synchronization.
Method Summary |
abstract java.util.Set<java.lang.String> |
findKeys()
|
protected abstract java.util.Map<java.lang.String,java.lang.String> |
getEntryMap()
|
protected abstract boolean |
isMatch(java.lang.String key, java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
searchTerm
protected final java.lang.Object searchTerm
wrapper
protected final ResourceBundleWrapperRT wrapper
SearchContext
public SearchContext(java.lang.Object searchTerm,
ResourceBundleWrapperRT wrapper)
-
- Parameters:
searchTerm
- Original search term (String or Map)
wrapper
- Scope of the search
findKeys
public abstract java.util.Set<java.lang.String> findKeys()
-
- Returns:
- The set of keys that match the search term in the wrapper scope
getEntryMap
protected abstract java.util.Map<java.lang.String,java.lang.String> getEntryMap()
-
- Returns:
- The map that represents the items within the wrapper scope
isMatch
protected abstract boolean isMatch(java.lang.String key,
java.lang.String text)
throws java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
-
- Parameters:
key
- current search iteration entry key
text
- current search iteration entry value
- Returns:
- True is the criteria of _searchType and other factors (specific to this context type) consider this a matching entry.
- Throws:
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
Skip navigation links
Copyright © 1997, 2015, Oracle. All rights reserved.