@Override public void updateAttributes(AttributesUpdate attrUpdate) { cache.flush(); target.updateAttributes(attrUpdate); }
@Override void resolveUpdateAttributes(AttributesUpdate update) { syncAnnotations(); targetDocument.retain(1); otherTarget.targetDocument.updateAttributes(update); }
@Override public void updateAttributes(AttributesUpdate attrsUpdate) { flushAnnotations(); normalizer.updateAttributes(attrsUpdate); cancelRetain(1); }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { flushAnnotations(); normalizer.updateAttributes(attrUpdate); cancelRetain(1); }
@Override public void retain(int itemCount) { flushAnnotations(); normalizer.updateAttributes(attrUpdate); if (itemCount > 1) { target = new RetainPreTarget(itemCount - 1); } else { target = defaultTarget; } }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { insertionOp.retain(1); noninsertionOp.updateAttributes(attrUpdate); }
@Override void resolveRetain(int itemCount) { syncAnnotations(); targetDocument.updateAttributes(update); otherTarget.targetDocument.retain(1); }
@Override void resolve(int itemCount) { targetDocument.updateAttributes(update); otherTarget.targetDocument.retain(1); }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { flushAnnotations(); target.updateAttributes(attrUpdate); }
@Override void resolve(int itemCount) { targetDocument.updateAttributes(update); otherTarget.targetDocument.retain(1); }
@Override void resolveUpdateAttributes(AttributesUpdate update) { targetDocument.retain(1); otherTarget.targetDocument.updateAttributes(update); }
@Override void resolveRetain(int itemCount) { targetDocument.updateAttributes(update); otherTarget.targetDocument.retain(1); }
@Override void resolveUpdateAttributes(AttributesUpdate update) { targetDocument.retain(1); otherTarget.targetDocument.updateAttributes(update); }
@Override void resolveRetain(int itemCount) { targetDocument.updateAttributes(update); otherTarget.targetDocument.retain(1); }
@Override void resolve(int itemCount) { targetDocument.updateAttributes(update); otherTarget.targetDocument.retain(1); }
private void processUpdateAttributes(AttributesUpdate update) { annotationResidue.retain(1); deletionOperation.retain(1); preservationOperation.updateAttributes(update); propagatingAnnotations.clear(); }
private void processUpdateAttributes(AttributesUpdate update) { annotationResidue.retain(1); deletionOperation.retain(1); preservationOperation.updateAttributes(update); propagatingAnnotations.clear(); }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { insertionOp.retain(1); preservationOp.updateAttributes(attrUpdate); deletionOp.retain(1); }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { insertionOp.retain(1); preservationOp.updateAttributes(attrUpdate); deletionOp.retain(1); }
@Override public void updateAttributes(AttributesUpdate attrUpdate) { AttributesUpdate update = new AttributesUpdateImpl(); // TODO: This is a little silly. We should do this a better way. for (int i = 0; i < attrUpdate.changeSize(); ++i) { update = update.composeWith(new AttributesUpdateImpl(attrUpdate.getChangeKey(i), attrUpdate.getNewValue(i), attrUpdate.getOldValue(i))); } target.updateAttributes(update); }