jp.ne.mki.wedge.pub.vfunit.reporter
クラス AbstractHtmlReportConverter

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.pub.vfunit.reporter.AbstractHtmlReportConverter
すべての実装されたインタフェース:
IReportConverter
直系の既知のサブクラス:
HtmlConverter_Table, HtmlConverter_Tree, ProcessWriter

public abstract class AbstractHtmlReportConverter
extends java.lang.Object
implements IReportConverter

HTML変換Converter抽象クラス。 Test結果ReportXMLをHTMLに変換する際の抽象クラスです。 任意のHTMLに変換する際にこのクラスを使用すると少し楽に記述が可能です。

作成者:
kanbayashi

フィールドの概要
protected  java.lang.String charSet
           
protected  int errorCount
           
static int EXCEPTION_EXIT
           
protected  int failCount
           
static int FAILURE_EXIT
           
protected  java.lang.String readFilePath
           
protected  org.w3c.dom.Node root
           
protected  int runCount
           
static int SUCCESS_EXIT
           
protected  java.io.PrintWriter writer
           
 
インタフェース jp.ne.mki.wedge.pub.vfunit.reporter.IReportConverter から継承されたフィールド
NODE_PROCESS, NODE_TEST, NODE_TEST_CASE, NODE_TEST_SUITE
 
コンストラクタの概要
AbstractHtmlReportConverter()
           
 
メソッドの概要
 void convert(java.lang.String xmlFilePath, java.io.File writeFile)
          XML情報をに書き込み
protected  java.io.PrintWriter createWriter(java.io.File writeFile)
          PrintWriter作成
 java.lang.String getCharSet()
          CharSetを取得
protected  java.lang.String getImageHtml(java.lang.String status)
          ステータスごとのイメージを HTMLのimgタグ形式で返します。
 java.lang.String getReadFilePath()
          読込元のファイルパスを取得する
 java.lang.String getRootNodeName()
          Rootのノード取得XsltPathを取得
abstract  java.lang.String getTitle()
          ページタイトルを取得
protected  java.lang.String getXmlFormat(java.lang.String value)
          XMLのENTITYに変換します
protected  void print(java.lang.String value)
           
protected  void println(java.lang.String value)
           
 void setCharSet(java.lang.String charSet)
          CharSetをを設定
protected abstract  void writeBody()
          Body部分の書き込み
protected  void writeDateAndIpAddress()
          日付+実行マシンIPアドレスの表示
protected  void writeProperty()
          プロパティの書き込み
protected  void writerHead()
          Header部分の書き込み
protected  void writeStyleSheet()
          Headerに埋め込むStyleSheetの書き込み
protected  void writeSummary()
          Summaryの書き込み
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

SUCCESS_EXIT

public static final int SUCCESS_EXIT
関連項目:
定数フィールド値

FAILURE_EXIT

public static final int FAILURE_EXIT
関連項目:
定数フィールド値

EXCEPTION_EXIT

public static final int EXCEPTION_EXIT
関連項目:
定数フィールド値

writer

protected java.io.PrintWriter writer

charSet

protected java.lang.String charSet

root

protected org.w3c.dom.Node root

runCount

protected int runCount

failCount

protected int failCount

errorCount

protected int errorCount

readFilePath

protected java.lang.String readFilePath
コンストラクタの詳細

AbstractHtmlReportConverter

public AbstractHtmlReportConverter()
メソッドの詳細

createWriter

protected java.io.PrintWriter createWriter(java.io.File writeFile)
                                    throws java.lang.Exception
PrintWriter作成

パラメータ:
reportDirectory -
例外:
java.lang.Exception

writerHead

protected void writerHead()
                   throws java.lang.Exception
Header部分の書き込み

例外:
java.lang.Exception

getTitle

public abstract java.lang.String getTitle()
ページタイトルを取得

戻り値:

writeBody

protected abstract void writeBody()
                           throws java.lang.Exception
Body部分の書き込み

例外:
java.lang.Exception

convert

public void convert(java.lang.String xmlFilePath,
                    java.io.File writeFile)
             throws java.lang.Exception
XML情報をに書き込み

定義:
インタフェース IReportConverter 内の convert
パラメータ:
xmlFile -
writeFile -
例外:
java.lang.Exception

getRootNodeName

public java.lang.String getRootNodeName()
Rootのノード取得XsltPathを取得

戻り値:

writeDateAndIpAddress

protected void writeDateAndIpAddress()
                              throws java.lang.Exception
日付+実行マシンIPアドレスの表示

例外:
java.lang.Exception

writeSummary

protected void writeSummary()
                     throws java.lang.Exception
Summaryの書き込み

例外:
java.lang.Exception

writeProperty

protected void writeProperty()
                      throws java.lang.Exception
プロパティの書き込み

例外:
java.lang.Exception

writeStyleSheet

protected void writeStyleSheet()
                        throws java.lang.Exception
Headerに埋め込むStyleSheetの書き込み

例外:
java.lang.Exception

println

protected void println(java.lang.String value)

print

protected void print(java.lang.String value)

getXmlFormat

protected java.lang.String getXmlFormat(java.lang.String value)
XMLのENTITYに変換します

パラメータ:
value -
戻り値:

getImageHtml

protected java.lang.String getImageHtml(java.lang.String status)
ステータスごとのイメージを HTMLのimgタグ形式で返します。

パラメータ:
status -
戻り値:

getCharSet

public java.lang.String getCharSet()
CharSetを取得

戻り値:

setCharSet

public void setCharSet(java.lang.String charSet)
CharSetをを設定

パラメータ:
charSet -

getReadFilePath

public java.lang.String getReadFilePath()
読込元のファイルパスを取得する

戻り値: