Package pl.net.bluesoft.rnd.processtool.dict.xml

Examples of pl.net.bluesoft.rnd.processtool.dict.xml.Dictionary


  public List<XmlDictionaryItemWrapper> getItems(final String dictionaryId, final String languageCode) {
    return getDictionary(dictionaryId, languageCode).getItems();
  }

  public XmlDictionaryWrapper getDictionary(final String dictionaryId, final String languageCode) {
    Dictionary dictionary = from(processDictionaries.getDictionaries()).where(new P<Dictionary>() {
      @Override
      public boolean invoke(Dictionary dictionary) {
        return dictionary.getDictionaryId().equals(dictionaryId) && dictionary.getLanguageCode().equals(languageCode);
      }
    }).firstOrDefault();
    if (dictionary == null) {
      dictionary = new Dictionary();
      dictionary.setDictionaryId(dictionaryId);
      dictionary.setLanguageCode(languageCode);
      processDictionaries.getDictionaries().add(dictionary);
    }
    return new XmlDictionaryWrapper(dictionary);
  }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.dict.xml.Dictionary

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.