Returns the first tag (if any) that has the given system and code, or returns
<code>null</code> if none
343161
public Coding getTag(String theSystem, String theCode) {
        for (Coding next : getTag()) {
          if (ca.uhn.fhir.util.ObjectUtil.equals(next.getSystem(), theSystem) && ca.uhn.fhir.util.ObjectUtil.equals(next.getCode(), theCode)) {
            return next;
          }
        }
        return null;
      }
1301364
public static int e(String tag, String msg) {
        return e(SUBSYSTEM.MAIN, tag, msg);
    }
1008039
public Tag findTag(String tagName)
    {
        if (null == tagName)
            throw new IllegalArgumentException("Looking for null tag name.");
        return definedTags.get(Tag.normalizeName(tagName));
    }
1150577
public static int d(String tag, String msg) {
        return d(SUBSYSTEM.MAIN, tag, msg);
    }
1188144
def get_tag(self, name, params=None):
        
        return self.tag(name, action='GET', params=params)
1178047
private Tag getTag(Element node, Tag... tags) {
        String name = node.getTagName();
        String error = null;
        
        try {
            Tag tag = Tag.valueOf(name.toUpperCase());
            int i = ArrayUtils.indexOf(tags, tag);

            if (i < 0) {
                error = "Tag '%s' is not valid at this location";
            } else {
                if (!tag.allowMultiple) {
                    tags[i] = null;
                }

                return tag;
            }
        } catch (IllegalArgumentException e) {
            error = "Unrecognized tag '%s' in layout";
        }

        throw new IllegalArgumentException(getInvalidTagError(error, name, tags));
    }
1321852
def get_namespace_and_tag(name):
        

        if isinstance(name, str):
            if name[0] == "{":
                uri, ignore, tag = name[1:].partition("}")
            else:
                uri = None
                tag = name
        else:
            uri = None
            tag = None
        return uri, tag
294973
String getTagValue(Collection<Tag> tags, String key) {
        for (Tag tag : tags) {
            if (tag.getKey().toLowerCase(Locale.ENGLISH).equals(key.toLowerCase(Locale.ENGLISH))) {
                return tag.getValue();
            }
        }
        return null;
    }
995430
def get_tag(self, tagtype):
        ''' '''
        for tag in self.__tags:
            if tag.tagtype == tagtype:
                return tag
        return None
1251539
function baseGetTag(value) {
  if (value == null) {
    return value === undefined ? undefinedTag : nullTag;
  }
  return symToStringTag && symToStringTag in Object(value) ? (0, _getRawTag2.default)(value) : (0, _objectToString2.default)(value);
}
614122
private function getNextTag(&$s, $i, &$position)
    {
        $j = mb_strpos($s, '[', $i);
        $k = mb_strpos($s, ']', $j + 1);

        if ($j === false || $k === false) {
            $position = false;
            return null;
        }

        $t = mb_substr($s, $j + 1, $k - ($j + 1));
        $l = mb_strrpos($t, '[');

        if ($l !== false) {
            $j += $l + 1;
        }

        $position = $j;

        $tagString = mb_substr($s, $j, $k - $j + 1);

        return new Tag($tagString, $this->getHandlers());
    }
17719
public java.lang.String getTagsOrDefault(
      java.lang.String key,
      java.lang.String defaultValue) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    java.util.Map<java.lang.String, java.lang.String> map =
        internalGetTags().getMap();
    return map.containsKey(key) ? map.get(key) : defaultValue;
  }
407160
public String get(Object tag) {
    String result = tagToName.get(tag);
    if (result == null) {
      throw new IllegalArgumentException("unknown tag: " + tag);
    }
    return result;
  }
582334
@Override
  public ValidationResult validateCode(String system, String code, String display) {
    Coding c = new Coding(system, code, display);
    return validateCode(c, null);
  }
42128
public static int v(String tag, String msg) {
        return v(SUBSYSTEM.MAIN, tag, msg);
    }
464694
public String consumeTagName() {
        int start = pos;
        while (!isEmpty() && (matchesWord() || matchesAny(':', '_', '-')))
            pos++;
        
        return queue.substring(start, pos);
    }
985673
public Tag getOrCreateTag(String tagName, boolean isRef)
    {
        if (null == tagName)
            throw new IllegalArgumentException("Looking for a null tag name.");
        tagName = Tag.normalizeName(tagName);

        synchronized (this.definedTags)
        {
            if (definedTags.containsKey(tagName))
                return definedTags.get(tagName);
            else
            {
                final Tag tag = new Tag(tagName);
                definedTags.put(tagName, tag);
                return tag;
            }
        }
    }