コード例 #1
0
  @Override
  // org.dmd.dms.util.GenUtility.dumpMAPType(GenUtility.java:2935)
  public ObjWithRefsREF add(Object v) throws DmcValueException {
    synchronized (this) {
      ObjWithRefsREF newval = typeCheck(v);
      if (value == null) initValue();
      DefinitionName key = (DefinitionName) ((DmcMappedAttributeIF) newval).getKey();
      ObjWithRefsREF oldval = value.put(key, newval);

      if (oldval != null) {
        // We had a value with this key, ensure that the value actually changed
        if (oldval.valuesAreEqual(newval)) newval = null;
      }

      return (newval);
    }
  }
コード例 #2
0
 public DmcTypeObjWithRefsREFMAP(DmcAttributeInfo ai) {
   super(ai);
   initValue();
 }