In BE two new modification types were introduced for
structural containers, but binding codecs were not
updated accordingly.
Frontend mapping is simple:
APPEARED -> SUBTREE_MODIFIED
DISAPPEARED -> DELETE
Change-Id: I62810c501234a62343150c328c6f2802402669c5
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
switch(domData.getModificationType()) {
case WRITE:
return DataObjectModification.ModificationType.WRITE;
+ case APPEARED:
case SUBTREE_MODIFIED:
return DataObjectModification.ModificationType.SUBTREE_MODIFIED;
+ case DISAPPEARED:
case DELETE:
return DataObjectModification.ModificationType.DELETE;
-
default:
// TODO: Should we lie about modification type instead of exception?
throw new IllegalStateException("Unsupported DOM Modification type " + domData.getModificationType());