net.fortuna.mstor.search
Class TagsTerm

java.lang.Object
  extended by javax.mail.search.SearchTerm
      extended by net.fortuna.mstor.search.TagsTerm
All Implemented Interfaces:
java.io.Serializable

public class TagsTerm
extends javax.mail.search.SearchTerm

A Search Term that matches all messages with a given set of tags.

Author:
Ben Fortuna
 $Id$

 Created on 14/05/2006
 
See Also:
Serialized Form

Constructor Summary
TagsTerm()
          Default constructor.
TagsTerm(Tags tags)
          Creates a new term that matches messages that contain all the specified tags.
 
Method Summary
 Tags getTags()
           
 boolean match(javax.mail.Message m)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagsTerm

public TagsTerm()
Default constructor.


TagsTerm

public TagsTerm(Tags tags)
Creates a new term that matches messages that contain all the specified tags.

Parameters:
tags -
Method Detail

match

public final boolean match(javax.mail.Message m)
Specified by:
match in class javax.mail.search.SearchTerm

getTags

public final Tags getTags()
Returns:
Returns the tags.


Copyright © 2004-2011 Micronode. All Rights Reserved.