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