Movatterモバイル変換


[0]ホーム

URL:


         


Class FlagTerm

java.lang.Object  |  +--javax.mail.search.SearchTerm        |        +--javax.mail.search.FlagTerm

public final classFlagTerm
extendsSearchTerm

This class implements comparisons for Message Flags.


flags
          Flags object containing the flags to test.
set
          Indicates whether to test for the presence or absence of the specified Flag.
 
FlagTerm(Flags flags, boolean set)
          Constructor.
 
getFlags()
          Return the Flags to test.
getTestSet()
          Return true if testing whether the flags are set.
match(Message msg)
          The comparison method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

set

protected booleanset
Indicates whether to test for the presence or absence of the specified Flag. Iftrue, then test whether all the specified flags are present, else test whether all the specified flags are absent.

flags

protectedFlagsflags
Flags object containing the flags to test.

FlagTerm

publicFlagTerm(Flags flags,                boolean set)
Constructor.
Parameters:
flags - Flags object containing the flags to check for
set - the flag setting to check for

getFlags

publicFlagsgetFlags()
Return the Flags to test.

getTestSet

public booleangetTestSet()
Return true if testing whether the flags are set.

match

public booleanmatch(Message msg)
The comparison method.
Overrides:
match in classSearchTerm
Parameters:
msg - The flag comparison is applied to this Message
Returns:
true if the comparson succeeds, otherwise false.

         


[8]ページ先頭

©2009-2025 Movatter.jp