gpt4 book ai didi

xdi2.core.util.XDIAddressUtil.replaceXDIAddress()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-18 13:28:40 28 4
gpt4 key购买 nike

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

XDIAddressUtil.replaceXDIAddress介绍

[英]Replaces all occurrences of an arc with an address.
[中]用地址替换所有出现的弧。

代码示例

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

/**
 * Replaces all occurrences of an arc with an address.
 */
public static XDIAddress replaceXDIAddress(final XDIArc XDIarc, final XDIArc oldXDIArc, XDIAddress newXDIAddress) {
  XDIAddress XDIaddress = XDIarc == null ? null : XDIAddress.fromComponent(XDIarc);
  return replaceXDIAddress(XDIaddress, oldXDIArc, newXDIAddress);
}

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

/**
 * Replaces all occurrences of an arc with an arc.
 */
public static XDIAddress replaceXDIAddress(final XDIAddress XDIaddress, final XDIArc oldXDIArc, final XDIArc newXDIArc) {
  XDIAddress newXDIAddress = newXDIArc == null ? null : XDIAddress.fromComponent(newXDIArc);
  return replaceXDIAddress(XDIaddress, oldXDIArc, newXDIAddress);
}

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

@Override
public XDIAddress resolveXDIAddress(XDIAddress contextNodeXDIAddress) {
  XDIAddress resolvedContextNodeXDIAddress = contextNodeXDIAddress;
  resolvedContextNodeXDIAddress = XDIAddressUtil.replaceXDIAddress(resolvedContextNodeXDIAddress, XDI_ARC_FROM_VARIABLE, this.getMessage().getSenderXDIAddress());
  resolvedContextNodeXDIAddress = XDIAddressUtil.replaceXDIAddress(resolvedContextNodeXDIAddress, XDI_ARC_FROM_PEER_VARIABLE, this.getMessage().getFromPeerRootXDIArc());
  resolvedContextNodeXDIAddress = XDIAddressUtil.replaceXDIAddress(resolvedContextNodeXDIAddress, XDI_ARC_MSG_VARIABLE, this.getMessage().getContextNode().getXDIAddress());
  if (log.isTraceEnabled()) log.trace("resolveXDIAddress(" + contextNodeXDIAddress + ") --> " + resolvedContextNodeXDIAddress);
  return resolvedContextNodeXDIAddress;
}

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

XDIAddress replacedTargetXDIAddress = XDIAddressUtil.replaceXDIAddress(
    baseXDIAddress, 
    oldXDIArc,

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

XDIAddress replacedContextNodeXDIAddress = XDIAddressUtil.replaceXDIAddress(
    baseXDIAddress, 
    oldXDIArc,

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

XDIAddress replacedXrefXDIAddress = replaceXDIAddress(xrefXDIArc, oldXDIArc, newXDIAddress);
XDIAddress xrefPartialPredicate = XDIarc.getXRef().getPartialPredicate();
XDIAddress replacedXrefPartialSubject = replaceXDIAddress(xrefPartialSubject, oldXDIArc, newXDIAddress);
XDIAddress replacedXrefPartialPredicate = replaceXDIAddress(xrefPartialPredicate, oldXDIArc, newXDIAddress);

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com