OSDN Git Service

javadoc の警告を刈り取った
authorhayashi <hayashi.yuu@gmail.com>
Thu, 18 May 2017 10:08:47 +0000 (19:08 +0900)
committerhayashi <hayashi.yuu@gmail.com>
Thu, 18 May 2017 10:08:47 +0000 (19:08 +0900)
32 files changed:
.classpath
hayashi_0226.jar
src/hayashi/yuu/tools/logger/package.html [deleted file]
src/hayashi/yuu/tools/mail/gui/SendMailGUI.java
src/hayashi/yuu/tools/properties/Encrypt.java
src/hayashi/yuu/tools/properties/PropertyCheckItem.java
src/hayashi/yuu/tools/properties/PropertyFieldItem.java
src/hayashi/yuu/tools/properties/PropertyItem.java
src/hayashi/yuu/tools/properties/PropertyPasswordItem.java
src/hayashi/yuu/tools/properties/PropertySelectItem.java
src/hayashi/yuu/tools/sound/PlaySound.java
src/jp/co/areaweb/tools/command/Command.java
src/jp/co/areaweb/tools/command/JSendmail.java
src/jp/co/areaweb/tools/command/Job.java
src/jp/co/areaweb/tools/command/Xalan.java
src/jp/co/areaweb/tools/command/XmlJob.java
src/jp/co/areaweb/tools/core/MemoryCheck.java
src/jp/co/areaweb/tools/core/Tax.java
src/jp/co/areaweb/tools/csv/CsvFile.java
src/jp/co/areaweb/tools/csv/CsvReader.java
src/jp/co/areaweb/tools/database/DatabaseTool.java
src/jp/co/areaweb/tools/database/DoSQL.java
src/jp/co/areaweb/tools/database/Select.java
src/jp/co/areaweb/tools/gui/ClipbordTest.java
src/jp/co/areaweb/tools/gui/Manager.java
src/jp/co/areaweb/tools/mail/XmlTool.java
src/jp/co/areaweb/tools/mail/YuuMailXml.java
test/hayashi/tools/files/DeleteDirTest.java [new file with mode: 0644]
test/jp/co/areaweb/tools/core/JapaneseStringTest.java [moved from test/jp/co/areaweb/tools/core/TestJapaneseString.java with 94% similarity]
test/jp/co/areaweb/tools/core/MakeStringTest.java [moved from test/jp/co/areaweb/tools/core/TestMakeString.java with 94% similarity]
test/jp/co/areaweb/tools/core/TaxTest.java [moved from test/jp/co/areaweb/tools/core/TestTax.java with 92% similarity]
testspace/README.txt [new file with mode: 0644]

index af6772f..7ad227c 100644 (file)
@@ -8,5 +8,6 @@
        <classpathentry kind="lib" path="lib/servlet-api.jar"/>
        <classpathentry kind="lib" path="lib/xercesImpl.jar"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+       <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
        <classpathentry kind="output" path="classes"/>
 </classpath>
index 7dd80b4..a131f90 100644 (file)
Binary files a/hayashi_0226.jar and b/hayashi_0226.jar differ
diff --git a/src/hayashi/yuu/tools/logger/package.html b/src/hayashi/yuu/tools/logger/package.html
deleted file mode 100644 (file)
index d801f8f..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">\r
-<html>\r
-<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=utf-8">\r
-<title>Logger</title>\r
-</head>\r
-<body>\r
-<p>詳細な設定なしにロギング用のロガーを簡単に取得する。</p>\r
-<p>\r
-・ファイルに出力します。<br/>\r
-・INFOレベル以上\r
-</p>\r
-</body>\r
-</html>
\ No newline at end of file
index e062056..743576e 100644 (file)
@@ -41,6 +41,8 @@ public class SendMailGUI extends JFrame implements ActionListener
      * 「メール送信(SendMail)」\r
      * 起動オプション:\r
      *  第一: メールアカウントの設定ファイル名\r
+     * @param args     properties File Name\r
+     * @throws Exception       error\r
      */\r
     public static void main(String args[]) throws Exception {\r
                String fileName = "sendmail.properties";\r
@@ -154,7 +156,7 @@ public class SendMailGUI extends JFrame implements ActionListener
 \r
        /**\r
         * [メニュー]アクション: \r
-        * @param event\r
+        * @param event         イベント\r
         */\r
        public void actionPerformed(ActionEvent event) {\r
         Object object = event.getSource();\r
index 9d9c946..2479357 100644 (file)
@@ -23,7 +23,7 @@ import javax.crypto.spec.PBEParameterSpec;
 public class Encrypt\r
 {\r
        /**\r
-        * @param args\r
+        * @param args  コマンドパラメータ\r
         */\r
     public static void main(String[] args) {\r
        String source = "deister07";\r
@@ -58,13 +58,13 @@ public class Encrypt
      * 指定された文字列を暗号化する。\r
      * @param source   暗号化したい文字列\r
      * @return 暗号化された文字列\r
-     * @throws NoSuchAlgorithmException \r
-     * @throws NoSuchPaddingException\r
-     * @throws InvalidKeyException \r
-     * @throws BadPaddingException \r
-     * @throws IllegalBlockSizeException \r
-        * @throws InvalidKeySpecException \r
-        * @throws InvalidAlgorithmParameterException \r
+     * @throws NoSuchAlgorithmException        例外\r
+     * @throws NoSuchPaddingException          例外\r
+     * @throws InvalidKeyException                     例外\r
+     * @throws BadPaddingException                     例外\r
+     * @throws IllegalBlockSizeException       例外\r
+        * @throws InvalidKeySpecException              例外\r
+        * @throws InvalidAlgorithmParameterException   例外\r
      */\r
     public static String encrypt(String source) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException {\r
                //16進数化\r
@@ -75,13 +75,13 @@ public class Encrypt
      * 指定されたバイト配列を暗号化する。\r
      * @param source   暗号化したいバイト配列\r
      * @return 暗号化されたバイト配列\r
-     * @throws NoSuchAlgorithmException\r
-     * @throws NoSuchPaddingException\r
-     * @throws InvalidKeyException\r
-     * @throws IllegalBlockSizeException\r
-     * @throws BadPaddingException\r
-     * @throws InvalidKeySpecException\r
-     * @throws InvalidAlgorithmParameterException\r
+     * @throws NoSuchAlgorithmException                例外\r
+     * @throws NoSuchPaddingException          例外\r
+     * @throws InvalidKeyException                     例外\r
+     * @throws IllegalBlockSizeException       例外\r
+     * @throws BadPaddingException                     例外\r
+     * @throws InvalidKeySpecException         例外\r
+     * @throws InvalidAlgorithmParameterException      例外\r
      */\r
     public static byte[] encrypt(byte[] source) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, InvalidKeySpecException, InvalidAlgorithmParameterException {\r
                PBEParameterSpec pbeParam = new PBEParameterSpec(SALT, NUM);\r
@@ -102,13 +102,13 @@ public class Encrypt
      * 復号\r
      * @param source   暗号化された文字列\r
      * @return 復号された文字列\r
-     * @throws NoSuchAlgorithmException \r
-     * @throws InvalidKeySpecException \r
-     * @throws NoSuchPaddingException \r
-     * @throws InvalidAlgorithmParameterException\r
-     * @throws InvalidKeyException \r
-     * @throws BadPaddingException\r
-     * @throws IllegalBlockSizeException \r
+     * @throws NoSuchAlgorithmException        例外\r
+     * @throws InvalidKeySpecException                 例外\r
+     * @throws NoSuchPaddingException          例外\r
+     * @throws InvalidAlgorithmParameterException      例外\r
+     * @throws InvalidKeyException                     例外\r
+     * @throws BadPaddingException                     例外\r
+     * @throws IllegalBlockSizeException       例外\r
      */\r
     public static String decode(String source) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException {\r
        if (source == null) {\r
@@ -122,13 +122,13 @@ public class Encrypt
      * 復号\r
      * @param source   暗号化されたバイト配列\r
      * @return 復号されたバイト配列\r
-     * @throws NoSuchAlgorithmException\r
-     * @throws InvalidKeySpecException\r
-     * @throws NoSuchPaddingException\r
-     * @throws InvalidKeyException\r
-     * @throws InvalidAlgorithmParameterException\r
-     * @throws IllegalBlockSizeException\r
-     * @throws BadPaddingException\r
+     * @throws NoSuchAlgorithmException                例外\r
+     * @throws InvalidKeySpecException         例外\r
+     * @throws NoSuchPaddingException          例外\r
+     * @throws InvalidKeyException                     例外\r
+     * @throws InvalidAlgorithmParameterException      例外\r
+     * @throws IllegalBlockSizeException       例外\r
+     * @throws BadPaddingException                     例外\r
      */\r
     public static byte[] decode(byte[] source) throws NoSuchAlgorithmException, InvalidKeySpecException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException {\r
                // PBE を新たに生成\r
index 4caabfd..4780280 100644 (file)
@@ -10,7 +10,7 @@ import javax.swing.JLabel;
 public class PropertyCheckItem extends hayashi.yuu.tools.properties.PropertyItem {\r
 \r
        public PropertyCheckItem(hayashi.yuu.tools.properties.Properties prop, String name, String title, boolean value, boolean editable) {\r
-               super(prop, name, title, editable);\r
+               super(prop, name, title);\r
                field = new JCheckBox(title, Boolean.parseBoolean(prop.getProperty(name, "false")));\r
                ((JCheckBox)field).addActionListener(this);\r
                createItem(name, title, prop.getProperty(name), editable);\r
index 9c78d44..36d2657 100644 (file)
@@ -9,7 +9,7 @@ import javax.swing.JTextField;
 public class PropertyFieldItem extends PropertyItem implements FocusListener\r
 {\r
        public PropertyFieldItem(hayashi.yuu.tools.properties.Properties prop, String name, String title, boolean editable) {\r
-               super(prop, name, title, editable);\r
+               super(prop, name, title);\r
                field = new JTextField(value, 20);\r
                ((JTextField)field).addFocusListener(this);\r
                createItem(name, title, prop.getProperty(name), editable);\r
index 68160eb..abdcde2 100644 (file)
@@ -32,11 +32,11 @@ public abstract class PropertyItem extends JPanel implements ActionListener {
        \r
     /**\r
      * コンストラクタ\r
-     * @param prop\r
-     * @param name\r
-     * @param editable\r
+     * @param prop             プロパティファイル\r
+     * @param name             ネーム\r
+     * @param title            タイトル\r
      */\r
-       public PropertyItem(Properties prop, String name, String title, boolean editable) {\r
+       public PropertyItem(Properties prop, String name, String title) {\r
                super(null);\r
                logger = LoggerFactory.getInstance();\r
                this.propertyName = name;\r
@@ -84,7 +84,7 @@ public abstract class PropertyItem extends JPanel implements ActionListener {
         *              System.out.println("[反映] "+ label.getText() +" = "+ text.getText());\r
         *              prop.setProperty(label.getText(), text.getText());\r
         *      }\r
-        * @param e\r
+        * @param e     イベント\r
         */\r
        public abstract void actionPerformed(ActionEvent e);\r
 }\r
index ab98d4c..f9dc419 100644 (file)
@@ -9,7 +9,7 @@ import javax.swing.JPasswordField;
 public class PropertyPasswordItem extends PropertyItem implements FocusListener\r
 {\r
        public PropertyPasswordItem(hayashi.yuu.tools.properties.Properties prop, String name, String title, boolean editable) {\r
-               super(prop, name, title, editable);\r
+               super(prop, name, title);\r
                field = new JPasswordField(value, 20);\r
                ((JPasswordField)field).addFocusListener(this);\r
                createItem(name, title, prop.getProperty(name), editable);\r
index 5f6a0b2..891c056 100644 (file)
@@ -7,7 +7,7 @@ import javax.swing.JComboBox;
 public class PropertySelectItem extends PropertyItem {\r
 \r
        public PropertySelectItem(hayashi.yuu.tools.properties.Properties prop, String name, String title, boolean editable, String[] items) {\r
-               super(prop, name, title, editable);\r
+               super(prop, name, title);\r
                field = new JComboBox();\r
                ((JComboBox)field).addActionListener(this);\r
                for (int i=0; i < items.length; i++) {\r
index edd921b..0b6cb0e 100644 (file)
@@ -30,7 +30,7 @@ public class PlaySound extends Thread
         * (2) playSound.start();
         *                      サウンド再生を実行。
         *
-        * @param args
+        * @param args  args
         */
        public static void main(String[] args) {
                /*
@@ -76,9 +76,10 @@ public class PlaySound extends Thread
 
        /**
         * コンストラクタ
-        * @throws IOException
-        * @throws UnsupportedAudioFileException
-        * @throws LineUnavailableException
+        * @param path  パス
+        * @throws IOException          例外
+        * @throws UnsupportedAudioFileException        例外
+        * @throws LineUnavailableException                     例外
         */
        public PlaySound(String path) throws IOException, UnsupportedAudioFileException, LineUnavailableException {
                super();
index 515e58f..0dc062f 100644 (file)
@@ -52,6 +52,8 @@ public class Command
      *  標準出力とエラー出力の結果を合成してかえす。\r
      *  よって、本メソッドを実行するとgetStdout(),getErrout()は無効になる\r
      *  このメソッドは、execCommand()メソッドを実行した直後の1回目の実行結果のみ有効\r
+     *  @return        result\r
+     *  @throws        IOException             例外\r
      */\r
     public String getOutput() throws IOException {\r
         String std = getStdout();\r
@@ -66,6 +68,8 @@ public class Command
     /**\r
      *  コマンド実行結果の標準出力\r
      *  このメソッドは、execCommand()メソッドを実行した直後の1回目の実行結果のみ有効\r
+     *  @throws        IOException     例外\r
+     *  @return        結果\r
      */\r
     public String getStdout() throws IOException {\r
         return convBufferedReader(this.stdReader);\r
@@ -74,6 +78,8 @@ public class Command
     /**\r
      *  コマンド実行結果のエラー出力\r
      *  このメソッドは、execCommand()メソッドを実行した直後の1回目の実行結果のみ有効\r
+     *  @throws        IOException     例外\r
+     *  @return        結果\r
      */\r
     public String getErrout() throws IOException {\r
         return convBufferedReader(this.errReader);\r
@@ -120,6 +126,7 @@ public class Command
 \r
     /** \r
     *  サンプル\r
+    * @param args      パラメータ\r
     */\r
     static public void main(String[] args) {\r
         if (args.length < 1) {\r
index bb5caff..fec4020 100644 (file)
@@ -11,6 +11,8 @@ public class JSendmail
     /** \r
      * サンプル\r
      * exp: java jp.co.areaweb.tools.command.JSendmail [parameter]\r
+     * @param args parameters\r
+     * @throws Exception       例外\r
      */\r
     static public void main(String[] args) throws Exception {\r
         String commandLine = "";\r
index 312050b..f27864b 100644 (file)
@@ -36,6 +36,7 @@ public class Job
 \r
     /** \r
     *  サンプル\r
+    * @param args      parameters\r
     */\r
     static public void main(String[] args) {\r
         if (args.length < 1) {\r
index 1399c7e..71134eb 100644 (file)
@@ -17,6 +17,8 @@ public class Xalan extends XmlJob
 {\r
     /** \r
      * Jobファイルに記述されたXSLT処理を順次実行する。\r
+     * @param jobgroupNodes            node\r
+     * @throws Exception               error\r
      */\r
     protected static void execJobElement(NodeList jobgroupNodes) throws Exception {\r
         execJobElement(jobgroupNodes, null);\r
@@ -64,6 +66,10 @@ public class Xalan extends XmlJob
 \r
     /**\r
      * xmlファイルをxslファイルで処理した結果をoutputファイルに出力する。\r
+     * @param xmlStr   string\r
+     * @param xslStr   string\r
+     * @param outputStr string\r
+     * @throws Exception               error\r
      */\r
     protected static void execXslt(String xmlStr, String xslStr, String outputStr) throws Exception {\r
         System.out.println("XALAN("+ xmlStr +" * "+ xslStr +") -> "+ outputStr);\r
index 241bda7..1bdcc30 100644 (file)
@@ -11,7 +11,7 @@ public class XmlJob
     /**\r
      * Jobファイルに記述されたコマンドを順次実行する。\r
      * @param jobFile Jobコマンドが記述されたファイル\r
-     * @throws IOException JOBファイルの読み込み障害\r
+     * @throws Exception JOBファイルの読み込み障害\r
      */\r
     public static void execJob(File jobFile) throws Exception {\r
         execJob(jobFile, null);\r
@@ -21,7 +21,7 @@ public class XmlJob
      * Jobファイルに記述されたコマンドを順次実行する。\r
      * @param jobFile Jobコマンドが記述されたファイル\r
      * @param workDir コマンドを実行するさいのカレントディレクトリ\r
-     * @throws IOException JOBファイルの読み込み障害\r
+     * @throws Exception JOBファイルの読み込み障害\r
      */\r
     public static void execJob(File jobFile, File workDir) throws Exception {\r
         if (jobFile == null) {\r
@@ -57,7 +57,8 @@ public class XmlJob
      * Jobファイルに記述されたコマンドを順次実行する。\r
      * @param jobFile Jobコマンドが記述されたファイル\r
      * @param workDir コマンドを実行するさいのカレントディレクトリ\r
-     * @throws IOException JOBファイルの読み込み障害\r
+     * @param jobgroupNodes    NodeList\r
+     * @throws Exception JOBファイルの読み込み障害\r
      */\r
     protected static void execJobElement(File jobFile, File workDir, NodeList jobgroupNodes)\r
             throws Exception {\r
@@ -107,6 +108,9 @@ public class XmlJob
 \r
     /**\r
      * Vector commandsに格納されたコマンドを順次実行する。\r
+     * @param stdout   string\r
+     * @param errout   string\r
+     * @param commands Vector\r
      * @throws IOException JOBファイルの読み込み障害\r
      */\r
     protected static void execJobs(String stdout, String errout, Vector<Command> commands) throws IOException {\r
@@ -133,6 +137,8 @@ public class XmlJob
     \r
     /** \r
     *  サンプル\r
+    * @param args      strings\r
+    * @throws  Exception               error\r
     */\r
     static public void main(String[] args) throws Exception {\r
         if (args.length < 1) {\r
index 25aa8c8..903fea9 100644 (file)
@@ -16,7 +16,7 @@ public class MemoryCheck {
         *                      -Xmx最大ヒープサイズ\r
         *                              Java仮想マシンへの最大メモリ割り当て量を指定します。デフォルトは64MBです。\r
         * \r
-        * @param args\r
+        * @param args  strings\r
         */\r
        public static void main(String[] args) {\r
                System.out.println(getMemoryInfo());\r
index 8c9ac61..0c99456 100644 (file)
@@ -13,9 +13,10 @@ package jp.co.areaweb.tools.core;
 public abstract class Tax {\r
        public static int taxRates = 5; // 消費税率。パーセンテージで示す。\r
                                                                                // 税率が変更されたときにはこの値を直接変更する。\r
-       \r
        /**\r
         * 総額に対する本体の金額を求める。\r
+        * @param totalValue    long\r
+        * @return 結果\r
         */\r
        public static long calcBody(long totalValue) {\r
                return Math.round((new Long(totalValue)).doubleValue() * 100 / (100 + taxRates));\r
@@ -23,6 +24,8 @@ public abstract class Tax {
 \r
        /**\r
         * 総額に対する消費税額を求める。\r
+        * @param totalValue    long\r
+        * @return 結果\r
         */\r
        public static long calcTax(long totalValue) {\r
                return totalValue - calcBody(totalValue) ;\r
@@ -31,6 +34,8 @@ public abstract class Tax {
 \r
        /**\r
         * 本体価格に対する消費税額を求める。\r
+        * @param bodyValue     long\r
+        * @return 結果\r
         */\r
        public static long toTax(long bodyValue) {\r
                return Math.round((new Long(bodyValue)).doubleValue() * taxRates / 100);\r
@@ -38,6 +43,8 @@ public abstract class Tax {
 \r
        /**\r
         * 本体価格に対する総額を求める。\r
+        * @param bodyValue     long\r
+        * @return 結果\r
         */\r
        public static long toTotal(long bodyValue) {\r
                return bodyValue + toTax(bodyValue);\r
index f23ebc5..3eb9217 100644 (file)
@@ -62,6 +62,7 @@ public class CsvFile extends LinkedList<CsvRecord> {
        \r
        /**\r
         * CVSファイルからデータを読みだします。\r
+        * @throws      Exception       例外\r
         */\r
        public void load() throws Exception {\r
                this.load(0);\r
@@ -70,6 +71,8 @@ public class CsvFile extends LinkedList<CsvRecord> {
        /**\r
         * CVSファイルからデータを読みだします。\r
         * (読み出し数の制限付き)\r
+        * @param limit                 読み出し数の制限\r
+        * @throws      Exception       例外\r
         */\r
        public void load(int limit) throws Exception {\r
                this.clear();\r
@@ -113,6 +116,7 @@ public class CsvFile extends LinkedList<CsvRecord> {
 \r
        /**\r
         * 元ファイルを設定する。\r
+        * @param       file    File\r
         */\r
        public void setFile(File file) {\r
                this.file = file;\r
@@ -147,6 +151,7 @@ public class CsvFile extends LinkedList<CsvRecord> {
 \r
        /**\r
         * データ内容をファイルに書き戻す。<br>\r
+        * @param outputFile    出力ファイル\r
         * @throws IOException ファイルへの書き出しに失敗した。\r
         */\r
        public void save(File outputFile) throws IOException {\r
index a55a0dd..f543145 100644 (file)
@@ -22,7 +22,8 @@ public class CsvReader
         * CSVファイルの読み取りを行う。\r
         * (読み出し可能ファイルサイズ=最大8MBまで)\r
         * \r
-        * @param args\r
+        * @param args  パラメータ\r
+        * @throws      Exception       error\r
         */\r
        public static void main(String[] args) throws Exception {\r
                File file = new File("test.csv");\r
@@ -56,8 +57,8 @@ public class CsvReader
         * fileで指定されたファイルを対象のCSVファイルとします.\r
         * \r
         * @param file 対象のCSVファイル\r
-        * @throws IOException \r
-        * @throws UnsupportedEncodingException \r
+        * @throws IOException          例外\r
+        * @throws UnsupportedEncodingException 例外\r
         */\r
        public CsvReader(File file) throws UnsupportedEncodingException, IOException {\r
                this(file, false, ",");\r
@@ -68,8 +69,10 @@ public class CsvReader
         * fileで指定されたファイルを対象のCSVファイルとします.\r
         * \r
         * @param file 対象のCSVファイル\r
-        * @throws IOException \r
-        * @throws UnsupportedEncodingException \r
+        * @param titleLine             boolean\r
+        * @param split                 string\r
+        * @throws IOException          例外\r
+        * @throws UnsupportedEncodingException 例外\r
         */\r
        public CsvReader(File file, boolean titleLine, String split) throws UnsupportedEncodingException, IOException {\r
                this.file = file;\r
@@ -81,6 +84,8 @@ public class CsvReader
        /**\r
         * CVSファイルからデータを読みだします。\r
         * (読み出し可能ファイルサイズ=最大8MBまで)\r
+        * @throws Exception            例外\r
+        * @return      読み出しサイズ\r
         */\r
        public int load() throws Exception {\r
                this.reader = new LineNumberReader(new InputStreamReader(new FileInputStream(this.file), this.charsetName));\r
@@ -123,7 +128,7 @@ public class CsvReader
         * @param index 検索対象とする列番号(0~)\r
         * @param dataStr 検索値\r
         * @return 条件に合致したレコード(複数)\r
-        * @throws IOException \r
+        * @throws IOException          例外\r
         */\r
        public LinkedList<CsvRecord> find(int index, String dataStr) throws IOException {\r
                if ((index < 0) || (index > this.size)) {\r
index 2fdee4b..dc69e09 100644 (file)
@@ -9,8 +9,11 @@ public class DatabaseTool
     /**\r
      * 設定ファイルに従って、データベースコネクションをオープンしてコネクションを得る。\r
      * 指定のデータベースが存在しないときは新に作成する。\r
+     * @param  propertiesFileName      プロパティファイル\r
      * @throws ClassNotFoundException 指定のデータベースドライバが見つからなかった\r
      * @throws SQLException データベース障害\r
+     * @throws FileNotFoundException error\r
+     * @throws IOException error\r
      * @return データベースコネクション\r
      */    \r
     public static Connection openDb(String propertiesFileName) throws ClassNotFoundException,SQLException,FileNotFoundException,IOException {\r
@@ -40,6 +43,8 @@ public class DatabaseTool
      * 指定のデータベースが存在しないときは新に作成する。\r
      * @throws ClassNotFoundException 指定のデータベースドライバが見つからなかった\r
      * @throws SQLException データベース障害\r
+     * @throws FileNotFoundException error\r
+     * @throws IOException error\r
      * @return データベースコネクション\r
      */    \r
     public static Connection openDb() throws ClassNotFoundException,SQLException,FileNotFoundException,IOException {\r
index eb32f92..868b64b 100644 (file)
@@ -30,6 +30,7 @@ public class DoSQL
      * sqlfileの中のSQL文を1行づつ実行する。\r
      * ・SELECT文は実行できない。\r
      * ・一つのSQL文は1行で記述すること。(途中改行はだめ)\r
+     * @param propertieFile            プロパティファイル\r
      * @param sqlfile SQL文が記述されたファイル。\r
      */\r
     public static void doSQL(String propertieFile, String sqlfile) {\r
index 6ac6e81..6a5b84e 100644 (file)
@@ -31,6 +31,7 @@ public class Select
      * sqlfileの中のSQL文を1行づつ実行する。\r
      * ・SELECT文は実行できない。\r
      * ・一つのSQL文は1行で記述すること。(途中改行はだめ)\r
+     * @param propertieFile            プロパティファイル\r
      * @param sqlfile SQL文が記述されたファイル。\r
      */\r
     public static void doSQL(String propertieFile, String sqlfile) {\r
index b09c1cd..9c0e586 100644 (file)
@@ -16,7 +16,7 @@ public class ClipbordTest extends Component implements ClipboardOwner {
        }\r
 \r
        /**\r
-        * @param args\r
+        * @param args  parameter\r
         */\r
        public static void main(String[] args) {\r
                // TODO Auto-generated method stub\r
index 0f2f92c..d48c872 100644 (file)
@@ -165,6 +165,7 @@ public class Manager extends JFrame
        /**\r
         * このクラスをインスタンスを生成して表示する。\r
         * コマンドラインの引数はありません。\r
+        * @param args  parameter\r
         */    \r
     static public void main(String args[]) {\r
         (new Manager()).setVisible(true);\r
index e4681a5..96f3e58 100644 (file)
@@ -19,6 +19,11 @@ public class XmlTool extends java.lang.Object {
      * <!ELEMENT change (hiduke,user)>\r
      * <!ELEMENT hiduke (#PCDATA)>\r
      * <!ELEMENT user (#PCDATA)><!ATTLIST user id CDATA #IMPLIED>\r
+     * @param document Document\r
+     * @param elementName      string\r
+     * @param hiduke   日付\r
+     * @param userid   int\r
+     * @return Element\r
      */\r
     public static Element setEntryElement(Document document, String elementName, java.util.Date hiduke, int userid) {\r
         return setEntryElement(document, elementName, exchengeDate2TimeInstant(hiduke), userid, "user");\r
index ea639f5..b7e69d0 100644 (file)
@@ -18,7 +18,10 @@ import org.w3c.dom.*;               // jaxp.jar
  * @version 00-00\r
  */\r
 public class YuuMailXml extends SendMail {\r
-    /** Creates new YuuMail */\r
+    /** \r
+     * Creates new YuuMail \r
+     * @param siteData DATA\r
+     */\r
     public YuuMailXml(SiteData siteData) {\r
         super(siteData);\r
     }\r
@@ -96,6 +99,7 @@ public class YuuMailXml extends SendMail {
     \r
     /**\r
      * "jp.co.areaweb.tools.common.YuuMailXml <property.xml> <sendMail.xml>"\r
+     * @param args     parameter\r
      */\r
     public static void main(java.lang.String[] args) {\r
         String inputfile;\r
diff --git a/test/hayashi/tools/files/DeleteDirTest.java b/test/hayashi/tools/files/DeleteDirTest.java
new file mode 100644 (file)
index 0000000..d9e188a
--- /dev/null
@@ -0,0 +1,15 @@
+package hayashi.tools.files;
+
+import java.io.File;
+
+import org.junit.Test;
+
+import junit.framework.TestCase;
+
+public class DeleteDirTest extends TestCase {
+
+       @Test(expected = Exception.class)
+       public void 指定したファイルがないとき() throws Exception {
+               DeleteDir.listup(new File("testspace", "FOLDER"));
+       }
+}
@@ -12,7 +12,7 @@ import junit.framework.TestCase;
  * 文字列のトリミングを行う.通常のjava.lang.String.trim()の機能に加えて、\r
  * 全角スペースもトリム対象の文字に加える。\r
  */\r
-public class TestJapaneseString extends TestCase {\r
+public class JapaneseStringTest extends TestCase {\r
 \r
        /**\r
         * テスト\r
@@ -17,7 +17,7 @@ import junit.framework.TestCase;
  * @param keta\r
  * @return\r
  */\r
-public class TestMakeString extends TestCase {\r
+public class MakeStringTest extends TestCase {\r
 \r
        /**\r
         * テスト1\r
similarity index 92%
rename from test/jp/co/areaweb/tools/core/TestTax.java
rename to test/jp/co/areaweb/tools/core/TaxTest.java
index 21c4354..d64eea3 100644 (file)
@@ -4,14 +4,13 @@
  */\r
 package jp.co.areaweb.tools.core;\r
 \r
-import jp.co.areaweb.tools.core.Tax;\r
 import junit.framework.TestCase;\r
 \r
 /**\r
  * @author y_hayashi\r
  *\r
  */\r
-public class TestTax extends TestCase {\r
+public class TaxTest extends TestCase {\r
 \r
        /**\r
         * テスト1\r
diff --git a/testspace/README.txt b/testspace/README.txt
new file mode 100644 (file)
index 0000000..6d6355e
--- /dev/null
@@ -0,0 +1 @@
+テスト用のワーク領域\r