本文整理了Java中org.dom4j.dom.DOMDocument.getDocumentFactory()
方法的一些代码示例,展示了DOMDocument.getDocumentFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。DOMDocument.getDocumentFactory()
方法的具体详情如下:
包路径:org.dom4j.dom.DOMDocument
类名称:DOMDocument
方法名:getDocumentFactory
暂无
代码示例来源:origin: org.dom4j/dom4j
public org.w3c.dom.DOMImplementation getImplementation() {
if (getDocumentFactory() instanceof org.w3c.dom.DOMImplementation) {
return (org.w3c.dom.DOMImplementation) getDocumentFactory();
} else {
return DOCUMENT_FACTORY;
}
}
代码示例来源:origin: org.dom4j/dom4j
public org.w3c.dom.Attr createAttributeNS(String namespaceURI,
String qualifiedName) throws DOMException {
QName qname = getDocumentFactory().createQName(qualifiedName,
namespaceURI);
return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null,
qname, null);
}
代码示例来源:origin: org.dom4j/dom4j
public ProcessingInstruction createProcessingInstruction(String target,
String data) throws DOMException {
return (ProcessingInstruction) getDocumentFactory()
.createProcessingInstruction(target, data);
}
代码示例来源:origin: org.dom4j/dom4j
public org.w3c.dom.Element createElementNS(String namespaceURI,
String qualifiedName) throws DOMException {
QName qname = getDocumentFactory().createQName(qualifiedName,
namespaceURI);
return (org.w3c.dom.Element) getDocumentFactory().createElement(qname);
}
代码示例来源:origin: org.dom4j/dom4j
public Attr createAttribute(String name) throws DOMException {
QName qname = getDocumentFactory().createQName(name);
return (Attr) getDocumentFactory().createAttribute(null, qname, "");
}
代码示例来源:origin: org.dom4j/dom4j
public org.w3c.dom.Comment createComment(String data) {
return (org.w3c.dom.Comment) getDocumentFactory().createComment(data);
}
代码示例来源:origin: org.dom4j/dom4j
public EntityReference createEntityReference(String name)
throws DOMException {
return (EntityReference) getDocumentFactory().createEntity(name, null);
}
代码示例来源:origin: org.dom4j/dom4j
public org.w3c.dom.Text createTextNode(String data) {
return (org.w3c.dom.Text) getDocumentFactory().createText(data);
}
代码示例来源:origin: org.dom4j/dom4j
public org.w3c.dom.Element createElement(String name) throws DOMException {
return (org.w3c.dom.Element) getDocumentFactory().createElement(name);
}
代码示例来源:origin: org.dom4j/dom4j
public CDATASection createCDATASection(String data) throws DOMException {
return (CDATASection) getDocumentFactory().createCDATA(data);
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
public org.w3c.dom.DOMImplementation getImplementation() {
if (getDocumentFactory() instanceof org.w3c.dom.DOMImplementation) {
return (org.w3c.dom.DOMImplementation) getDocumentFactory();
} else {
return DOCUMENT_FACTORY;
}
}
代码示例来源:origin: dom4j/dom4j
public org.w3c.dom.DOMImplementation getImplementation() {
if (getDocumentFactory() instanceof org.w3c.dom.DOMImplementation) {
return (org.w3c.dom.DOMImplementation) getDocumentFactory();
} else {
return DOCUMENT_FACTORY;
}
}
代码示例来源:origin: org.dom4j/com.springsource.org.dom4j
public org.w3c.dom.DOMImplementation getImplementation() {
if (getDocumentFactory() instanceof org.w3c.dom.DOMImplementation) {
return (org.w3c.dom.DOMImplementation) getDocumentFactory();
} else {
return DOCUMENT_FACTORY;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j
public org.w3c.dom.DOMImplementation getImplementation() {
if (getDocumentFactory() instanceof org.w3c.dom.DOMImplementation) {
return (org.w3c.dom.DOMImplementation) getDocumentFactory();
} else {
return DOCUMENT_FACTORY;
}
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j
public org.w3c.dom.Attr createAttributeNS(String namespaceURI,
String qualifiedName) throws DOMException {
QName qname = getDocumentFactory().createQName(qualifiedName,
namespaceURI);
return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null,
qname, null);
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
public ProcessingInstruction createProcessingInstruction(String target,
String data) throws DOMException {
return (ProcessingInstruction) getDocumentFactory()
.createProcessingInstruction(target, data);
}
代码示例来源:origin: dom4j/dom4j
public org.w3c.dom.Element createElementNS(String namespaceURI,
String qualifiedName) throws DOMException {
QName qname = getDocumentFactory().createQName(qualifiedName,
namespaceURI);
return (org.w3c.dom.Element) getDocumentFactory().createElement(qname);
}
代码示例来源:origin: dom4j/dom4j
public org.w3c.dom.Attr createAttributeNS(String namespaceURI,
String qualifiedName) throws DOMException {
QName qname = getDocumentFactory().createQName(qualifiedName,
namespaceURI);
return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null,
qname, null);
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j
public Attr createAttribute(String name) throws DOMException {
QName qname = getDocumentFactory().createQName(name);
return (Attr) getDocumentFactory().createAttribute(null, qname, "");
}
代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand
public org.w3c.dom.Attr createAttributeNS(String namespaceURI,
String qualifiedName) throws DOMException {
QName qname = getDocumentFactory().createQName(qualifiedName,
namespaceURI);
return (org.w3c.dom.Attr) getDocumentFactory().createAttribute(null,
qname, null);
}
内容来源于网络,如有侵权,请联系作者删除!