public class XMLPanelUtils extends Object
| Constructor and Description |
|---|
XMLPanelUtils() |
| Modifier and Type | Method and Description |
|---|---|
static List<Node> |
getAttributeChildren(Node parentNode)
Busca lista de nós filhos de um tipo do tipo {Node#ELEMENT_NODE}.
|
static String |
getAttributeValue(Node node,
String attrName)
Busca lista de nós filhos de um tipo do tipo {Node#ELEMENT_NODE}.
|
static List<Node> |
getElementChildren(Node parentNode)
Busca lista de nós filhos de um tipo do tipo {Node#ELEMENT_NODE}.
|
static Node |
getFirstChild(Node parentNode,
String childName)
Busca primeiro filho com base em um nome
|
static String |
getFirstChildAttributeValue(Node parentNode,
String childName,
String attrName)
Consulta valor de atributo de primeiro filho de nó.
|
static Node |
getRootNode(csbase.logic.ClientFile clientFile,
EntityResolver resolver,
Charset charset)
Criação de documento DOM com base em entrada.
|
static Node |
getRootNode(InputStream stream,
EntityResolver er,
Charset charset)
Criação de documento DOM com base em entrada.
|
static boolean |
hasAttributeValue(Node node,
String attrName,
String valueText)
Indica de nó tem um atributo com determinado valor textual.
|
public static List<Node> getAttributeChildren(Node parentNode)
parentNode - o nó de busca (pai)public static String getFirstChildAttributeValue(Node parentNode, String childName, String attrName)
parentNode - nóchildName - nome do tag do filhoattrName - nome do atributopublic static String getAttributeValue(Node node, String attrName)
node - o nó de buscaattrName - nome do atributopublic static boolean hasAttributeValue(Node node, String attrName, String valueText)
node - nóattrName - nome do atributovalueText - texto buscado.public static Node getFirstChild(Node parentNode, String childName)
parentNode - nóchildName - nome a ser busacado.null).public static List<Node> getElementChildren(Node parentNode)
parentNode - o nó de busca (pai)public static Node getRootNode(csbase.logic.ClientFile clientFile, EntityResolver resolver, Charset charset) throws Exception
clientFile - arquivoresolver - resolver.charset - charsetException - em caso de erro.public static Node getRootNode(InputStream stream, EntityResolver er, Charset charset) throws Exception
stream - entradaer - resolver.charset - charsetException - em caso de erro.Copyright © 2016. All rights reserved.