org.apache.james.mailboxmanager.impl
Class PartContentDescriptorImpl

java.lang.Object
  extended by org.apache.james.mailboxmanager.impl.PartContentDescriptorImpl
All Implemented Interfaces:
MessageResult.FetchGroup.PartContentDescriptor

public class PartContentDescriptorImpl
extends java.lang.Object
implements MessageResult.FetchGroup.PartContentDescriptor


Constructor Summary
PartContentDescriptorImpl(int content, MessageResult.MimePath path)
           
PartContentDescriptorImpl(MessageResult.MimePath path)
           
 
Method Summary
 int content()
          Contents to be fetched.
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void or(int content)
           
 MessageResult.MimePath path()
          Path describing the part to be fetched.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartContentDescriptorImpl

public PartContentDescriptorImpl(MessageResult.MimePath path)

PartContentDescriptorImpl

public PartContentDescriptorImpl(int content,
                                 MessageResult.MimePath path)
Method Detail

or

public void or(int content)

content

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

Specified by:
content in interface MessageResult.FetchGroup.PartContentDescriptor
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

path

public MessageResult.MimePath path()
Description copied from interface: MessageResult.FetchGroup.PartContentDescriptor
Path describing the part to be fetched.

Specified by:
path in interface MessageResult.FetchGroup.PartContentDescriptor
Returns:
path describing the part, not null

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


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