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;
}