コード例 #1
0
 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);
   }
 }
コード例 #2
0
 private boolean isMapped(final StereotypeMetaData meta, final HasMetaData instance) {
   return (data.containsKey(instance.getUuid())
       && data.get(instance.getUuid()).containsKey(meta.getPropertyName()));
 }
コード例 #3
0
 public Object getValue(final StereotypeMetaData meta, final HasMetaData instance) {
   checkInitialised(instance);
   Map<String, Object> comMap = data.get(instance.getUuid());
   return comMap.get(meta.getPropertyName());
 }