org.apache.james.mailboxmanager
Class SearchQuery.TextCriterion

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

public static final class SearchQuery.TextCriterion
extends SearchQuery.Criterion

Message text.


Field Summary
static int BODY
          Only the message body content.
static int FULL_MESSAGE
          The full message content including headers.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 SearchQuery.ContainsOperator getOperator()
          Gets the search operation and value to be evaluated.
 int getType()
          Gets the type of text to be searched.
 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

BODY

public static final int BODY
Only the message body content.

See Also:
Constant Field Values

FULL_MESSAGE

public static final int FULL_MESSAGE
The full message content including headers.

See Also:
Constant Field Values
Method Detail

getType

public final int getType()
Gets the type of text to be searched.

Returns:
the type, either BODY or FULL_MESSAGE

getOperator

public final SearchQuery.ContainsOperator getOperator()
Gets the search operation and value to be evaluated.

Returns:
the Operator, not null

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.