@Override void resolveDeleteElementStart(String type, Attributes attributes) { otherTarget.doDeleteElementStart(type, attributes.updateWith(update)); ++otherTarget.depth; }
@Override void resolveUpdateAttributes(AttributesUpdate update) { doDeleteElementStart(type, attributes.updateWith(update)); ++depth; }
void updateAttributes(AttributesUpdate update) { attrs = attrs.updateWith(update); }
@Override void resolveDeleteElementStart(String type, Attributes attributes) { processDeleteElementStart(type, attributes.updateWith(update)); }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { flushAnnotations(); normalizer.replaceAttributes(oldAttrs, newAttrs.updateWith(attrUpdate)); target = defaultTarget; }
@Override void resolveUpdateAttributes(AttributesUpdate update) { // This point should be unreachable. assert false; processDeleteElementStart(type, attributes.updateWith(update)); }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { flushAnnotations(); normalizer.elementStart(type, attrs.updateWith(attrUpdate)); target = defaultTarget; }
@Override public void deleteElementStart(String type, Attributes attrs) { flushAnnotations(); normalizer.deleteElementStart(type, attrs.updateWith(invertUpdate(attrUpdate))); target = defaultTarget; }
@Override void resolveUpdateAttributes(AttributesUpdate update) { // This point should be unreachable. assert false; processDeleteElementStart(type, attributes.updateWith(update)); }
@Override public void replaceAttributes(Attributes oldAttrs, Attributes newAttrs) { flushAnnotations(); normalizer.replaceAttributes(oldAttrs.updateWith(invertUpdate(attrUpdate)), newAttrs); target = defaultTarget; }
@Override void resolveDeleteElementStart(String type, Attributes attributes) { processDeleteElementStart(type, attributes.updateWith(update)); }
@Override void resolveReplaceAttributes(Attributes oldAttributes, Attributes newAttributes) { syncAnnotations(); targetDocument.retain(1); otherTarget.targetDocument.replaceAttributes(oldAttributes.updateWith(update), newAttributes); }
@Override void resolveUpdateAttributes(AttributesUpdate update) { syncAnnotations(); targetDocument.replaceAttributes(this.oldAttributes.updateWith(update), this.newAttributes); otherTarget.targetDocument.retain(1); }
@Override public ValidationResult check(AttributesUpdate u) { return a.checkReplaceAttributes(oldAttrs, oldAttrs.updateWith(u), null); } });
@Override void resolveUpdateAttributes(AttributesUpdate update) { targetDocument.replaceAttributes(this.oldAttributes.updateWith(update), this.newAttributes); otherTarget.targetDocument.retain(1); }
@Override void resolveUpdateAttributes(AttributesUpdate update) { targetDocument.replaceAttributes(this.oldAttributes.updateWith(update), this.newAttributes); otherTarget.targetDocument.retain(1); }
@Override void resolveReplaceAttributes(Attributes oldAttributes, Attributes newAttributes) { targetDocument.retain(1); otherTarget.targetDocument.replaceAttributes(oldAttributes.updateWith(update), newAttributes); }
@Override void resolveReplaceAttributes(Attributes oldAttributes, Attributes newAttributes) { targetDocument.retain(1); otherTarget.targetDocument.replaceAttributes(oldAttributes.updateWith(update), newAttributes); }
final Attributes newAttrs = oldAttrs.updateWith(u); return new RandomizerOperationComponent() { @Override
return attrAccu; attrAccu = attrAccu.updateWith( new AttributesUpdateImpl(newAttr.getFirst(), null, newAttr.getSecond()));