private void setValueNoCheck( final StereotypeMetaData meta, final HasMetaData instance, Object object) { if (!data.containsKey(instance.getUuid())) { data.put(instance.getUuid(), new HashMap<String, Object>()); } Map<String, Object> comMap = data.get(instance.getUuid()); comMap.put(meta.getPropertyName(), object); if (stereotype.getCurrentPreviewState() == null) { meta.setComponentValue(instance, object); } }
private void recurseSetOnComponent(Component com) { if (com == null) { return; } checkInitialised(com); List<StereotypeMetaData> metas = com.getMetaData(); for (StereotypeMetaData meta : metas) { meta.setComponentValue(com, getValue(meta, com)); } if (com.getSlots() != null) { for (Slot slot : com.getSlots()) { List<StereotypeMetaData> slotMetas = slot.getMetaData(); for (StereotypeMetaData meta : slotMetas) { meta.setComponentValue(slot, getValue(meta, slot)); } if (slot.getContent() != null) { for (Component slotCom : slot.getContent()) { recurseSetOnComponent(slotCom); } } } } }