本文整理了Java中org.apache.abdera.model.Element.setParentElement()
方法的一些代码示例,展示了Element.setParentElement()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.setParentElement()
方法的具体详情如下:
包路径:org.apache.abdera.model.Element
类名称:Element
方法名:setParentElement
[英]Set this Element's parent element
[中]设置此元素的父元素
代码示例来源:origin: org.apache.abdera/abdera-core
public <T extends Element> T setParentElement(Element parent) {
internal.setParentElement(parent);
return (T)this;
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera
public <T extends Element>T setParentElement(Element parent) {
internal.setParentElement(parent);
return (T)this;
}
代码示例来源:origin: rackerlabs/atom-hopper
public Feed addArchiveNode( Feed feed ) {
Factory factory = feed.getFactory();
Element root = feed.getDocument().getRoot();
Element elementArchive = factory.newExtensionElement( new QName( ARCHIVE_NS, ARCHIVE, ARCHIVE_PREFIX ), root );
elementArchive.setParentElement( root );
return feed;
}
}
代码示例来源:origin: org.apache.abdera/abdera-parser
public <T extends ExtensibleElement> T addExtension(Element extension, Element before) {
complete();
extension = getInternal(extension);
before = getInternal(before);
if (before instanceof ElementWrapper) {
ElementWrapper wrapper = (ElementWrapper)before;
before = wrapper.getInternal();
}
if (before == null) {
addExtension(extension);
} else {
extension.setParentElement(this);
((OMElement)before).insertSiblingBefore((OMElement)extension);
}
return (T)this;
}
内容来源于网络,如有侵权,请联系作者删除!