org.apache.abdera.factory.Factory.newUuidUri()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(139)

本文整理了Java中org.apache.abdera.factory.Factory.newUuidUri()方法的一些代码示例,展示了Factory.newUuidUri()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Factory.newUuidUri()方法的具体详情如下:
包路径:org.apache.abdera.factory.Factory
类名称:Factory
方法名:newUuidUri

Factory.newUuidUri介绍

[英]Generate a new random UUID URI
[中]生成一个新的随机UUID URI

代码示例

代码示例来源:origin: org.apache.abdera/abdera-core

public StreamBuilder writeId() {
  return writeId(abdera.getFactory().newUuidUri());
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.abdera

public StreamBuilder writeId() {
 return writeId(abdera.getFactory().newUuidUri());
}

代码示例来源:origin: org.apache.abdera/abdera-parser

public IRIElement newId() {
  return setId(this.getFactory().newUuidUri(), false);
}

代码示例来源:origin: org.apache.abdera/abdera-parser

public IRIElement newId() {
  return setId(this.getFactory().newUuidUri(), false);
}

代码示例来源:origin: org.apache.abdera/abdera-server

protected void setEntryIdIfNull(Entry entry) throws Exception {
  // if there is no id in Entry, assign one.
  if (entry.getId() != null) {
    return;
  }
  String uuidUri = abdera.getFactory().newUuidUri();
  String[] segments = uuidUri.split(":");
  String entryId = segments[segments.length - 1];
  entry.setId(createEntryIdUri(entryId));
}

代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util

protected void setEntryIdIfNull(RequestContext request, Entry entry) throws Exception {
  // if there is no id in Entry, assign one.
  if (entry.getId() != null) {
    return;
  }
  String uuidUri = request.getAbdera().getFactory().newUuidUri();
  String[] segments = uuidUri.split(":");
  String entryId = segments[segments.length - 1];
  entry.setId(createEntryIdUri(entryId));
}

代码示例来源:origin: org.fuzzydb.atom/org.fuzzydb.abdera.util

entry.getIdElement().setValue(factory.newUuidUri());
entry.addLink("atom/feed/" + entry.getId().toString(),
    "edit");

相关文章