|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
oracle.webcenter.search.util.PredicateUtils
public class PredicateUtils
This class provides some utility methods around Predicates that developers may find useful.
| Constructor Summary | |
|---|---|
PredicateUtils() |
|
| Method Summary | ||
|---|---|---|
static void |
convertAllSinceNumDaysComparator(Predicate predicate)Convert all SinceNumDays comparators and their operands in the predicate tree |
|
static void |
filterTextPredicate(Predicate predicate, java.lang.String filterString)Filter text predicate by the filterString |
|
static
|
findPredicates(java.lang.Class<T> type, Predicate predicate)Returns a list of Predicates that matches the class passed in. |
|
static void |
flatten(ComplexPredicate predicate)Compacts the ComplexPredicate by flattening. |
|
static
|
getFirst(java.lang.Class<T> type, Predicate predicate)Extracts the first Predicate it finds in the descendents of a Predicate that matches the type passed in. |
|
static java.lang.String |
getFirstKeywordsFromPredicate(Predicate predicate)Extracts the first keywords it finds in the Predicate by looking into TextPredicates. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PredicateUtils()
| Method Detail |
|---|
public static final java.lang.String getFirstKeywordsFromPredicate(Predicate predicate)
predicate - a Predicate that can be either Text of Complex.
public static final <T extends Predicate> Predicate getFirst(java.lang.Class<T> type,
Predicate predicate)
type - The Class object we want to match from the descendents of the passed in predicatepredicate - the Predicate whose descendents (via ComplexPredicate) we wish to discover Predicates of the type passed in
public static final <T extends Predicate> java.util.List<T> findPredicates(java.lang.Class<T> type,
Predicate predicate)
type - The Class object we want to match from the descendents of the passed in predicatepredicate - the Predicate whose descendents (via ComplexPredicate) we wish to discover Predicates of the type passed inpublic static final void flatten(ComplexPredicate predicate)
predicate - the ComplexPredicate to be flattenedpublic static void convertAllSinceNumDaysComparator(Predicate predicate)
predicate - of the query
public static void filterTextPredicate(Predicate predicate,
java.lang.String filterString)
predicate - of the queryfilterString -
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter 11g Release 1 (11.1.1.3.0) E15995-02 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||