View Javadoc

1   /*
2    * Copyright (c) 2005-2007 Creative Sphere Limited.
3    * All rights reserved. This program and the accompanying materials
4    * are made available under the terms of the Eclipse Public License v1.0
5    * which accompanies this distribution, and is available at
6    * http://www.eclipse.org/legal/epl-v10.html
7    *
8    * Contributors:
9    *
10   *   Creative Sphere - initial API and implementation
11   *
12   */
13  package org.abstracthorizon.mercury.maildir.uid;
14  
15  import javax.mail.MessagingException;
16  
17  
18  /**
19   * This interface defines message that knows its UID
20   *
21   * @author Daniel Sendula
22   */
23  public interface UIDMessage {
24  
25      /**
26       * Returns UID of this message
27       * @return UID of this message
28       * @throws MessagingException
29       */
30      public UID getUID() throws MessagingException;
31  
32  }