@Test public void testApply() throws Exception { MutableCompositeModification compositeModification = new MutableCompositeModification(); compositeModification.addModification(new WriteModification(TestModel.TEST_PATH, ImmutableNodes.containerNode(TestModel.TEST_QNAME))); DOMStoreReadWriteTransaction transaction = store.newReadWriteTransaction(); compositeModification.apply(transaction); commitTransaction(transaction); Optional<NormalizedNode<?, ?>> data = readData(TestModel.TEST_PATH); assertNotNull(data.get()); assertEquals(TestModel.TEST_QNAME, data.get().getNodeType()); }
@Override public void apply(final DOMStoreWriteTransaction transaction) { for (Modification modification : modifications) { modification.apply(transaction); } }
MutableCompositeModification extends VersionedExternalizableMessage implements CompositeModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { for (Modification modification : modifications) { modification.apply(transaction); } } }
MutableCompositeModification extends VersionedExternalizableMessage implements CompositeModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { for (Modification modification : modifications) { modification.apply(transaction); } } MutableCompositeModification();  MutableCompositeModification(final short version); }
MutableCompositeModification extends VersionedExternalizableMessage implements CompositeModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { for (Modification modification : modifications) { modification.apply(transaction); } } MutableCompositeModification();  MutableCompositeModification(final short version); @Override void apply(final DOMStoreWriteTransaction transaction); @Override void apply(final DataTreeModification transaction); @Override byte getType(); void addModification(final Modification modification); void addModifications(final Iterable<Modification> newMods); @Override List<Modification> getModifications(); @Override void readExternal(final ObjectInput in); @Override void writeExternal(final ObjectOutput out); static MutableCompositeModification fromSerializable(final Object serializable); @Override void writeTo(final NormalizedNodeDataOutput out); }
MutableCompositeModification extends VersionedExternalizableMessage implements CompositeModification { @Override public void apply(final DOMStoreWriteTransaction transaction) { for (Modification modification : modifications) { modification.apply(transaction); } } MutableCompositeModification();  MutableCompositeModification(final short version); @Override void apply(final DOMStoreWriteTransaction transaction); @Override void apply(final DataTreeModification transaction); @Override byte getType(); void addModification(final Modification modification); void addModifications(final Iterable<Modification> newMods); @Override List<Modification> getModifications(); @Override void readExternal(final ObjectInput in); @Override void writeExternal(final ObjectOutput out); static MutableCompositeModification fromSerializable(final Object serializable); @Override void writeTo(final NormalizedNodeDataOutput out);  }