本文整理了Java中org.w3c.dom.Element.lookupNamespaceURI()
方法的一些代码示例,展示了Element.lookupNamespaceURI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.lookupNamespaceURI()
方法的具体详情如下:
包路径:org.w3c.dom.Element
类名称:Element
方法名:lookupNamespaceURI
暂无
代码示例来源:origin: robovm/robovm
case Node.ATTRIBUTE_NODE:{
if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {
return getOwnerElement().lookupNamespaceURI(specifiedPrefix);
代码示例来源:origin: robovm/robovm
case Node.ATTRIBUTE_NODE:{
if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {
return getOwnerElement().lookupNamespaceURI(specifiedPrefix);
代码示例来源:origin: robovm/robovm
case Node.ATTRIBUTE_NODE:{
if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {
return getOwnerElement().lookupNamespaceURI(specifiedPrefix);
代码示例来源:origin: xalan/xalan
case Node.ATTRIBUTE_NODE:{
if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {
return getOwnerElement().lookupNamespaceURI(specifiedPrefix);
代码示例来源:origin: xalan/xalan
case Node.ATTRIBUTE_NODE:{
if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {
return getOwnerElement().lookupNamespaceURI(specifiedPrefix);
代码示例来源:origin: xalan/xalan
case Node.ATTRIBUTE_NODE:{
if (this.getOwnerElement().getNodeType() == Node.ELEMENT_NODE) {
return getOwnerElement().lookupNamespaceURI(specifiedPrefix);
代码示例来源:origin: org.apache.cxf/cxf-rt-frontend-jaxws
String ns = el.lookupNamespaceURI(pfx);
if (ns == null) {
ns = pfx;
代码示例来源:origin: org.switchyard/switchyard-config
/**
* {@inheritDoc}
*/
@Override
public String lookupNamespaceURI(String prefix) {
return _element.lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-common-xml
public static String getNamespaceURI(Element element, String prefix) {
if (XMLConstants.DEFAULT_NS_PREFIX.equals(prefix)) {
prefix = null;
}
return element.lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.apache.tuscany.sca/tuscany-base-runtime
public static String getNamespaceURI(Element element, String prefix) {
if (XMLConstants.DEFAULT_NS_PREFIX.equals(prefix)) {
prefix = null;
}
return element.lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.apache.ws.commons.schema/XmlSchema
private static String getNamespaceURIDomLevel3(Element el, String pfx) {
if ("".equals(pfx)) {
pfx = null;
}
return el.lookupNamespaceURI(pfx);
}
代码示例来源:origin: com.jamesmurty.utils/java-xmlbuilder
public String getNamespaceURI(String prefix) {
String namespaceURI = this.prefixToNsUriMap.get(prefix);
if (namespaceURI == null && this.element != null) {
// Need null to find default namespace, not an empty string
if (prefix != null && prefix.length() == 0) {
prefix = null;
}
namespaceURI = this.element.lookupNamespaceURI(prefix);
}
return namespaceURI;
}
代码示例来源:origin: com.sun.phobos/phobos-rhino
private void setElementDefaultNamespaces(Document document, String defaultNamespaceUri) {
NodeList elements = document.getElementsByTagName("*");
for (int i=0; i<elements.getLength(); i++) {
Element element = (Element)elements.item(i);
if (element.getPrefix() == null) {
if (element.lookupNamespaceURI(null) == null) {
element.getOwnerDocument().renameNode(element, defaultNamespaceUri, element.getTagName());
}
}
}
}
代码示例来源:origin: org.opensingular/form-core
/**
* @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
*/
@Override
public String lookupNamespaceURI(String prefix) {
return original.get().lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.apache.ws.commons.axiom/dom-testsuite
@Override
protected void runTest() throws Throwable {
Document document = dbf.newDocumentBuilder().newDocument();
Element root = document.createElementNS("urn:test", "root");
document.appendChild(root);
Element child = document.createElementNS(null, "child");
root.appendChild(child);
assertThat(child.lookupNamespaceURI(null)).isNull();
}
}
代码示例来源:origin: org.opensingular/singular-commons
/**
* @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
*/
public String lookupNamespaceURI(String prefix) {
return getCurrentInternal().lookupNamespaceURI(prefix);
}
代码示例来源:origin: com.marklogic/marklogic-mapreduce2
/** {@inheritDoc} */
@Override
public String lookupNamespaceURI(String prefix) {
return getOwnerElement().lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.opensingular/singular-commons
/**
* @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
*/
@Override
public String lookupNamespaceURI(String prefix) {
return original.get().lookupNamespaceURI(prefix);
}
代码示例来源:origin: Geomatys/geotoolkit
@Override
public String lookupNamespaceURI(String prefix) {
final Element elem = getElement();
return elem != null ? elem.lookupNamespaceURI(prefix) : null;
}
代码示例来源:origin: org.opensingular/form-core
/**
* @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
*/
public String lookupNamespaceURI(String prefix) {
return getAtualInterno().lookupNamespaceURI(prefix);
}
内容来源于网络,如有侵权,请联系作者删除!