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 boolean isMapped(final StereotypeMetaData meta, final HasMetaData instance) { return (data.containsKey(instance.getUuid()) && data.get(instance.getUuid()).containsKey(meta.getPropertyName())); }
public Object getValue(final StereotypeMetaData meta, final HasMetaData instance) { checkInitialised(instance); Map<String, Object> comMap = data.get(instance.getUuid()); return comMap.get(meta.getPropertyName()); }