@Override public String remapUID(String uid) { return next != null ? next.remapUID(uid) : uid; }
@Override public void coerce(Attributes attrs, Attributes modified) { deIdentifier.deidentify(attrs); if (next != null) next.coerce(attrs, modified); } }
@Override public void coerce(Attributes attrs, Attributes modified) { if (uidMap != null && !uidMap.isEmpty()) UIDUtils.remapUIDs(attrs, uidMap); if (next != null) next.coerce(attrs, modified); } }
@Override public String remapUID(String uid) { return next != null ? next.remapUID(uid) : uid; }
@Override public void coerce(Attributes attrs, Attributes modified) { Attributes newAttrs; try { newAttrs = SAXTransformer.transform( attrs, templates, includeNameSpaceDeclaration, includeKeyword, setupTransformer); } catch (Exception e) { throw new RuntimeException(e); } if (modified != null) { attrs.update(Attributes.UpdatePolicy.OVERWRITE, newAttrs, modified); } else { attrs.addAll(newAttrs); } if (next != null) next.coerce(attrs, modified); }
@Override public String remapUID(String uid) { return next != null ? next.remapUID(uid) : uid; }
@Override public void coerce(Attributes attrs, Attributes modified) { Attributes.unifyCharacterSets(attrs, newAttrs); if (modified != null) { attrs.update(Attributes.UpdatePolicy.OVERWRITE, newAttrs, modified); } else { attrs.addAll(newAttrs); } if (next != null) next.coerce(attrs, modified); } }
@Override public String remapUID(String uid) { String remappedUID = uidMap != null ? StringUtils.maskNull(uidMap.get(uid), uid) : uid; return next != null ? next.remapUID(remappedUID) : remappedUID; }
@Override public void coerce(Attributes attrs, Attributes modified) { VR.Holder vr = new VR.Holder(); for (int nullifyTag : nullifyTags) { Object value = attrs.getValue(nullifyTag, vr); if (value != null && value != Value.NULL) { if (modified != null) modified.setValue(nullifyTag, vr.vr, attrs.remove(nullifyTag)); attrs.setNull(nullifyTag, vr.vr); } } if (next != null) next.coerce(attrs, modified); } }
@Override public String remapUID(String uid) { String remappedUID = deIdentifier.remapUID(uid); return next != null ? next.remapUID(remappedUID) : remappedUID; }