本文整理了Java中org.w3c.dom.Node.getBaseURI()
方法的一些代码示例,展示了Node.getBaseURI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Node.getBaseURI()
方法的具体详情如下:
包路径:org.w3c.dom.Node
类名称:Node
方法名:getBaseURI
[英]The absolute base URI of this node or null
if the implementation wasn't able to obtain an absolute URI. This value is computed as described in . However, when the Document
supports the feature "HTML" [DOM Level 2 HTML] , the base URI is computed using first the value of the href attribute of the HTML BASE element if any, and the value of the documentURI
attribute from the Document
interface otherwise.
[中]此节点的绝对基本URI,如果实现无法获取绝对URI,则为null
。该值的计算方法如中所述。但是,当Document
支持“HTML”[DOM Level 2 HTML]功能时,基本URI首先使用HTML基本元素的href属性值(如果有)计算,否则使用Document
接口的documentURI
属性值计算。
代码示例来源:origin: pmd/pmd
@Override
public String getBaseURI() {
return node.getBaseURI();
}
代码示例来源:origin: robovm/robovm
private String getParentBaseUri() {
Node parentNode = getParentNode();
return parentNode != null ? parentNode.getBaseURI() : null;
}
代码示例来源:origin: xyz.cofe/common
@Override
public String getBaseURI() {
return node.getBaseURI();
}
代码示例来源:origin: fbacchella/jrds
/**
* @return
* @see org.w3c.dom.Node#getBaseURI()
*/
public String getBaseURI() {
return parent.getBaseURI();
}
代码示例来源:origin: org.apache.axis2/axis2-saaj
public final String getBaseURI() {
return target.getBaseURI();
}
代码示例来源:origin: org.vx68k.quercus/quercus
public String getBaseURI()
{
return _delegate.getBaseURI();
}
代码示例来源:origin: org.jboss.ws.native/jbossws-native-core
public String getBaseURI()
{
return this.domNode.getBaseURI();
}
代码示例来源:origin: MobiVM/robovm
private String getParentBaseUri() {
Node parentNode = getParentNode();
return parentNode != null ? parentNode.getBaseURI() : null;
}
代码示例来源:origin: net.avcompris.commons/avc-commons-lang
/**
* return the base URI of a given element. Use this utility method for the
* {@link Node}'s DOM 3 <tt>getBaseURI()</tt> method exists in JDK 1.5, but
* not in 1.6 and/or not in certain old libraries.
*
* @param node
* the DOM node.
* @return the text content.
*/
public static String getBaseURI(final Node node) {
nonNullArgument(node, "node");
return node.getBaseURI();
}
代码示例来源:origin: ibinti/bugvm
private String getParentBaseUri() {
Node parentNode = getParentNode();
return parentNode != null ? parentNode.getBaseURI() : null;
}
代码示例来源:origin: com.gluonhq/robovm-rt
private String getParentBaseUri() {
Node parentNode = getParentNode();
return parentNode != null ? parentNode.getBaseURI() : null;
}
代码示例来源:origin: com.struqt/invar-lib
public void parse(Object o, Node n) throws Exception {
this.path = n.getBaseURI();
parse(o, n, o.getClass().getName(), "");
}
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
private String getParentBaseUri() {
Node parentNode = getParentNode();
return parentNode != null ? parentNode.getBaseURI() : null;
}
代码示例来源:origin: com.bugvm/bugvm-rt
private String getParentBaseUri() {
Node parentNode = getParentNode();
return parentNode != null ? parentNode.getBaseURI() : null;
}
代码示例来源:origin: FlexoVM/flexovm
private String getParentBaseUri() {
Node parentNode = getParentNode();
return parentNode != null ? parentNode.getBaseURI() : null;
}
代码示例来源:origin: dsukhoroslov/bagri
@Override
public URI getNodeUri() throws XQException {
Node node = getNode();
try {
String base = node.getBaseURI();
if (base == null) {
base = "";
}
return new URI(base);
} catch (URISyntaxException ex) {
throw new XQException(ex.getMessage());
}
}
代码示例来源:origin: com.ebmwebsourcing.easybox/easybox-impl
@Override
public URI getXmlObjectBaseURI() {
return URI.create(getModelObject().getDOMNode().getBaseURI());
}
代码示例来源:origin: com.ebmwebsourcing.easybox/easybox-impl
@Override
public URI getXmlObjectBaseURI() {
return URI.create(getModelObject().getDOMNode().getBaseURI());
}
代码示例来源:origin: org.xmlbeam/xmlprojector
@Override
public String toString() {
final String typeDesc = getDOMNode().getNodeType() == Node.DOCUMENT_NODE ? "document '" + getDOMNode().getBaseURI() + "'" : "element " + "'" + getDOMNode().getNodeName() + "[" + Integer.toString(getDOMNode().hashCode(), 16) + "]'";
return "Projection [" + getProjectionInterface().getName() + "]" + " to " + typeDesc;
}
}
代码示例来源:origin: SvenEwald/xmlbeam
@Override
public String toString() {
final String typeDesc = getDOMNode().getNodeType() == Node.DOCUMENT_NODE ? "document '" + getDOMNode().getBaseURI() + "'" : "element " + "'" + getDOMNode().getNodeName() + "[" + Integer.toString(getDOMNode().hashCode(), 16) + "]'";
return "Projection [" + getProjectionInterface().getName() + "]" + " to " + typeDesc;
}
}
内容来源于网络,如有侵权,请联系作者删除!