public static TagW getNullable(int tagID, String privateCreatorID) { String key = getKeywordFromTag(tagID, privateCreatorID); return key == null ? null : tags.get(key); }
private TagD(int tagID, String displayedName, String privateCreatorID, VR vr, int vmMin, int vmMax, Object defaultValue) { super(tagID, getKeywordFromTag(tagID, privateCreatorID), displayedName, getTypeFromTag(tagID, vr), vmMin, vmMax, defaultValue); this.vr = vr; this.privateCreatorID = privateCreatorID; this.retired = false; }
public static Object getTagValue(TagReadable tagable, int tagID) { if (tagable != null) { String key = getKeywordFromTag(tagID, null); if (key != null) { return tagable.getTagValue(tags.get(key)); } } return null; }
public static <T> T getTagValue(TagReadable tagable, int tagID, Class<T> type) { if (tagable != null) { String key = getKeywordFromTag(tagID, null); if (key != null) { try { return type.cast(tagable.getTagValue(tags.get(key))); } catch (ClassCastException e) { LOGGER.error("Cannot cast the value of \"{}\" into {}", key, type, e); //$NON-NLS-1$ } } } return null; }
TagUtil.getTagAttribute(xmler, TagD.getKeywordFromTag(Tag.SOPInstanceUID, null), null); if (sopInstanceUID != null) { Integer frame = TagUtil.getIntegerTagAttribute(xmler, TagD.getKeywordFromTag(Tag.InstanceNumber, null), null); SopInstance sop = seriesInstanceList.getSopInstance(sopInstanceUID, frame); if (sop == null) {