本文整理了Java中org.apache.abdera.model.Feed.getFactory()
方法的一些代码示例,展示了Feed.getFactory()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Feed.getFactory()
方法的具体详情如下:
包路径:org.apache.abdera.model.Feed
类名称:Feed
方法名:getFactory
暂无
代码示例来源:origin: org.apache.abdera/abdera-extensions-main
public static Tombstone addTombstone(Feed source, String id) {
Tombstone tombstone = source.getFactory().newExtensionElement(DELETED_ENTRY);
tombstone.setRef(id);
return tombstone;
}
代码示例来源:origin: org.apache.ws.commons.axiom/fom-testsuite
@Override
protected Element addChild(Feed feed) {
Person person = feed.getFactory().newAuthor();
person.setName("Me");
feed.addAuthor(person);
return person;
}
}
代码示例来源: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-extensions-main
public static Tombstone addTombstone(Feed source, Entry entry) {
Tombstone tombstone = source.getFactory().newExtensionElement(DELETED_ENTRY, source);
tombstone.setRef(entry.getId());
Base parent = entry.getParentElement();
if (parent != null && parent.equals(source))
entry.discard();
return tombstone;
}
内容来源于网络,如有侵权,请联系作者删除!