jp.ne.mki.wedge.pub.vfunit.util
クラス NodeUtil

java.lang.Object
  上位を拡張 jp.ne.mki.wedge.pub.vfunit.util.NodeUtil

public class NodeUtil
extends java.lang.Object


コンストラクタの概要
NodeUtil()
           
 
メソッドの概要
static java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attributeName)
          属性の値を取得
static java.lang.String getAttributeNN(org.w3c.dom.Node node, java.lang.String attributeName)
          属性の値を取得 ノードが無いなどの場合は "" (空文字)を返す
static org.w3c.dom.Document getDocument(java.io.File xmlFile)
          ファイルから XMLDocument取得
static org.w3c.dom.Document getDocument(java.io.File xmlFile, boolean isValidCheck)
          ファイルから XMLDocument取得
static org.w3c.dom.Document getDocument(org.xml.sax.InputSource input, boolean isValidCheck)
          InputSourceからXmlDocument
static org.w3c.dom.NodeList getNodeList(org.w3c.dom.Node node, java.lang.String xpath)
          XPath から NodeList を取得
static java.lang.String getTextContent(org.w3c.dom.Node node)
           
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

NodeUtil

public NodeUtil()
メソッドの詳細

getDocument

public static org.w3c.dom.Document getDocument(java.io.File xmlFile)
                                        throws java.lang.Exception
ファイルから XMLDocument取得

パラメータ:
xmlFile -
戻り値:
例外:
java.lang.Exception

getDocument

public static org.w3c.dom.Document getDocument(java.io.File xmlFile,
                                               boolean isValidCheck)
                                        throws java.lang.Exception
ファイルから XMLDocument取得

パラメータ:
xmlFile -
戻り値:
例外:
java.lang.Exception

getDocument

public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource input,
                                               boolean isValidCheck)
                                        throws java.lang.Exception
InputSourceからXmlDocument

パラメータ:
input -
isValidCheck -
戻り値:
例外:
java.lang.Exception

getNodeList

public static org.w3c.dom.NodeList getNodeList(org.w3c.dom.Node node,
                                               java.lang.String xpath)
                                        throws java.lang.Exception
XPath から NodeList を取得

パラメータ:
node -
xpath -
戻り値:
例外:
java.lang.Exception

getTextContent

public static java.lang.String getTextContent(org.w3c.dom.Node node)

getAttributeNN

public static java.lang.String getAttributeNN(org.w3c.dom.Node node,
                                              java.lang.String attributeName)
属性の値を取得 ノードが無いなどの場合は "" (空文字)を返す

パラメータ:
node -
attributeName -
戻り値:

getAttribute

public static java.lang.String getAttribute(org.w3c.dom.Node node,
                                            java.lang.String attributeName)
属性の値を取得

パラメータ:
node -
attributeName -
戻り値: