org.apache.james.mailboxmanager.torque
Class OrFetchGroup

java.lang.Object
  extended by org.apache.james.mailboxmanager.torque.OrFetchGroup
All Implemented Interfaces:
MessageResult.FetchGroup

public final class OrFetchGroup
extends java.lang.Object
implements MessageResult.FetchGroup

Wraps a fetch group and ORs content.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.james.mailboxmanager.MessageResult.FetchGroup
MessageResult.FetchGroup.PartContentDescriptor
 
Field Summary
 
Fields inherited from interface org.apache.james.mailboxmanager.MessageResult.FetchGroup
BODY_CONTENT, FLAGS, FULL_CONTENT, HEADERS, INTERNAL_DATE, MIME_CONTENT, MIME_DESCRIPTOR, MIME_HEADERS, MINIMAL, SIZE
 
Constructor Summary
OrFetchGroup(MessageResult.FetchGroup delegate, int or)
           
 
Method Summary
 int content()
          Contents to be fetched.
 java.util.Set getPartContentDescriptors()
          Gets contents to be fetched for contained parts.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OrFetchGroup

public OrFetchGroup(MessageResult.FetchGroup delegate,
                    int or)
Method Detail

content

public int content()
Description copied from interface: MessageResult.FetchGroup
Contents to be fetched. Composed bitwise.

Specified by:
content in interface MessageResult.FetchGroup
Returns:
bitwise descripion
See Also:
MessageResult.FetchGroup.MINIMAL, #MIME_MESSAGE, #KEY, MessageResult.FetchGroup.SIZE, MessageResult.FetchGroup.INTERNAL_DATE, MessageResult.FetchGroup.FLAGS, MessageResult.FetchGroup.HEADERS, MessageResult.FetchGroup.FULL_CONTENT, MessageResult.FetchGroup.BODY_CONTENT, MessageResult.FetchGroup.MIME_CONTENT

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getPartContentDescriptors

public java.util.Set getPartContentDescriptors()
Description copied from interface: MessageResult.FetchGroup
Gets contents to be fetched for contained parts. For each part to be contained, only one descriptor should be contained.

Specified by:
getPartContentDescriptors in interface MessageResult.FetchGroup
Returns:
Set of MessageResult.FetchGroup.PartContentDescriptor, or null if there is no part content to be fetched


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