public boolean isEmpty() { return accept(new Visitor() { public boolean visit(DicomElement attr) { return false; } }); }
public void copyTo(final DicomObject dest) { copyTo(dest, true); }
public DicomElement get(int[] tagPath, VR vr) { checkTagPathLength(tagPath); final int last = tagPath.length - 1; final DicomObject item = getItem(tagPath, last, true); return item != null ? item.get(tagPath[last], vr) : null; }
return true; final int tag = test.tag(); DicomElement attr = get(tag); if (attr == null || attr.isEmpty()) return true; // Missing DicomElement (Value) match always return tmTag != 0 ? matchRange(getDates(tag, tmTag), keys .getDateRange(tag, tmTag)) : matchRange(attr .getDates(cacheGet()), test.getDateRange(keys .cacheGet())); return daTag != 0 && containsValue(daTag) ? true // considered : matchRange(attr.getDates(cacheGet()), test .getDateRange(keys.cacheGet())); .getDateRange(keys.cacheGet())); return matchValue(attr.getStrings(getSpecificCharacterSet(), cacheGet()), test.getPattern(keys .getSpecificCharacterSet(), vr == VR.PN ? ignoreCaseOfPN : false, keys.cacheGet()));
param = DicomObjectToStringParam.getDefaultParam(); int lines = 0; for (Iterator<DicomElement> it = iterator(); lines < param.numLines && it.hasNext();) { DicomElement e = it.next(); if (param.name) { sb.append(" "); sb.append(nameOf(e.tag())); param.indent + '>', param.lineSeparator); if (e.hasDicomObjects()) lines += itemsToStringBuffer(e, sb, param1); else lines += fragsToStringBuffer(e, sb, param1);
private short[] toShorts(DicomElement a) { return a == null ? null : a.getShorts(cacheGet()); }
private String[] toStrings(DicomElement a) { return a == null ? null : a.getStrings(getSpecificCharacterSet(), cacheGet()); }
public DateRange getDateRange(int tag, DateRange defVal) { return toDateRange(get(tag), defVal); }