|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||
java.lang.Objectcom.ozacc.mail.impl.AbstractXMLMailBuilder
com.ozacc.mail.impl.XMLMailBuilderImpl
メールデータのXMLファイルからMailインスタンスを生成するクラス。
ソースXMLを読み込む際に、DTDバリデーションが実行されますので妥当なXMLデータ(Valid XML Document)でなければいけません。 メールデータXMLのDTDは、http://www.ozacc.com/library/dtd/ozacc-mail.dtdを参照。
| フィールドの概要 |
| クラス com.ozacc.mail.impl.AbstractXMLMailBuilder から継承したフィールド |
documentBuilderCache |
| コンストラクタの概要 | |
XMLMailBuilderImpl()
コンストラクタ。 |
|
| メソッドの概要 | |
protected Mail |
buildMail(Document doc)
DOM DocumentからMailインスタンスを生成します。 |
Mail |
buildMail(File file)
指定されたファイルを読み込んでMailインスタンスを生成します。 |
Mail |
buildMail(String classPath)
指定されたクラスパス上のファイルを読み込んでMailインスタンスを生成します。 |
| クラス com.ozacc.mail.impl.AbstractXMLMailBuilder から継承したメソッド |
createDocumentBuilder, createDocumentBuilder, getDocumentFromClassPath, getDocumentFromClassPath, getDocumentFromFile, getDocumentFromFile, setFrom, setHtml, setRecipients, setReplyTo, setReturnPath, setSubject, setText |
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
public XMLMailBuilderImpl()
| メソッドの詳細 |
public Mail buildMail(String classPath)
throws MailBuildException
MailBuilder の記述:
MailBuilder 内の buildMailclassPath - メール内容を記述したファイルのパス
MailBuildException - Mailインスタンスの生成に失敗した場合MailBuilder.buildMail(java.lang.String)
public Mail buildMail(File file)
throws MailBuildException
MailBuilder の記述:
MailBuilder 内の buildMailfile - メール内容を記述したファイル
MailBuildException - Mailインスタンスの生成に失敗した場合MailBuilder.buildMail(java.io.File)protected Mail buildMail(Document doc)
doc - メールデータのDOM Document
|
|||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||||