概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド

## jp.co.scs.mbench
クラス DocumentUtil

    java.lang.Object
      jp.co.scs.mbench.DocumentUtil

    public class DocumentUtil

extends java.lang.Object

Utility class regarding to configuration file.

作成者:
  Tetsuro Ikeda

コンストラクタの概要
`DocumentUtil()`

メソッドの概要
`static BenchmarkInfo` | `getBenchmarkInfo(java.lang.String benchmarkName)` Gets the benchmark information from configuration file.
`static BenchmarkInfo` | `getBenchmarkInfo(java.lang.String benchmarkName, java.lang.String fileName)` Gets the benchmark information from configuration file.
`static BenchmarkInfo` | `getBenchmarkInfo(java.lang.String benchmarkName, java.lang.String fileName, java.lang.String encoding)` Gets the benchmark information from configuration file.
`static DataSourceInfo` | `getDataSourceInfo(java.lang.String dataSourceName)` Gets the datasource information from configuration file.
`static DataSourceInfo` | `getDataSourceInfo(java.lang.String dataSourceName, java.lang.String fileName)` Gets the datasource information from configuration file.
`static DataSourceInfo` | `getDataSourceInfo(java.lang.String dataSourceName, java.lang.String fileName, java.lang.String encoding)` Gets the datasource information from configuration file.
`static org.w3c.dom.Document` | `getDocument()` Gets the DOM document from configration file
`static org.w3c.dom.Document` | `getDocument(java.lang.String fileName)` Gets the DOM document from configuration file.
`static org.w3c.dom.Document` | `getDocument(java.lang.String fileName, java.lang.String encoding)` Gets the DOM document from configuration file.
`static FinalizerInfo` | `getFinalizerInfo(java.lang.String finalizerName)` Gets the finalizer information from configuration file.
`static FinalizerInfo` | `getFinalizerInfo(java.lang.String finalizerName, java.lang.String fileName)` Gets the finalizer information from configuration file.
`static FinalizerInfo` | `getFinalizerInfo(java.lang.String finalizerName, java.lang.String fileName, java.lang.String encoding)` Gets the finalizer information from configuration file.
`static InitializerInfo` | `getInitializerInfo(java.lang.String initializerName)` Gets the initializer information from configuration file
`static InitializerInfo` | `getInitializerInfo(java.lang.String initializerName, java.lang.String fileName)` Gets the initializer information from configuration file
`static InitializerInfo` | `getInitializerInfo(java.lang.String initializerName, java.lang.String fileName, java.lang.String encoding)` Gets the initializer information from configuration file
`static MultiNodeInfo` | `getMultiNodeInfo(java.lang.String name)` Gets the multi-node information from configuration file.
`static MultiNodeInfo` | `getMultiNodeInfo(java.lang.String name, java.lang.String fileName)` Gets the multi-node information from configuration file.
`static MultiNodeInfo` | `getMultiNodeInfo(java.lang.String name, java.lang.String fileName, java.lang.String encoding)` Gets the multi-node information from configuration file.
`static MultiServerInfo` | `getMultiServerInfo(java.lang.String multiServerName)` Gets the multi-server information from configuration file.
`static MultiServerInfo` | `getMultiServerInfo(java.lang.String multiServerName, java.lang.String fileName)` Gets the multi-server information from configuration file.
`static MultiServerInfo` | `getMultiServerInfo(java.lang.String multiServerName, java.lang.String fileName, java.lang.String encoding)` Gets the multi-server information from configuration file.

クラス java.lang.Object から継承されたメソッド
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

コンストラクタの詳細

### DocumentUtil

    public DocumentUtil()

メソッドの詳細

### getDocument

    public static org.w3c.dom.Document getDocument()
                                            throws java.io.IOException,
                                                   javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException

  Gets the DOM document from configration file

  戻り値:
    DOM document
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getDocument

    public static org.w3c.dom.Document getDocument(java.lang.String fileName)
                                            throws java.io.IOException,
                                                   javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException

  Gets the DOM document from configuration file.

  パラメータ:
    `fileName` - configuration file name (path)
  戻り値:
    DOM document
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getDocument

    public static org.w3c.dom.Document getDocument(java.lang.String fileName,
                                                   java.lang.String encoding)
                                            throws java.io.IOException,
                                                   javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException

  Gets the DOM document from configuration file.

  パラメータ:
    `fileName` - configuration file name (path)
    `encoding` - file encoding
  戻り値:
    DOM document
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getInitializerInfo

    public static InitializerInfo getInitializerInfo(java.lang.String initializerName)
                                              throws java.io.IOException,
                                                     javax.xml.parsers.ParserConfigurationException,
                                                     org.xml.sax.SAXException

  Gets the initializer information from configuration file

  パラメータ:
    `initializerName` - definition name of initialization
  戻り値:
    initiarizer information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getInitializerInfo

    public static InitializerInfo getInitializerInfo(java.lang.String initializerName,
                                                     java.lang.String fileName)
                                              throws java.io.IOException,
                                                     javax.xml.parsers.ParserConfigurationException,
                                                     org.xml.sax.SAXException

  Gets the initializer information from configuration file

  パラメータ:
    `initializerName` - definition name of initialization
    `fileName` - configuration file name (path)
  戻り値:
    initiarizer information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getInitializerInfo

    public static InitializerInfo getInitializerInfo(java.lang.String initializerName,
                                                     java.lang.String fileName,
                                                     java.lang.String encoding)
                                              throws java.io.IOException,
                                                     javax.xml.parsers.ParserConfigurationException,
                                                     org.xml.sax.SAXException

  Gets the initializer information from configuration file

  パラメータ:
    `initializerName` - definition name of initialization
    `fileName` - configuration file name (path)
    `encoding` - configuration file encoding
  戻り値:
    initiarizer information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getDataSourceInfo

    public static DataSourceInfo getDataSourceInfo(java.lang.String dataSourceName)
                                            throws java.io.IOException,
                                                   javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException

  Gets the datasource information from configuration file.

  パラメータ:
    `dataSourceName` - definition name fo datasource
  戻り値:
    datasource information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getDataSourceInfo

    public static DataSourceInfo getDataSourceInfo(java.lang.String dataSourceName,
                                                   java.lang.String fileName)
                                            throws java.io.IOException,
                                                   javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException

  Gets the datasource information from configuration file.

  パラメータ:
    `dataSourceName` - definition name fo datasource
    `fileName` - configuration file name
  戻り値:
    datasource information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getDataSourceInfo

    public static DataSourceInfo getDataSourceInfo(java.lang.String dataSourceName,
                                                   java.lang.String fileName,
                                                   java.lang.String encoding)
                                            throws java.io.IOException,
                                                   javax.xml.parsers.ParserConfigurationException,
                                                   org.xml.sax.SAXException

  Gets the datasource information from configuration file.

  パラメータ:
    `dataSourceName` - definition name fo datasource
    `fileName` - configuration file name
    `encoding` - configuration file encoding
  戻り値:
    datasource information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getBenchmarkInfo

    public static BenchmarkInfo getBenchmarkInfo(java.lang.String benchmarkName)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the benchmark information from configuration file.

  パラメータ:
    `benchmarkName` - definition name of benchmark
  戻り値:
    benchmark information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getBenchmarkInfo

    public static BenchmarkInfo getBenchmarkInfo(java.lang.String benchmarkName,
                                                 java.lang.String fileName)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the benchmark information from configuration file.

  パラメータ:
    `benchmarkName` - definition name of benchmark
    `fileName` - configuration file name
  戻り値:
    benchmark information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getBenchmarkInfo

    public static BenchmarkInfo getBenchmarkInfo(java.lang.String benchmarkName,
                                                 java.lang.String fileName,
                                                 java.lang.String encoding)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the benchmark information from configuration file.

  パラメータ:
    `benchmarkName` - definition name of benchmark
    `fileName` - configuration file name
    `encoding` - configuration file encoding
  戻り値:
    benchmark information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getMultiNodeInfo

    public static MultiNodeInfo getMultiNodeInfo(java.lang.String name)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the multi-node information from configuration file.

  パラメータ:
    `name` - definition name of multi-node
  戻り値:
    multi-node information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getMultiNodeInfo

    public static MultiNodeInfo getMultiNodeInfo(java.lang.String name,
                                                 java.lang.String fileName)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the multi-node information from configuration file.

  パラメータ:
    `name` - definition name of multi-node
    `fileName` - configuration file name
  戻り値:
    multi-node information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getMultiNodeInfo

    public static MultiNodeInfo getMultiNodeInfo(java.lang.String name,
                                                 java.lang.String fileName,
                                                 java.lang.String encoding)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the multi-node information from configuration file.

  パラメータ:
    `name` - definition name of multi-node
    `fileName` - configuration file name
    `encoding` - configuration file encoding
  戻り値:
    multi-node information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getFinalizerInfo

    public static FinalizerInfo getFinalizerInfo(java.lang.String finalizerName)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the finalizer information from configuration file.

  パラメータ:
    `finalizerName` - definition name of finalizer
  戻り値:
    finalizer information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getFinalizerInfo

    public static FinalizerInfo getFinalizerInfo(java.lang.String finalizerName,
                                                 java.lang.String fileName)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the finalizer information from configuration file.

  パラメータ:
    `finalizerName` - definition name of finalizer
    `fileName` - configuration file name
  戻り値:
    finalizer information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getFinalizerInfo

    public static FinalizerInfo getFinalizerInfo(java.lang.String finalizerName,
                                                 java.lang.String fileName,
                                                 java.lang.String encoding)
                                          throws java.io.IOException,
                                                 javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException

  Gets the finalizer information from configuration file.

  パラメータ:
    `finalizerName` - definition name of finalizer
    `fileName` - configuration file name
    `encoding` - configuration file encoding
  戻り値:
    finalizer information
  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getMultiServerInfo

    public static MultiServerInfo getMultiServerInfo(java.lang.String multiServerName)
                                              throws java.io.IOException,
                                                     javax.xml.parsers.ParserConfigurationException,
                                                     org.xml.sax.SAXException

  Gets the multi-server information from configuration file.

  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getMultiServerInfo

    public static MultiServerInfo getMultiServerInfo(java.lang.String multiServerName,
                                                     java.lang.String fileName)
                                              throws java.io.IOException,
                                                     javax.xml.parsers.ParserConfigurationException,
                                                     org.xml.sax.SAXException

  Gets the multi-server information from configuration file.

  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

### getMultiServerInfo

    public static MultiServerInfo getMultiServerInfo(java.lang.String multiServerName,
                                                     java.lang.String fileName,
                                                     java.lang.String encoding)
                                              throws java.io.IOException,
                                                     javax.xml.parsers.ParserConfigurationException,
                                                     org.xml.sax.SAXException

  Gets the multi-server information from configuration file.

  例外:
    `java.io.IOException`
    `javax.xml.parsers.ParserConfigurationException`
    `org.xml.sax.SAXException`

概要 | パッケージ | クラス | 使用 | 階層ツリー | 非推奨 API | 索引 | ヘルプ
前のクラス 次のクラス | フレームあり フレームなし
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド