Esempio n. 1
0
 /**
  * Gets the list of dictionary identifiers involved in a mapping
  *
  * @return the list of dictionary identifiers
  */
 public List<String> getDictionaryIds() {
   List<String> ids = new ArrayList<String>();
   if (this.getDictionaryMappings() != null) {
     for (Iterator<DictionaryMapping> iterator = this.getDictionaryMappings().iterator();
         iterator.hasNext(); ) {
       DictionaryMapping mapping = iterator.next();
       ids.add(mapping.getDictionaryId());
     }
   }
   return ids;
 }
Esempio n. 2
0
 /**
  * Gets the DictionaryMapping corresponding to the given dictionaryId
  *
  * @param dictionaryId the id of the dictionary
  * @return the DictionaryMapping corresponding to the given dictionaryId
  */
 public DictionaryMapping getDictionaryMapping(String dictionaryId) {
   DictionaryMapping mappingRes = null;
   if (this.getDictionaryMappings() != null) {
     for (Iterator<DictionaryMapping> iterator = this.getDictionaryMappings().iterator();
         iterator.hasNext(); ) {
       DictionaryMapping mapping = iterator.next();
       if (mapping.getDictionaryId().equals(dictionaryId)) {
         mappingRes = mapping;
         break;
       }
     }
   }
   return mappingRes;
 }