public interface YangPatch extends ChildOf<YangPatch>, Augmentable<YangPatch>
This class represents the following YANG schema fragment defined in module ietf-restconf
container yang-patch { leaf patch-id { type string; } leaf comment { type string { length "0 .. 1024"; } } list edit { key edit-id; ordered-by user; leaf edit-id { type string; } leaf operation { type enumeration { enum create { } enum delete { } enum insert { } enum merge { } enum move { } enum replace { } enum remove { } } } leaf target { type data-resource-identifier; } leaf point { when "(../operation = 'insert' or ../operation = 'move') and (../where = 'before' or ../where = 'after')" { } type data-resource-identifier; } leaf where { when "../operation = 'insert' or ../operation = 'move'" { } type enumeration { enum before { } enum after { } enum first { } enum last { } } default last; } anyxml value { when "(../operation = 'create' or ../operation = 'merge' or ../operation = 'replace' or ../operation = 'insert')" { } } } }The schema path to identify an instance is ietf-restconf/yang-patch/yang-patch
To create instances of this class use YangPatchBuilder
.
YangPatchBuilder
Modifier and Type | Field and Description |
---|---|
static org.opendaylight.yangtools.yang.common.QName |
QNAME |
Modifier and Type | Method and Description |
---|---|
@Nullable String |
getComment()
An arbitrary string provided by the client to describethe entire patch.
|
@Nullable List<Edit> |
getEdit()
Represents one edit within the YANG Patchrequest message.
|
@Nullable String |
getPatchId()
An arbitrary string provided by the client to identifythe entire patch.
|
default @NonNull List<Edit> |
nonnullEdit() |
getImplementedInterface
augmentation
@Nullable String getPatchId()
java.lang.String
patchId
, or null
if not present@Nullable String getComment()
java.lang.String
comment
, or null
if not present@Nullable List<Edit> getEdit()
java.util.List
edit
, or null
if not presentCopyright © 2019 OpenDaylight. All rights reserved.