gpt4 book ai didi

org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:53:31 31 4
gpt4 key购买 nike

本文整理了Java中org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch类的一些代码示例,展示了YangPatch类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangPatch类的具体详情如下:
包路径:org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch
类名称:YangPatch

YangPatch介绍

[英]Represents a conceptual sequence of datastore edits, called a patch. Each patch is given a client-assigned patch identifier. Each edit MUST be applied in ascending order, and all edits MUST be applied. If any errors occur, then the target datastore MUST NOT be changed by the patch operation. A patch MUST be validated by the server to be a well-formed message before any of the patch edits are validated or attempted. YANG datastore validation (defined in RFC 6020, section 8.3.3) is performed after all edits have been individually validated. It is possible for a datastore constraint violation to occur due to any node in the datastore, including nodes not included in the edit list. Any validation errors MUST be reported in the reply message. <p>This class represents the following YANG schema fragment defined in module <b>ietf-restconf</b> <br>(Source path: <i>META-INF/yang/ietf-restconf@2013-10-19.yang</i>): <pre> container yang-patch { leaf patch-id { type string; } leaf comment { type string; } list edit { key "edit-id" leaf edit-id { type string; } leaf operation { type enumeration; } leaf target { type data-resource-identifier; } leaf point { type data-resource-identifier; } leaf where { type enumeration; } anyxml value; } } </pre> The schema path to identify an instance is <i>ietf-restconf/yang-patch/yang-patch</i> <p>To create instances of this class use org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatchBuilder.
[中]表示数据存储编辑的概念序列,称为补丁。每个补丁都有一个客户端指定的补丁标识符。必须按升序应用每个编辑,并且必须应用所有编辑。如果出现任何错误,则修补程序操作不得更改目标数据存储。在验证或尝试任何修补程序编辑之前,服务器必须验证修补程序是否为格式良好的消息。YANG数据存储验证(定义见RFC 6020第8.3.3节)在所有编辑均已单独验证后执行。由于数据存储中的任何节点(包括未包含在编辑列表中的节点),可能会发生数据存储约束冲突。任何验证错误都必须在回复消息中报告<p> 这个类表示在模块<b>ietf restconf</b><br>中定义的以下YANG模式片段(源路径:<i>META-INF/YANG/ietf-restconf@2013-10-19.yang</i>):<pre>容器yang patch{leaf patch id{type string;}叶注释{type string;}列表编辑{key“edit id”叶编辑id{type string;}叶操作{type枚举;}叶目标{type data resource identifier;}叶点{type数据资源标识符;}叶,其中{type枚举;}anyxml值;}</pre>标识实例的模式路径是<i>ietf restconf/yang patch/yang patch</i><p>要创建此类实例,请使用org。露天采光。杨。第1代。瓮。ietf。帕玛斯。xml。纳什。杨。ietf。restconf。rev131019。杨。色斑杨氏建筑商。

代码示例

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-restconf

public YangPatchBuilder(YangPatch base) {
  this._comment = base.getComment();
  this._edit = base.getEdit();
  this._patchId = base.getPatchId();
  if (base instanceof YangPatchImpl) {
    YangPatchImpl impl = (YangPatchImpl) base;
    if (!impl.augmentation.isEmpty()) {
      this.augmentation = new HashMap<>(impl.augmentation);
    }
  } else if (base instanceof AugmentationHolder) {
    @SuppressWarnings("unchecked")
    Map<Class<? extends Augmentation<YangPatch>>, Augmentation<YangPatch>> aug =((AugmentationHolder<YangPatch>) base).augmentations();
    if (!aug.isEmpty()) {
      this.augmentation = new HashMap<>(aug);
    }
  }
}

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-restconf

if (!Objects.equals(_comment, other.getComment())) {
  return false;
if (!Objects.equals(_edit, other.getEdit())) {
  return false;
if (!Objects.equals(_patchId, other.getPatchId())) {
  return false;
    if (!e.getValue().equals(other.augmentation(e.getKey()))) {
      return false;

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-restconf

if (other.getComment() != null) {
    return false;
} else if(!_comment.equals(other.getComment())) {
  return false;
  if (other.getEdit() != null) {
    return false;
} else if(!_edit.equals(other.getEdit())) {
  return false;
  if (other.getPatchId() != null) {
    return false;
} else if(!_patchId.equals(other.getPatchId())) {
  return false;
    if (!e.getValue().equals(other.getAugmentation(e.getKey()))) {
      return false;

代码示例来源:origin: org.opendaylight.mdsal.model/ietf-restconf

/**
 * @return <code>java.util.List</code> <code>edit</code>, or an empty list if it is not present
 */
default @NonNull List<Edit> nonnullEdit() {
  return CodeHelpers.nonnull(getEdit());
}

代码示例来源:origin: org.opendaylight.yangtools.model/ietf-restconf

public YangPatchBuilder(YangPatch base) {
  this._comment = base.getComment();
  this._edit = base.getEdit();
  this._patchId = base.getPatchId();
  if (base instanceof YangPatchImpl) {
    YangPatchImpl impl = (YangPatchImpl) base;
    if (!impl.augmentation.isEmpty()) {
      this.augmentation = new HashMap<>(impl.augmentation);
    }
  } else if (base instanceof AugmentationHolder) {
    @SuppressWarnings("unchecked")
    AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.restconf.rev131019.yang.patch.YangPatch>) base;
    if (!casted.augmentations().isEmpty()) {
      this.augmentation = new HashMap<>(casted.augmentations());
    }
  }
}

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