1 package com.ozacc.mail.xml;
2
3 import java.io.File;
4
5 import org.w3c.dom.Document;
6
7 import com.ozacc.mail.Mail;
8
9 /***
10 * Mail¥¤¥ó¥¹¥¿¥ó¥¹¤«¤éXML¥É¥¥å¥á¥ó¥È¤òÀ¸À®¤·¤Þ¤¹¡£
11 *
12 * @author Tomohiro Otsuka
13 * @version $Id: XMLBuilder.java,v 1.1 2004/09/05 14:20:49 otsuka Exp $
14 */
15 public interface XMLBuilder {
16
17 /***
18 * »ØÄꤵ¤?¤¿Mail¥¤¥ó¥¹¥¿¥ó¥¹¤«¤éXML¥É¥¥å¥á¥ó¥È¤òÀ¸À®¤·¤Þ¤¹¡£
19 *
20 * @param mail
21 * @return DOM Document
22 * @throws XMLBuildException
23 */
24 Document buildDocument(Mail mail) throws XMLBuildException;
25
26 /***
27 * »ØÄꤵ¤?¤¿Mail¥¤¥ó¥¹¥¿¥ó¥¹¤«¤éXML¥É¥¥å¥á¥ó¥È¤òÀ¸À®¤·¡¢
28 * »ØÄꤵ¤?¤¿¥Õ¥¡¥¤¥?¤ËÊݸ¤·¤Þ¤¹¡£
29 *
30 * @param mail
31 * @param destFile Mail¥Ç¡¼¥¿XML¤ÎÊݸÀè¥Õ¥¡¥¤¥?
32 * @throws XMLBuildException
33 */
34 void saveDocument(Mail mail, File destFile) throws XMLBuildException;
35
36 }