KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > columba > mail > message > IColumbaHeader


1 // The contents of this file are subject to the Mozilla Public License Version
2
// 1.1
3
//(the "License"); you may not use this file except in compliance with the
4
//License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
5
//
6
//Software distributed under the License is distributed on an "AS IS" basis,
7
//WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
8
//for the specific language governing rights and
9
//limitations under the License.
10
//
11
//The Original Code is "The Columba Project"
12
//
13
//The Initial Developers of the Original Code are Frederik Dietz and Timo
14
// Stich.
15
//Portions created by Frederik Dietz and Timo Stich are Copyright (C) 2003.
16
//
17
//All Rights Reserved.
18
package org.columba.mail.message;
19
20 import org.columba.ristretto.message.Attributes;
21 import org.columba.ristretto.message.Flags;
22 import org.columba.ristretto.message.Header;
23
24 /**
25  * @author fdietz
26  *
27  */

28 public interface IColumbaHeader {
29     void copyColumbaKeys(IColumbaHeader header);
30
31     /* (non-Javadoc)
32      * @see org.columba.mail.message.HeaderInterface#count()
33      */
int count();
34
35     /* (non-Javadoc)
36      * @see org.columba.mail.message.HeaderInterface#getFlags()
37      */
Flags getFlags();
38
39     /**
40      * Note: Don't use this method anymore when accessing
41      * attributes like "columba.size", use getAttribute() instead
42      *
43      */

44     Object JavaDoc get(String JavaDoc s);
45
46     /* (non-Javadoc)
47      * @see org.columba.mail.message.HeaderInterface#set(java.lang.String, java.lang.Object)
48      */
void set(String JavaDoc s, Object JavaDoc o);
49
50     /**
51      * @return
52      */

53     Header getHeader();
54
55     /**
56      * @return
57      */

58     Attributes getAttributes();
59
60     /**
61      * @param attributes
62      */

63     void setAttributes(Attributes attributes);
64
65     /**
66      * @param flags
67      */

68     void setFlags(Flags flags);
69
70     /**
71      * @param header
72      */

73     void setHeader(Header header);
74
75     Boolean JavaDoc hasAttachments();
76     
77     public Object JavaDoc clone();
78 }
Popular Tags