Given an array of <code>Tag</code>s, check for spelling mistakes.
@param doc the Doc object that holds the tags.
@param tags the list of <code>Tag</code>s to check.
@param areInlineTags true if the array of tags are inline and false otherwise.
978296
public void checkTags(Doc doc, Tag[] tags, boolean areInlineTags) {
        if (tags == null) {
            return;
        }
        Taglet taglet;
        for (int i = 0; i < tags.length; i++) {
            String name = tags[i].name();
            if (name.length() > 0 && name.charAt(0) == '@') {
                name = name.substring(1, name.length());
            }
            if (! (standardTags.contains(name) || customTags.containsKey(name))) {
                if (standardTagsLowercase.contains(StringUtils.toLowerCase(name))) {
                    message.warning(tags[i].position(), "doclet.UnknownTagLowercase", tags[i].name());
                    continue;
                } else {
                    message.warning(tags[i].position(), "doclet.UnknownTag", tags[i].name());
                    continue;
                }
            }
            //Check if this tag is being used in the wrong location.
            if ((taglet = customTags.get(name)) != null) {
                if (areInlineTags && ! taglet.isInlineTag()) {
                    printTagMisuseWarn(taglet, tags[i], "inline");
                }
                if ((doc instanceof RootDoc) && ! taglet.inOverview()) {
                    printTagMisuseWarn(taglet, tags[i], "overview");
                } else if ((doc instanceof PackageDoc) && ! taglet.inPackage()) {
                    printTagMisuseWarn(taglet, tags[i], "package");
                } else if ((doc instanceof ClassDoc) && ! taglet.inType()) {
                    printTagMisuseWarn(taglet, tags[i], "class");
                } else if ((doc instanceof ConstructorDoc) && ! taglet.inConstructor()) {
                    printTagMisuseWarn(taglet, tags[i], "constructor");
                } else if ((doc instanceof FieldDoc) && ! taglet.inField()) {
                    printTagMisuseWarn(taglet, tags[i], "field");
                } else if ((doc instanceof MethodDoc) && ! taglet.inMethod()) {
                    printTagMisuseWarn(taglet, tags[i], "method");
                }
            }
        }
    }
693321
public void printAnswers(List<CoreLabel> doc, PrintWriter out) {
    // boolean tagsMerged = flags.mergeTags;
    // boolean useHead = flags.splitOnHead;

    if ( ! "iob1".equalsIgnoreCase(flags.entitySubclassification)) {
      deEndify(doc);
    }

    for (CoreLabel fl : doc) {
      String word = fl.word();
      if (word == BOUNDARY) { // Using == is okay, because it is set to constant
        out.println();
      } else {
        String gold = fl.get(OriginalAnswerAnnotation.class);
        if(gold == null) gold = "";
        String guess = fl.get(AnswerAnnotation.class);
        // System.err.println(fl.word() + "\t" + fl.get(AnswerAnnotation.class) + "\t" + fl.get(AnswerAnnotation.class));
        String pos = fl.tag();
        String chunk = (fl.get(ChunkAnnotation.class) == null ? "" : fl.get(ChunkAnnotation.class));
        out.println(fl.word() + '\t' + pos + '\t' + chunk + '\t' +
                    gold + '\t' + guess);
      }
    }
  }
661470
public T withTags(String... tags) {
    for (int i = 0; i < tags.length; i += 2) {
      extraTags.add(new BasicTag(tags[i], tags[i + 1]));
    }
    return (T) this;
  }
430103
public GetCoreDefinitionResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1065802
public ChannelSummary withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
404528
public void setTags(java.util.Map<String, String> tags) {
        this.tags = tags == null ? null : new com.amazonaws.internal.SdkInternalMap<String, String>(tags);
    }
59539
public GetTagsResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
62089
public DescribeInputResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
263829
private void printInlineTags(Tag[] tags, ClassDoc classDoc) {
        for (Tag tag : tags) {
            if ((tag instanceof SeeTag) && tag.name().equals("@link")) {
                SeeTag seeTag = (SeeTag) tag;
                boolean sameClass = seeTag.referencedClass() == classDoc;
                String fullClassName = seeTag.referencedClassName();
                String memberName = seeTag.referencedMemberName();

                String className = fullClassName.substring(fullClassName.lastIndexOf('.') + 1);
                List<String> nameParts = new ArrayList<>();
                if (!sameClass) {
                    nameParts.add(className);
                }
                if (memberName != null) {
                    nameParts.add(memberName);
                }
                String name = Strings.join(nameParts, ".");

                if (fullClassName.lastIndexOf('.') >= 0) {
                    String packageName = fullClassName.substring(0, fullClassName.lastIndexOf('.'));
                    String urlPrefix = "";
                    if (!sameClass && packageName.startsWith("com.qspin.") && !packageName.equals(
                          "com.qspin.qtaste.testapi.api")) {
                        String javaDocDir = packageName.startsWith("com.qspin.qtaste.") ? QTaste_JAVADOC_URL_PREFIX :
                              SUT_JAVADOC_URL_PREFIX;
                        urlPrefix = javaDocDir + packageName.replace('.', '/') + "/";
                    }
                    String url =
                          (sameClass ? "" : urlPrefix + className + ".html") + (memberName != null ? "#" + memberName : "");

                    mOut.print("<A HREF=\"" + url + "\">" + name + "</A>");
                } else {
                    mOut.print(name);
                }
            } else {
                mOut.print(tag.text());
            }
        }
    }
359418
public ProjectDescription withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1321851
public CreateGroupResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1201833
public CreateTagsRequest withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
1273213
public void addTag(String tag) {
        if (this.tags == null) {
            tags = new ArrayList<String>();
        }
        this.tags.add(tag);
    }
1179305
public GetGroupResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
866470
public DescribeBrokerResult withTags(java.util.Map<String, String> tags) {
        setTags(tags);
        return this;
    }
329071
public void setTags(String... tags) {
        removeAllViews();
        for (final String tag : tags) {
            appendTag(tag);
        }

        if (isAppendMode) {
            appendInputTag();
        }
    }
123425
public void setTags(Map<String, String> tags) {
        if (tags == null) {
            this.tags = new HashMap<>();
        } else {
            this.tags = tags;
        }
    }