+ public DeleteModification() {
+ this(DataStoreVersions.CURRENT_VERSION);
+ }
+
+ public DeleteModification(final short version) {
+ super(version);
+ }
+
+ public DeleteModification(final YangInstanceIdentifier path) {
+ super(path);
+ }
+
+ DeleteModification(final short version, final YangInstanceIdentifier path) {
+ super(version, path);
+ }
+
+ @Override
+ public void apply(final DOMStoreWriteTransaction transaction) {
+ transaction.delete(getPath());
+ }
+
+ @Override
+ public void apply(final DataTreeModification transaction) {
+ transaction.delete(getPath());
+ }
+
+ @Override
+ public byte getType() {
+ return DELETE;
+ }
+
+ @Override
+ public void readExternal(final ObjectInput in) {
+ setPath(SerializationUtils.deserializePath(in));
+ }
+
+ @Override
+ public void writeExternal(final ObjectOutput out) throws IOException {
+ SerializationUtils.writePath(out, getPath());
+ }
+
+ @Override
+ public void writeTo(final NormalizedNodeDataOutput out) throws IOException {
+ out.writeYangInstanceIdentifier(getPath());
+ }