|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjp.ne.mki.wedge.pub.vfunit.util.NodeUtil
public class NodeUtil
コンストラクタの概要 | |
---|---|
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 |
コンストラクタの詳細 |
---|
public NodeUtil()
メソッドの詳細 |
---|
public static org.w3c.dom.Document getDocument(java.io.File xmlFile) throws java.lang.Exception
xmlFile
-
java.lang.Exception
public static org.w3c.dom.Document getDocument(java.io.File xmlFile, boolean isValidCheck) throws java.lang.Exception
xmlFile
-
java.lang.Exception
public static org.w3c.dom.Document getDocument(org.xml.sax.InputSource input, boolean isValidCheck) throws java.lang.Exception
input
- isValidCheck
-
java.lang.Exception
public static org.w3c.dom.NodeList getNodeList(org.w3c.dom.Node node, java.lang.String xpath) throws java.lang.Exception
node
- xpath
-
java.lang.Exception
public static java.lang.String getTextContent(org.w3c.dom.Node node)
public static java.lang.String getAttributeNN(org.w3c.dom.Node node, java.lang.String attributeName)
node
- attributeName
-
public static java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attributeName)
node
- attributeName
-
|
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |