xdi2.core.Graph.setDeepNode()方法的使用及代码示例

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

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

Graph.setDeepNode介绍

暂无

代码示例

代码示例来源:origin: projectdanube/xdi2

/**
 * When a relation is created, check if the target node has to be created too.
 */
protected Node setRelationSetTargetNode(XDIAddress targetXDIAddress) {
  return this.getGraph().setDeepNode(targetXDIAddress);
}

代码示例来源:origin: projectdanube/xdi2

@Override
public void executeSetOnAddress(XDIAddress targetXDIAddress, SetOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  this.getGraph().setDeepNode(targetXDIAddress);
}

代码示例来源:origin: projectdanube/xdi2

/**
 * Factory method that finds or creates an XDI link contract template for a graph.
 * @return The XDI link contract template.
 */
public static LinkContractTemplate findLinkContractTemplate(Graph graph, XDIAddress templateAuthorityAndId, boolean create) {
  XDIAddress linkContractTemplateXDIAddress = createLinkContractTemplateXDIAddress(templateAuthorityAndId);
  ContextNode linkContractTemplateContextNode = create ? (ContextNode) graph.setDeepNode(linkContractTemplateXDIAddress) : (ContextNode) graph.getDeepNode(linkContractTemplateXDIAddress, true);
  if (linkContractTemplateContextNode == null) return null;
  return new LinkContractTemplate(XdiEntitySingleton.Variable.fromContextNode(linkContractTemplateContextNode));
}

相关文章