/** * Checks whether the name has a particular tag. * * @see #isPreferred() * @see #isFullySpecifiedName() * @see #isIndexTerm() * @see #isSynonym() * @see #isShort() * @param tagToFind the string of the tag for which to check * @return true if the tags include the specified tag, false otherwise */ public Boolean hasTag(String tagToFind) { boolean foundTag = false; if (tags != null) { for (ConceptNameTag nameTag : getTags()) { if (nameTag.getTag().equals(tagToFind)) { foundTag = true; break; } } } return foundTag; }
/** * Checks whether the name has a particular tag. * * @see #isPreferred() * @see #isFullySpecifiedName() * @see #isIndexTerm() * @see #isSynonym() * @see #isShort() * @param tagToFind the tag for which to check * @return true if the tags include the specified tag, false otherwise */ public Boolean hasTag(ConceptNameTag tagToFind) { return hasTag(tagToFind.getTag()); }