コード例 #1
0
  /**
   * @return An Iterator of ObjWithRefsREFs without attempting lazy resolution (if it's turned on).
   */
  @SuppressWarnings("unchecked")
  // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:990)
  public Iterator<ObjWithRefsREF> getMvNamedObjREFs() {
    DmcTypeObjWithRefsREFMV attr = (DmcTypeObjWithRefsREFMV) get(DmtDMSAG.__mvNamedObj);
    if (attr == null) return (((List<ObjWithRefsREF>) Collections.EMPTY_LIST).iterator());

    return (attr.getMV());
  }
コード例 #2
0
  /** @return An Iterator of ObjWithRefsDMO objects. */
  @SuppressWarnings("unchecked")
  // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:970)
  public Iterator<ObjWithRefsREF> getMvNamedObj() {
    DmcTypeObjWithRefsREFMV attr = (DmcTypeObjWithRefsREFMV) get(DmtDMSAG.__mvNamedObj);
    if (attr == null) return (((List<ObjWithRefsREF>) Collections.EMPTY_LIST).iterator());

    if (DmcOmni.instance().lazyResolution()) {
      if (attr.doLazyResolution(this)) {
        rem(attr.getAttributeInfo());
        return (((List<ObjWithRefsREF>) Collections.EMPTY_LIST).iterator());
      }
    }

    return (attr.getMV());
  }