Example #1
0
  public static IDWithIssuer valueOf(Attributes attrs, int idTag, int issuerSeqTag) {
    String id = attrs.getString(idTag);
    if (id == null) return null;

    return new IDWithIssuer(id, Issuer.valueOf(attrs.getNestedDataset(issuerSeqTag)));
  }
 public String selectStringValue(Attributes attrs, String defVal) {
   Attributes item = attrs.getNestedDataset(itemPointers);
   return item != null ? item.getString(privateCreator, tag, vr, valueIndex, defVal) : defVal;
 }
Example #3
0
 protected Attributes item(Attributes attrs) {
   for (int sqtag : itemPath) {
     if (sqtag == -1) attrs = (sqtag == -1) ? attrs.getParent() : attrs.getNestedDataset(sqtag);
   }
   return attrs;
 }