예제 #1
0
 /**
  * This method tests if there is an Award Sponsor Term with Sponsor Term Type Code that is equal
  * to the parameter "key".
  *
  * @param key
  * @param awardSponsorTerms
  * @return
  */
 protected boolean isSponsorTermTypeInAwardSponsorTerms(
     String key, List<AwardSponsorTerm> awardSponsorTerms) {
   boolean valid = false;
   for (AwardSponsorTerm awardSponsorTerm : awardSponsorTerms) {
     if (awardSponsorTerm.getSponsorTermTypeCode().equals(key)) {
       valid = true;
       break;
     }
   }
   return valid;
 }