-public interface Modification {
- /**
- * Apply the modification to the specified transaction
- * @param transaction
- */
- void apply(DOMStoreWriteTransaction transaction);
+public interface Modification extends Externalizable {
+
+ byte COMPOSITE = 1;
+ byte WRITE = 2;
+ byte MERGE = 3;
+ byte DELETE = 4;
+
+ /**
+ * Apply the modification to the specified transaction.
+ *
+ * @param transaction the transaction
+ */
+ void apply(DOMStoreWriteTransaction transaction);
+
+ /**
+ * Apply the modification to the specified transaction.
+ *
+ * @param transaction the transaction
+ */
+ void apply(DataTreeModification transaction);
+
+ byte getType();