private void appendKeyword(DicomInputStream dis, StringBuilder line) { if (line.length() < width) { line.append(" "); line.append(ElementDictionary.keywordOf(dis.tag(), null)); if (line.length() > width) line.setLength(width); } }
private void appendKeyword(DicomInputStream dis, StringBuilder line) { if (line.length() < width) { line.append(" "); line.append(ElementDictionary.keywordOf(dis.tag(), null)); if (line.length() > width) line.setLength(width); } }
public static String getKeywordFromTag(int tagID, String privateCreatorID) { return ElementDictionary.getElementDictionary(privateCreatorID).keywordOf(tagID); }
public static String keywordOf(int tag, String privateCreator) { return getElementDictionary(privateCreator).keywordOf(tag); }
private StringBuilder appendAttribute(String privateCreator, int tag, VR vr, Object value, int maxLength, StringBuilder sb, String prefix) { sb.append(prefix).append(TagUtils.toString(tag)).append(' ').append(vr).append(" ["); if (vr.prompt(value, bigEndian, getSpecificCharacterSet(vr), maxLength - sb.length() - 1, sb)) { sb.append("] ").append(ElementDictionary.keywordOf(tag, privateCreator)); if (sb.length() > maxLength) sb.setLength(maxLength); } sb.append('\n'); return sb; }
private void appendAttribute(int level, int tag, StringBuilder sb) { appendPrefixTo(level, sb); sb.append(TagUtils.toString(tag)) .append(' ') .append(ElementDictionary.keywordOf(tag, null)); }
private static DicomServiceException invalidAttributeValue(int tag, String value) { return identifierDoesNotMatchSOPClass( "Invalid " + DICT.keywordOf(tag) + " " + TagUtils.toString(tag) + " - " + value, Tag.QueryRetrieveLevel); }
private static DicomServiceException missingAttribute(int tag) { return new DicomServiceException(Status.IdentifierDoesNotMatchSOPClass, "Missing " + DICT.keywordOf(tag) + " " + TagUtils.toString(tag)); }
private static DicomServiceException invalidAttributeValue(int tag, String value) { return identifierDoesNotMatchSOPClass( "Invalid " + DICT.keywordOf(tag) + " " + TagUtils.toString(tag) + " - " + value, Tag.QueryRetrieveLevel); }
private static DicomServiceException missingAttribute(int tag) { return identifierDoesNotMatchSOPClass( "Missing " + DICT.keywordOf(tag) + " " + TagUtils.toString(tag), tag); }
private static DicomServiceException missingAttribute(int tag) { return identifierDoesNotMatchSOPClass( "Missing " + DICT.keywordOf(tag) + " " + TagUtils.toString(tag), tag); }
private static DicomServiceException missingAttribute(int tag) { return new DicomServiceException(Status.IdentifierDoesNotMatchSOPClass, "Missing " + DICT.keywordOf(tag) + " " + TagUtils.toString(tag)); }
private void addAttributes(int tag, VR vr, String privateCreator) { if (privateCreator != null) tag &= 0xffff00ff; if (includeKeyword) { String keyword = ElementDictionary.keywordOf(tag, privateCreator); if (keyword != null && !keyword.isEmpty()) addAttribute("keyword", keyword); } addAttribute("tag", TagUtils.toHexString(tag)); if (privateCreator != null) addAttribute("privateCreator", privateCreator); addAttribute("vr", vr.name()); }
String word = ElementDictionary.keywordOf(tag, privateCreator); if (!StringUtil.hasText(word)) { word = "PrivateTag"; //$NON-NLS-1$
TagType type = tag.getType(); int id = tag.getId(); String key = dic.keywordOf(id); if (val == null || !StringUtil.hasLength(key)) { return;
for (int tag : main.returnAttrs.tags()) { if (!TagUtils.isPrivateCreator(tag)) { url = addParam(url, "includefield", ElementDictionary.keywordOf(tag, main.returnAttrs.getPrivateCreator(tag)));