org.apache.james.mailboxmanager
Class SearchQuery.ConjunctionCriterion

java.lang.Object
  extended by org.apache.james.mailboxmanager.SearchQuery.Criterion
      extended by org.apache.james.mailboxmanager.SearchQuery.ConjunctionCriterion
Enclosing class:
SearchQuery

public static final class SearchQuery.ConjunctionCriterion
extends SearchQuery.Criterion

Conjuction applying to the contained criteria. getType() indicates how the conjoined criteria should be related.


Field Summary
static int AND
          Logical AND
static int NOR
          Logical NOT
static int OR
          Logical OR
 
Constructor Summary
SearchQuery.ConjunctionCriterion(int type, java.util.List criteria)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.util.List getCriteria()
          Gets the criteria related through this conjuction.
 int getType()
          Gets the type of conjunction.
 int hashCode()
           
 java.lang.String toString()
          Constructs a String with all attributes in name = value format.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

AND

public static final int AND
Logical AND

See Also:
Constant Field Values

OR

public static final int OR
Logical OR

See Also:
Constant Field Values

NOR

public static final int NOR
Logical NOT

See Also:
Constant Field Values
Constructor Detail

SearchQuery.ConjunctionCriterion

public SearchQuery.ConjunctionCriterion(int type,
                                        java.util.List criteria)
Method Detail

getCriteria

public final java.util.List getCriteria()
Gets the criteria related through this conjuction.

Returns:
List of SearchQuery.Criterion

getType

public final int getType()
Gets the type of conjunction.

Returns:
the type, either AND, OR or NOR

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Constructs a String with all attributes in name = value format.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this object.


Copyright © 2002-2008 The Apache Software Foundation. All Rights Reserved.