gpt4 book ai didi

xdi2.core.syntax.XDIStatement.isContextNodeStatement()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-25 02:25:05 28 4
gpt4 key购买 nike

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

XDIStatement.isContextNodeStatement介绍

暂无

代码示例

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

public XDIArc getContextNodeXDIArc() {
  if (this.isContextNodeStatement()) {
    return (XDIArc) this.getObject();
  }
  return null;
}

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

private static XDIAddress targetXDIAddressForTargetXDIStatement(XDIStatement targetXDIStatement) {
  if (targetXDIStatement.isContextNodeStatement()) {
    return targetXDIStatement.getTargetXDIAddress();
  } else {
    return targetXDIStatement.getContextNodeXDIAddress();
  }
}

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

private static XDIAddress targetXDIAddressForTargetXDIStatement(XDIStatement targetXDIStatement) {
  if (targetXDIStatement.isContextNodeStatement()) {
    return targetXDIStatement.getTargetXDIAddress();
  } else {
    return targetXDIStatement.getContextNodeXDIAddress();
  }
}

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

private static XDIAddress targetXDIAddressForTargetXDIStatement(XDIStatement targetXDIStatement) {
  if (targetXDIStatement.isContextNodeStatement()) {
    return targetXDIStatement.getTargetXDIAddress();
  } else {
    return targetXDIStatement.getContextNodeXDIAddress();
  }
}

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

@Override
public XDIStatement targetStatement(XDIStatement targetStatement, Operation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  XDIAddress contextNodeXDIAddress;
  if (targetStatement.isContextNodeStatement()) 
    contextNodeXDIAddress = targetStatement.getTargetXDIAddress();
  else
    contextNodeXDIAddress = targetStatement.getContextNodeXDIAddress();
  this.checkReadOnly(operation, contextNodeXDIAddress, executionContext);
  return targetStatement;
}

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

public void executeSetOnStatement(XDIStatement targetStatement, SetOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (targetStatement.isContextNodeStatement())
    this.executeSetOnContextNodeStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isRelationStatement())
    this.executeSetOnRelationStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isLiteralStatement())
    this.executeSetOnLiteralStatement(targetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Unknown statement type: " + targetStatement.getClass().getCanonicalName(), null, executionContext);
}

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

public void executeDelOnStatement(XDIStatement targetStatement, DelOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (targetStatement.isContextNodeStatement())
    this.executeDelOnContextNodeStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isRelationStatement())
    this.executeDelOnRelationStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isLiteralStatement())
    this.executeDelOnLiteralStatement(targetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Unknown statement type: " + targetStatement.getClass().getCanonicalName(), null, executionContext);
}

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

public XDIAddress getTargetXDIAddress() {
  if (this.isContextNodeStatement()) {
    return XDIAddressUtil.concatXDIAddresses(this.getSubject(), (XDIArc) this.getObject());
  } else if (this.isRelationStatement()) {
    return (XDIAddress) this.getObject();
  }
  return null;
}

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

public void executeConnectOnStatement(XDIStatement targetStatement, ConnectOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (targetStatement.isContextNodeStatement())
    this.executeConnectOnContextNodeStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isRelationStatement())
    this.executeConnectOnRelationStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isLiteralStatement())
    this.executeConnectOnLiteralStatement(targetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + targetStatement, null, executionContext);
}

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

public void executePushOnStatement(XDIStatement targetStatement, PushOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (targetStatement.isContextNodeStatement())
    this.executePushOnContextNodeStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isRelationStatement())
    this.executePushOnRelationStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isLiteralStatement())
    this.executePushOnLiteralStatement(targetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + targetStatement, null, executionContext);
}

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

public ContributorResult executeConnectOnStatement(XDIAddress[] contributorXDIAddresses, XDIAddress contributorsXDIAddress, XDIStatement relativeTargetStatement, ConnectOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (relativeTargetStatement.isContextNodeStatement())
    return this.executeConnectOnContextNodeStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isRelationStatement())
    return this.executeConnectOnRelationStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isLiteralStatement())
    return this.executeConnectOnLiteralStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + relativeTargetStatement, null, executionContext);
}

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

public void executeDelOnStatement(XDIStatement targetStatement, DelOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (targetStatement.isContextNodeStatement())
    this.executeDelOnContextNodeStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isRelationStatement())
    this.executeDelOnRelationStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isLiteralStatement())
    this.executeDelOnLiteralStatement(targetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + targetStatement, null, executionContext);
}

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

public ContributorResult executeGetOnStatement(XDIAddress[] contributorXDIAddresses, XDIAddress contributorsXDIAddress, XDIStatement relativeTargetStatement, GetOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (relativeTargetStatement.isContextNodeStatement())
    return this.executeGetOnContextNodeStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isRelationStatement())
    return this.executeGetOnRelationStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isLiteralStatement())
    return this.executeGetOnLiteralStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + relativeTargetStatement, null, executionContext);
}

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

public ContributorResult executeSetOnStatement(XDIAddress[] contributorXDIAddresses, XDIAddress contributorsXDIAddress, XDIStatement relativeTargetStatement, SetOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (relativeTargetStatement.isContextNodeStatement())
    return this.executeSetOnContextNodeStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isRelationStatement())
    return this.executeSetOnRelationStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isLiteralStatement())
    return this.executeSetOnLiteralStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + relativeTargetStatement, null, executionContext);
}

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

public ContributorResult executeDelOnStatement(XDIAddress[] contributorXDIAddresses, XDIAddress contributorsXDIAddress, XDIStatement relativeTargetStatement, DelOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (relativeTargetStatement.isContextNodeStatement())
    return this.executeDelOnContextNodeStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isRelationStatement())
    return this.executeDelOnRelationStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isLiteralStatement())
    return this.executeDelOnLiteralStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + relativeTargetStatement, null, executionContext);
}

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

public void executeDoOnStatement(XDIStatement targetStatement, DoOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (targetStatement.isContextNodeStatement())
    this.executeDoOnContextNodeStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isRelationStatement())
    this.executeDoOnRelationStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isLiteralStatement())
    this.executeDoOnLiteralStatement(targetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + targetStatement, null, executionContext);
}

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

public void executeSendOnStatement(XDIStatement targetStatement, SendOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (targetStatement.isContextNodeStatement())
    this.executeSendOnContextNodeStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isRelationStatement())
    this.executeSendOnRelationStatement(targetStatement, operation, operationResultGraph, executionContext);
  else if (targetStatement.isLiteralStatement())
    this.executeSendOnLiteralStatement(targetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + targetStatement, null, executionContext);
}

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

public ContributorResult executePushOnStatement(XDIAddress[] contributorXDIAddresses, XDIAddress contributorsXDIAddress, XDIStatement relativeTargetStatement, PushOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (relativeTargetStatement.isContextNodeStatement())
    return this.executePushOnContextNodeStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isRelationStatement())
    return this.executePushOnRelationStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isLiteralStatement())
    return this.executePushOnLiteralStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + relativeTargetStatement, null, executionContext);
}

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

public ContributorResult executeDoOnStatement(XDIAddress[] contributorXDIAddresses, XDIAddress contributorsXDIAddress, XDIStatement relativeTargetStatement, DoOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (relativeTargetStatement.isContextNodeStatement())
    return this.executeDoOnContextNodeStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isRelationStatement())
    return this.executeDoOnRelationStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isLiteralStatement())
    return this.executeDoOnLiteralStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + relativeTargetStatement, null, executionContext);
}

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

public ContributorResult executeSendOnStatement(XDIAddress[] contributorXDIAddresses, XDIAddress contributorsXDIAddress, XDIStatement relativeTargetStatement, SendOperation operation, Graph operationResultGraph, ExecutionContext executionContext) throws Xdi2MessagingException {
  if (relativeTargetStatement.isContextNodeStatement())
    return this.executeSendOnContextNodeStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isRelationStatement())
    return this.executeSendOnRelationStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else if (relativeTargetStatement.isLiteralStatement())
    return this.executeSendOnLiteralStatement(contributorXDIAddresses, contributorsXDIAddress, relativeTargetStatement, operation, operationResultGraph, executionContext);
  else
    throw new Xdi2MessagingException("Invalid statement: " + relativeTargetStatement, null, executionContext);
}

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