Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.javatools.resourcebundle
Class SearchContext

java.lang.Object
  extended by 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.


Field Summary
protected  java.lang.Object searchTerm
           
protected  ResourceBundleWrapperRT wrapper
           
 
Constructor Summary
SearchContext(java.lang.Object searchTerm, ResourceBundleWrapperRT wrapper)
           
 
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
 

Field Detail

searchTerm

protected final java.lang.Object searchTerm

wrapper

protected final ResourceBundleWrapperRT wrapper
Constructor Detail

SearchContext

public SearchContext(java.lang.Object searchTerm,
                     ResourceBundleWrapperRT wrapper)
Parameters:
searchTerm - Original search term (String or Map)
wrapper - Scope of the search
Method Detail

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

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.