|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SK.gnome.dwarf.mail.store.search.SequenceSet
This class represents a set of message number sequences.
The message number sequence is:
Note that the sequences may use message UIDs instead of the message numbers. This can be set via the corresponding object constructor argument.
Constructor Summary | |
protected |
SequenceSet(MailFolder folder,
boolean uid)
Creates a new empty SequenceSet. |
|
SequenceSet(MailFolder folder,
boolean uid,
java.lang.String set)
Creates a new SequenceSet with the given sequence set. |
Method Summary | |
protected void |
init(java.lang.String set)
Initializes the sequence set with the given initial values. |
boolean |
match(MailMessage message)
Matches the given sequence set and the message UID or number. |
java.lang.String |
toString()
Returns a string representation of this sequence set. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SequenceSet(MailFolder folder, boolean uid, java.lang.String set) throws MailException
This method calls init(String)
with the value of given set argument.
folder
- the mail folderuid
- whether this is a sequence of message UIDs instead of message numbersset
- the string representation of the sequence set
MailException
- if an error occuredprotected SequenceSet(MailFolder folder, boolean uid) throws MailException
The set must be initialized by calling the init(String)
method prior to using its
message matching method.
folder
- the mail folderuid
- whether this is a sequence of message UIDs instead of message numbers
MailException
- if an error occuredMethod Detail |
public boolean match(MailMessage message)
message
- the searched message
public java.lang.String toString()
protected void init(java.lang.String set) throws MailException
The set argument must contain a comma-separated list of one or more sequences.
set
- the string representation of the sequence set
MailException
- if an error occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |