Package pl.net.bluesoft.rnd.processtool.dict.mapping.metadata.item

Examples of pl.net.bluesoft.rnd.processtool.dict.mapping.metadata.item.PropertyInfo


    }
    return null;
  }

  private PropertyInfo getPropertyInfo(Object item, String property) {
    PropertyInfo propInfo = getItemInfo(item.getClass()).getPropertyInfo(property);

    if (propInfo == null) {
      throw new RuntimeException(String.format("No dictionary info for property %s of class %s", property, item.getClass().getSimpleName()));
    }
    return propInfo;
View Full Code Here


  private ItemInfo createItemInfo(Class clazz) {// 1 provider na slownik -> keszowanie
    ItemInfo itemInfo = new ItemInfo();
    for (Field field : getDeclaredFields(clazz)) {
      DictKey dictKey = field.getAnnotation(DictKey.class);
      if (dictKey != null) {
        PropertyInfo propInfo = new PropertyInfo();
        propInfo.setProperty(field.getName());
        propInfo.setDictName(dictKey.dict());
        propInfo.setDictEntryProvider(getDictEntryProvider(dictKey.dict()));
        itemInfo.addPropertyInfo(propInfo);
      }
    }
    return itemInfo;
  }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.dict.mapping.metadata.item.PropertyInfo

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.