Determines if this annotation's tag is an instance of the given tag.

@param tag the string form of the tag to check
@return True if this annotation's tag is an instance of the given tag.
195511
public boolean isInstanceOfTag(Tag tag) {
      return tag != null && getTag().filter(t -> t.isInstance(tag)).isPresent();
   }
152150
public boolean containsTags(
      java.lang.String key) {
    if (key == null) { throw new java.lang.NullPointerException(); }
    return internalGetTags().getMap().containsKey(key);
  }
905613
private boolean inStartSet(String tag) {
        return
            // noun
            tag.startsWith("NN") ||
            // adjective
            tag.startsWith("JJ") ||
            // adverb
            tag.startsWith("RB") ||
            // cardinal number
            tag.startsWith("CD");
    }
167553
public static <T extends AnnotationDescription> ElementMatcher.Junction<T> is(Annotation annotation) {
        return is(AnnotationDescription.ForLoadedAnnotation.of(annotation));
    }
329345
protected void readTag(int tag)
        throws IOException
    {
        int length = (is.read() << 8) + is.read();
        is.skip(length);
    }
802403
function isHTMLTag(html) {
    if (typeof HTMLElement === 'object') {
        return (html && (html instanceof HTMLElement));
    }

    return !!(html && html.nodeType && html.nodeType === 1);
}
502181
def tag(tokens)
      !tokens.is_a?(Array) && !tokens.is_a?(String) &&
        raise(ArgumentError, 'tokens must be an instance of String or Array')

      j_instance.tag(tokens.to_java(:String))
    end
1233695
private boolean isJawrImageTag(ComponentTag tag) {
		String tagName = tag.getName();
		return (tagName.equalsIgnoreCase("img") || (tagName
				.equalsIgnoreCase("input") && tag.getAttribute("type").equals(
				"image")));
	}
280051
protected boolean replace(org.htmlparser.Tag tag) {

        boolean result = false;
        String tagName = tag.getTagName().trim().toLowerCase();
        String replacementName = (String)m_tags2replacementTags.get(tagName);
        if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(replacementName)) {
            // judge this as a bug: getTagName() returns plain name, setter needs leading '/' for
            // TODO: when updating htmlparser, verify if this has changed / been fixed
            // closing tags
            if (tag.isEndTag()) {
                replacementName = "/" + replacementName;
            }
            tag.setTagName(replacementName);
            result = true;
            // clear the attributes too:
            List attributes = tag.getAttributesEx();
            Iterator itAttribs = attributes.iterator();
            // skip the "tagname attribute"....
            itAttribs.next();
            Attribute attribute;
            String attName;
            while (itAttribs.hasNext()) {
                attribute = (Attribute)itAttribs.next();
                attName = attribute.getName();
                if (CmsStringUtil.isEmptyOrWhitespaceOnly(attName)) {
                    // this is the case for e.g. <h1 >
                    // -> becomes a tag with an attribute for tag name and a null name attribute
                    // (for the whitespace!)
                } else {
                    if (LOG.isDebugEnabled()) {
                        LOG.debug(
                            Messages.get().getBundle().key(
                                Messages.LOG_DEBUG_TAGREPLACE_TAG_REMOVE_ATTRIB_2,
                                attName,
                                tag.getTagName()));

                    }
                    itAttribs.remove();
                    if (LOG.isDebugEnabled()) {
                        LOG.debug(Messages.get().getBundle().key(Messages.LOG_DEBUG_TAGREPLACE_TAG_REMOVE_ATTRIB_OK_0));
                    }
                }
            }
        }
        return result;
    }
454986
private function tag_has_name(string $tag){
    return in_array('name', array_values(
      \is_array($this->tags[$tag]) ?
        $this->tags[$tag] :
        $this->tags[$this->tags[$tag]]
    ));
  }
506155
public Map<String, String> getInstanceTags() {
        Map<String, String> map = new HashMap<>();
        Instance instance = this.getInstance();
        for (Tag tag : instance.getTags()) {
            map.put(tag.getKey(), tag.getValue());
        }
        return map;
    }
795205
public static <T extends Tag, V> V convertToValue(T tag) throws ConversionException {
        if(tag == null || tag.getValue() == null) {
            return null;
        }

        if(!tagToConverter.containsKey(tag.getClass())) {
            throw new ConversionException("Tag type " + tag.getClass().getName() + " has no converter.");
        }

        TagConverter<T, ?> converter = (TagConverter<T, ?>) tagToConverter.get(tag.getClass());
        return (V) converter.convert(tag);
    }
458068
public java.lang.String getInstanceTag() {
    java.lang.Object ref = instanceTag_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      instanceTag_ = s;
      return s;
    }
  }
689787
public <R extends Request<T>> R setTag(Object tag) {
        checkIfActive();
        this.tag = tag;
        return (R) this;
    }
79153
public static int getType(String tag) {
        if (ElementTags.SUBJECT.equals(tag)) {
            return Element.SUBJECT;
        }
        if (ElementTags.KEYWORDS.equals(tag)) {
            return Element.KEYWORDS;
        }
        if (ElementTags.AUTHOR.equals(tag)) {
            return Element.AUTHOR;
        }
        if (ElementTags.TITLE.equals(tag)) {
            return Element.TITLE;
        }
        if (ElementTags.PRODUCER.equals(tag)) {
            return Element.PRODUCER;
        }
        if (ElementTags.CREATIONDATE.equals(tag)) {
            return Element.CREATIONDATE;
        }
        return Element.HEADER;
    }
1273213
public void addTag(String tag) {
        if (this.tags == null) {
            tags = new ArrayList<String>();
        }
        this.tags.add(tag);
    }
301776
public static boolean isBindingAnnotation(Class<? extends Annotation> annotation) {
    return annotation.isAnnotationPresent(BindingAnnotation.class)
        || annotation.isAnnotationPresent(Qualifier.class);
  }