本文整理了Java中org.w3c.dom.Node.lookupNamespaceURI()
方法的一些代码示例,展示了Node.lookupNamespaceURI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.lookupNamespaceURI()
方法的具体详情如下:
包路径:org.w3c.dom.Node
类名称:Node
方法名:lookupNamespaceURI
[英]Look up the namespace URI associated to the given prefix, starting from this node.
See for details on the algorithm used by this method.
[中]从该节点开始查找与给定前缀关联的命名空间URI。
有关此方法使用的算法的详细信息,请参阅。
代码示例来源:origin: pmd/pmd
@Override
public String lookupNamespaceURI(String prefix) {
return node.lookupNamespaceURI(prefix);
}
代码示例来源:origin: xyz.cofe/common
@Override
public String lookupNamespaceURI(String prefix) {
return node.lookupNamespaceURI(prefix);
}
代码示例来源:origin: apache/batik
/**
* <b>DOM</b>: Implements
* {@link org.w3c.dom.xpath.XPathNSResolver#lookupNamespaceURI(String)}.
*/
public String lookupNamespaceURI(String prefix) {
return contextNode.lookupNamespaceURI(prefix);
}
}
代码示例来源:origin: fbacchella/jrds
/**
* @param prefix
* @return
* @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
*/
public String lookupNamespaceURI(String prefix) {
return parent.lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.vx68k.quercus/quercus
public String lookupNamespaceURI(String prefix)
{
return _delegate.lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.jboss.ws.native/jbossws-native-core
public String lookupNamespaceURI(String prefix)
{
return this.domNode.lookupNamespaceURI(prefix);
}
代码示例来源:origin: apache/servicemix-bundles
@Override
public String getNamespaceURI(String prefix) {
return _current.lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.xmlunit/xmlunit-legacy
public String getNamespaceURI(String prefix) {
return node.lookupNamespaceURI(prefix);
}
代码示例来源:origin: org.apache.cxf/cxf-api
private static String getNameSpaceUri(Node node, String content, String namespaceURI) {
if (namespaceURI == null) {
namespaceURI = node.lookupNamespaceURI(content.substring(0,
content.indexOf(":")));
}
return namespaceURI;
}
代码示例来源:origin: org.apache.cxf/cxf-core
private static String getNameSpaceUri(Node node, String content, String namespaceURI) {
if (namespaceURI == null) {
namespaceURI = node.lookupNamespaceURI(content.substring(0,
content.indexOf(":")));
}
return namespaceURI;
}
代码示例来源:origin: apache/cxf
private static String getNameSpaceUri(Node node, String content, String namespaceURI) {
if (namespaceURI == null) {
namespaceURI = node.lookupNamespaceURI(content.substring(0,
content.indexOf(":")));
}
return namespaceURI;
}
代码示例来源:origin: com.sun.phobos/phobos-rhino
private Namespace getDefaultNamespace() {
String prefix = "";
String uri = (dom.lookupNamespaceURI(null) == null) ? "" : dom.lookupNamespaceURI(null);
return Namespace.create(prefix, uri);
}
代码示例来源:origin: org.objectweb.celtix/celtix-api
private static String getNameSpaceUri(Node node, String content, String namespaceURI) {
if (namespaceURI == null) {
namespaceURI = node.lookupNamespaceURI(content.substring(0,
content.indexOf(":")));
}
return namespaceURI;
}
代码示例来源:origin: com.github.tntim96/rhino
private Namespace getDefaultNamespace() {
String prefix = "";
String uri = (dom.lookupNamespaceURI(null) == null) ? "" : dom.lookupNamespaceURI(null);
return Namespace.create(prefix, uri);
}
代码示例来源:origin: org.apache.cxf/cxf-bundle-jaxrs
private static String getNameSpaceUri(Node node, String content, String namespaceURI) {
if (namespaceURI == null) {
namespaceURI = node.lookupNamespaceURI(content.substring(0,
content.indexOf(":")));
}
return namespaceURI;
}
代码示例来源:origin: org.glassfish.webservices/jsr109-impl
private String getAsQName(Node n) {
String nodeValue = n.getTextContent();
int index = nodeValue.indexOf(":");
if(index <= 0) {
return nodeValue;
}
String prefix = nodeValue.substring(0, index);
String ns = n.lookupNamespaceURI(prefix);
return("{"+ns+"}"+nodeValue.substring(index+1));
}
代码示例来源:origin: org.glassfish.main.webservices/webservices-connector
private String getAsQName(Node n) {
String nodeValue = n.getTextContent();
int index = nodeValue.indexOf(":");
if(index <= 0) {
return nodeValue;
}
String prefix = nodeValue.substring(0, index);
String ns = n.lookupNamespaceURI(prefix);
return("{"+ns+"}"+nodeValue.substring(index+1));
}
代码示例来源:origin: com.sun.phobos/phobos-rhino
void declareNamespace(String prefix, String uri) {
if (!(dom instanceof Element)) throw new IllegalStateException();
if (dom.lookupNamespaceURI(uri) != null && dom.lookupNamespaceURI(uri).equals(prefix)) {
// do nothing
} else {
Element e = (Element)dom;
declareNamespace(e, prefix, uri);
}
}
代码示例来源:origin: com.github.tntim96/rhino
void declareNamespace(String prefix, String uri) {
if (!(dom instanceof Element)) throw new IllegalStateException();
if (dom.lookupNamespaceURI(uri) != null && dom.lookupNamespaceURI(uri).equals(prefix)) {
// do nothing
} else {
Element e = (Element)dom;
declareNamespace(e, prefix, uri);
}
}
代码示例来源:origin: com.marklogic/marklogic-mapreduce2
/** {@inheritDoc} */
@Override
public String lookupNamespaceURI(String prefix) {
return getParentNode().lookupNamespaceURI(prefix);
}
}
内容来源于网络,如有侵权,请联系作者删除!