Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


oracle.webcenter.search
Class ComplexPredicate

java.lang.Object
  extended by oracle.webcenter.search.Predicate
      extended by oracle.webcenter.search.ComplexPredicate

All Implemented Interfaces:
java.io.Serializable

public class ComplexPredicate
extends Predicate

The Query Predicate is a logical grouping of the various criteria that comprise a Query. Through the Query Predicate, ANDing and ORing of the criteria can be specified. Moreover, nesting of Query Predicates is also possible.

Since:
11.1.1.0.0 Beta 2
See Also:
Serialized Form

Nested Class Summary
static class ComplexPredicate.ConjunctionOp
          The operator to use to conjoin criteria together.

 

Constructor Summary
ComplexPredicate()
          Constructs an empty ComplexPredicate with a default conjunction operator of ConjunctionOp.And.
ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp)
          Constructs a ComplexPredicate with the specified conjunction operator.
ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp, Predicate... predicates)
          Constructs a ComplexPredicate with the specified conjunction operator and a list of Predicates as its children.

 

Method Summary
 Predicate clonePredicate()
          Clones the ComplexPredicate so that consumers of it can directly manipulate the constituents of it.
 java.util.List<Predicate> getChildren()
          Gets a collection of child Predicate objects for this ComplexPredicate.
 ComplexPredicate.ConjunctionOp getConjunctionOperator()
          Gets the conjunction operator used by the ComplexPredicate.
 void setChildren(java.util.List<Predicate> children)
          Allows setting of the entire List of child Predicate objects.
 java.lang.String toString()
          A String representation of the ComplexPredicate.

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

ComplexPredicate

public ComplexPredicate()
Constructs an empty ComplexPredicate with a default conjunction operator of ConjunctionOp.And.

ComplexPredicate

public ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp)
Constructs a ComplexPredicate with the specified conjunction operator.
Parameters:
conjunctionOp - a ConjunctionOp that specifies either an ANDing or an ORing of all the Criteria

ComplexPredicate

public ComplexPredicate(ComplexPredicate.ConjunctionOp conjunctionOp,
                        Predicate... predicates)
Constructs a ComplexPredicate with the specified conjunction operator and a list of Predicates as its children.
Parameters:
conjunctionOp - a ConjunctionOp that specifies either an ANDing or an ORing of all the Criteria

Method Detail

getConjunctionOperator

public ComplexPredicate.ConjunctionOp getConjunctionOperator()
Gets the conjunction operator used by the ComplexPredicate.
Returns:
One of ConjunctionOp.And and ConjunctionOp.Or

getChildren

public java.util.List<Predicate> getChildren()
Gets a collection of child Predicate objects for this ComplexPredicate.
Returns:
A List of ComplexPredicate objects.

setChildren

public void setChildren(java.util.List<Predicate> children)
Allows setting of the entire List of child Predicate objects.

toString

public java.lang.String toString()
A String representation of the ComplexPredicate.
Overrides:
toString in class java.lang.Object

clonePredicate

public Predicate clonePredicate()
Clones the ComplexPredicate so that consumers of it can directly manipulate the constituents of it.
Overrides:
clonePredicate in class Predicate
Returns:
a clone of itself.

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle WebCenter
11g Release 1 (11.1.1.4.0)
E15995-03


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.