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

    return (attr.getMV());
  }
コード例 #2
0
  /** @return An Iterator of ModuleBDMO objects. */
  @SuppressWarnings("unchecked")
  // org.dmd.dms.util.GenUtility.formatMV(GenUtility.java:970)
  public Iterator<ModuleBREF> getDependsOnModuleB() {
    DmcTypeModuleBREFMV attr = (DmcTypeModuleBREFMV) get(DsdBDMSAG.__dependsOnModuleB);
    if (attr == null) return (((List<ModuleBREF>) Collections.EMPTY_LIST).iterator());

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

    return (attr.getMV());
  }