-
public class XmlUtils
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceXmlUtils.NodeProcessor
-
Method Summary
Modifier and Type Method Description static NodegetFirstMatchingNode(Node node, String nodeName)static NodegetFirstMatchingNode(Node node, String nodeName, String attributeName, List<String> attributeValues)static List<Node>getMatchingNodes(Node node, String nodeName)static List<Node>getMatchingNodes(Node node, String nodeName, String attributeName, List<String> attributeValues)static booleannodeMatchesAttributeFilter(Node node, String attributeName, List<String> attributeValues)static StringgetNodeValue(Node node)static IntegergetAttributeValueAsInt(Node node, String attributeName)static StringgetAttributeValue(Node node, String attributeName)static <T> List<T>getListFromDocument(Document vastDoc, String elementName, String attributeName, String attributeValue, XmlUtils.NodeProcessor<T> nodeProcessor)static <T> TgetFirstMatchFromDocument(Document vastDoc, String elementName, String attributeName, String attributeValue, XmlUtils.NodeProcessor<T> nodeProcessor)static StringgetFirstMatchingStringData(Document vastDoc, String elementName)static StringgetFirstMatchingStringData(Document vastDoc, String elementName, String attributeName, String attributeValue)static List<String>getStringDataAsList(Document vastDoc, String elementName)static List<String>getStringDataAsList(Document vastDoc, String elementName, String attributeName, String attributeValue)static List<Node>getNodesWithElementAndAttribute(Document vastDoc, String elementName, String attributeName, String attributeValue)-
-
Method Detail
-
getFirstMatchingNode
static Node getFirstMatchingNode(Node node, String nodeName)
-
getFirstMatchingNode
static Node getFirstMatchingNode(Node node, String nodeName, String attributeName, List<String> attributeValues)
-
getMatchingNodes
static List<Node> getMatchingNodes(Node node, String nodeName)
-
getMatchingNodes
static List<Node> getMatchingNodes(Node node, String nodeName, String attributeName, List<String> attributeValues)
-
nodeMatchesAttributeFilter
static boolean nodeMatchesAttributeFilter(Node node, String attributeName, List<String> attributeValues)
-
getNodeValue
static String getNodeValue(Node node)
-
getAttributeValueAsInt
static Integer getAttributeValueAsInt(Node node, String attributeName)
-
getAttributeValue
static String getAttributeValue(Node node, String attributeName)
-
getListFromDocument
static <T> List<T> getListFromDocument(Document vastDoc, String elementName, String attributeName, String attributeValue, XmlUtils.NodeProcessor<T> nodeProcessor)
-
getFirstMatchFromDocument
static <T> T getFirstMatchFromDocument(Document vastDoc, String elementName, String attributeName, String attributeValue, XmlUtils.NodeProcessor<T> nodeProcessor)
-
getFirstMatchingStringData
static String getFirstMatchingStringData(Document vastDoc, String elementName)
-
getFirstMatchingStringData
static String getFirstMatchingStringData(Document vastDoc, String elementName, String attributeName, String attributeValue)
-
getStringDataAsList
static List<String> getStringDataAsList(Document vastDoc, String elementName)
-
getStringDataAsList
static List<String> getStringDataAsList(Document vastDoc, String elementName, String attributeName, String attributeValue)
-
-
-
-