Source Code Cross Referenced for JwmaMessage.java in  » Web-Mail » Jwma » dtw » webmail » model » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Mail » Jwma » dtw.webmail.model 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /***
002:         * jwma Java WebMail
003:         * Copyright (c) 2000-2003 jwma team
004:         *
005:         * jwma is free software; you can distribute and use this source
006:         * under the terms of the BSD-style license received along with
007:         * the distribution.
008:         ***/package dtw.webmail.model;
009:
010:        import java.util.Date;
011:
012:        /**
013:         * An interface defining the contract for interaction with
014:         * the JwmaMessage model.
015:         * <p>
016:         * The JwmaMessage allows a view programmer to obtain
017:         * information about a message to display it for reading
018:         * or composing.
019:         *
020:         * @author Dieter Wimberger
021:         * @version 0.9.7 07/02/2003
022:         *
023:         */
024:        public interface JwmaMessage {
025:
026:            /**
027:             * Returns the full message header as <tt>String</tt>.
028:             *
029:             * @return the full message header as <tt>String</tt>.
030:             */
031:            public String getFullHeader();
032:
033:            /**
034:             * Returns an <tt>int</tt> representing the number
035:             * of this message.
036:             * <p>
037:             * This number is the unique identifier for a message within
038:             * a folder, or <tt>-1</tt> in case of a message created
039:             * for being composed.
040:             *
041:             * @return the number of this message, or -1 if newly created
042:             *         for composing.
043:             */
044:            public int getMessageNumber();
045:
046:            /**
047:             * Tests if the message was received.
048:             *
049:             * @return true if the message was received,
050:             *         false otherwise.
051:             */
052:            public boolean isReceived();
053:
054:            /**
055:             * Tests if the message was sent.
056:             * <p>
057:             * Note that this method will always return the opposite of
058:             * isReceived() (i.e. represents !getReceived()).
059:             *
060:             * @return true if the message was sent,
061:             *         false otherwise.
062:             */
063:            public boolean isSent();
064:
065:            /**
066:             * Returns a <tt>String</tt> representing the sender(s)
067:             * of the message.
068:             *
069:             * @return the sender(s) of the message as String.
070:             */
071:            public String getFrom();
072:
073:            /**
074:             * Returns a <tt>String</tt> representing the Reply-To
075:             * address(es) of the message.
076:             *
077:             * @return the Reply-To address(es) of the message as String.
078:             */
079:            public String getReplyTo();
080:
081:            /**
082:             * Returns a <tt>String</tt> representing the receivers(s)
083:             * of the message.
084:             *
085:             * @return the receiver(s) of the message as String.
086:             */
087:            public String getTo();
088:
089:            /**
090:             * Returns a <tt>String</tt> representing the
091:             * carbon copy receivers(s) of the message.
092:             *
093:             * @return the carbon copy receiver(s) of the
094:             *         message as String.
095:             */
096:            public String getCCTo();
097:
098:            /**
099:             * Returns a <tt>String</tt> representing the
100:             * blind carbon copy receivers(s) of the message.
101:             *
102:             * @return the blind carbon copy receiver(s) of the
103:             *         message as String.
104:             */
105:            public String getBCCTo();
106:
107:            /**
108:             * Convenience method that returns a <tt>Date</tt>
109:             * representing the received or sent date of the message.
110:             * (Depending on whether it was sent or received).
111:             *
112:             * @return the received or sent date of the message.
113:             */
114:            public Date getDate();
115:
116:            /**
117:             * Returns a <tt>Date</tt> representing the
118:             * date when the message was received.
119:             *
120:             * @return the received date of the message.
121:             */
122:            public Date getReceivedDate();
123:
124:            /**
125:             * Returns a <tt>Date</tt> representing the
126:             * date when the message was sent.
127:             *
128:             * @return the sent date of the message.
129:             */
130:            public Date getSentDate();
131:
132:            /**
133:             * Returns a <tt>String</tt> representing the subject
134:             * of the message.
135:             *
136:             * @return the subject of the message as String.
137:             */
138:            public String getSubject();
139:
140:            /**
141:             * Returns a <tt>String</tt> representing the body
142:             * of the message.
143:             * <p>
144:             * Note that the body will be the (plain text) content of
145:             * a singlepart message. The method will return an empty
146:             * <tt>String</tt> for a multipart message.
147:             * <p>
148:             * A view programmer should base display decisions on
149:             * the <tt>isSinglepart()</tt> (or <tt>isMultipart()</tt>
150:             * method.
151:             *
152:             * @return the content of the message as String.
153:             *
154:             * @see #isSinglepart()
155:             * @see #isMultipart()
156:             */
157:            public String getBody();
158:
159:            /**
160:             * Returns an array of <tt>JwmaMessagePart</tt> objects.
161:             * <p>
162:             * If this message does not contain any parts, then this
163:             * method returns an empty array. Otherwise it contains
164:             * one <tt>JwmaMessagePart</tt> object for each part
165:             * of this message representing information about the part.
166:             * <p>
167:             * A view programmer should base display decisions on
168:             * the <tt>isSinglepart()</tt> (or <tt>isMultipart()</tt>
169:             * method.
170:             *
171:             * @return an array of JwmaMessagePart objects each representing
172:             *  	   information about a part of this message.
173:             *         The array will be empty if this message has no
174:             *         parts.
175:             *
176:             * @see dtw.webmail.model.JwmaMessagePart
177:             * @see #isSinglepart()
178:             * @see #isMultipart()
179:             */
180:            public JwmaMessagePart[] getMessageParts();
181:
182:            /**
183:             * Tests if the message is singlepart.
184:             * <p>
185:             * A singlepart message does not have any
186:             * attachments.
187:             *
188:             * @return true if the message is singlepart,
189:             *         false otherwise.
190:             */
191:            public boolean isSinglepart();
192:
193:            /**
194:             * Tests if the message is multipart.
195:             * <p>
196:             * A multipart message has attachments
197:             * or is composed out of different parts.
198:             * Note that this method will always return the opposite
199:             * of isSinglepart() (i.e. represents !isSinglepart()).
200:             *
201:             * @return true if the message is multipart,
202:             *         false otherwise.
203:             */
204:            public boolean isMultipart();
205:
206:        }//interface JwmaMessage
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.